/* Основной стиль для body */
body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    background-color: #f8f9fa;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar styling */
.bg-light.sidebar {
    background-color: #f8f9fa !important;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    width: 300px;
    position: fixed;
    top: 0;
    left: 0;
    overflow-y: auto;
    display: none; /* По умолчанию скрыта на мобильных */
    transition: all 0.3s ease-in-out;
    z-index: 1000; /* Значение z-index для сайдбара */
}

/* На экранах шире 768px показываем сайдбар */
@media (min-width: 768px) {
    .bg-light.sidebar {
        display: block;
    }
}

/* Центрирование формы относительно экрана */
.form-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    min-height: calc(100vh - 40px);
    width: 100%;
    box-sizing: border-box;
}

/* Стиль для формы */
.main-content {
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

main > .container {
    max-width: 100%;
    box-sizing: border-box;
}

/* Убираем лишние отступы у .container и .row */
.container-fluid, .row {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    justify-content: center;
}

.flex-grow-1 {
    margin-left: 20px; /* Учитываем сайдбар */
    transition: margin-left 0.3s ease-in-out;
}

.full-width-content {
    margin-left: 0 !important;
}

.app-layout,
.app-main-column,
main,
main > .container,
.form-container,
.main-content {
    min-width: 0;
}

/* Prevent email and other long text from overflowing the sidebar */
.user-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* Стили для заголовка "Создание 3D моделей" */
.display-5 {
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333333;
}

/* Стили для логотипа */
.logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: inline-block;
}

/* Медиазапрос для более адаптивного поведения на мобильных устройствах */
@media (max-width: 768px) {
    .flex-grow-1 {
        margin-left: 0; /* Убираем отступ слева для формы */
    }

    .form-container {
        padding-top: 12px;
        min-height: 0;
    }

    .main-content {
        padding: 12px;
    }

    main > .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .bg-light.sidebar {
        display: none; /* По умолчанию скрываем сайдбар на маленьких экранах */
    }

    #modelGenerationTabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        width: 100%;
        max-width: 100%;
    }

    #modelGenerationTabs .nav-item {
        min-width: 0;
        width: 100%;
    }

    #modelGenerationTabs .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 46px;
        padding: 8px 6px;
        font-size: 13px;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        word-break: break-word;
    }

    .tab-content {
        max-width: 100%;
        padding: 16px 12px;
        box-sizing: border-box;
    }
}

/* Кнопка для открытия/закрытия боковой панели на маленьких экранах */
.toggle-sidebar {
    display: block;
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1100;
}

/* Стили для Telegram ссылки */
.telegram-container {
    position: fixed;
    bottom: 40px;
    right: 20px;
    z-index: 1000;
}

.telegram-link {
    display: flex;
    align-items: center;
    background-color: #1C1C1C	;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

/* Отступ между иконкой и текстом */
.telegram-link img {
    margin-right: 8px;
}

/* Hover эффект для ссылки */
.telegram-link:hover {
    background-color: #006699;
    color: white;
}

/* Медиазапросы для Telegram ссылки */
@media (max-width: 768px) {
    .telegram-link {
        padding: 8px 12px;
        font-size: 12px;
    }

    .telegram-link img {
        width: 16px;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .telegram-link {
        padding: 6px 10px;
        font-size: 10px;
    }

    .telegram-link img {
        width: 14px;
        margin-right: 4px;
    }
}

/* Убираем нижнюю границу у вкладок */
.nav-tabs {
    border-bottom: none;
}

/* Убираем только нижнюю границу у активной вкладки для плавного перехода */
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #007bff;
    color: white;
    border-radius: 15px 15px 0 0;
    border-color: #dee2e6 #dee2e6 transparent;
    border-bottom: none; /* Убираем нижнюю границу только у активной вкладки */
}

/* Стиль для обычных вкладок */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-radius: 15px; /* Закругляем углы вкладки */
    padding: 10px 20px; /* Отступы внутри вкладки */
    background-color: #f8f9fa; /* Цвет фона неактивной вкладки */
    color: #007bff; /* Цвет текста неактивной вкладки */
    transition: background-color 0.3s, color 0.3s; /* Плавный переход при наведении */
}

/* Стиль для вкладки при наведении */
.nav-tabs .nav-link:hover {
    background-color: #e2e6ea; /* Цвет фона при наведении */
    color: #0056b3; /* Цвет текста при наведении */
    border-radius: 15px 15px 0 0; /* Сделать нижние углы прямыми, а верхние закругленными */
    border-bottom: none; /* Убираем нижнюю границу */
}


/* Закругляем верхние углы активной вкладки (если требуется дополнительно) */
.nav-tabs .nav-link.active {
    border-radius: 10px 10px 0 0; /* Закругляем только верхние углы активной вкладки */
}

/* Стиль для содержимого табов */
.tab-content {
    border: 1px solid #dee2e6;
    border-radius: 0 15px 15px 15px;
    padding: 20px;
    background-color: white;
}

.academy-inline-banner {
    margin: 20px 0 22px;
}

.academy-inline-banner__title {
    margin: 0 0 12px;
    color: #10182c;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.2;
    white-space: nowrap;
}

.academy-inline-banner__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(150px, 0.8fr) minmax(360px, 448px) minmax(132px, 152px);
    grid-template-rows: auto auto;
    gap: 16px 16px;
    align-items: center;
    min-height: 221px;
    padding: 18px 28px 10px;
    overflow: hidden;
    border-radius: 22px;
    background-image:
        linear-gradient(90deg, rgba(4, 9, 27, 0.14) 0%, rgba(3, 7, 22, 0.56) 35%, rgba(3, 7, 22, 0.82) 100%),
        url("../banner_back.png");
    background-position:
        center,
        center;
    background-size:
        auto,
        cover;
    background-repeat:
        repeat,
        no-repeat;
    box-shadow: 0 24px 44px rgba(10, 17, 39, 0.22);
}

.academy-inline-banner__panel::before {
    content: "";
    position: absolute;
    inset: auto auto -84px -84px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(71, 151, 255, 0.32) 0%, rgba(71, 151, 255, 0) 72%);
    pointer-events: none;
}

.academy-inline-banner__review {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 408px;
    justify-self: start;
    align-self: start;
    transform: translate(42px, -2px);
}

.academy-inline-banner__review-card {
    position: relative;
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    padding: 15px 22px 23px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(126, 152, 219, 0.2) 0%, rgba(54, 73, 115, 0.12) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 14px 28px rgba(4, 10, 28, 0.18);
    color: #ffffff;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    text-align: left;
    backdrop-filter: blur(14px);
}

.academy-inline-banner__review-text {
    display: block;
    max-width: 100%;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    text-wrap: balance;
}

.academy-inline-banner__review-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.academy-inline-banner__review-signature {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    white-space: nowrap;
}

.academy-inline-banner__partner {
    grid-column: 3;
    grid-row: 1 / span 2;
    position: relative;
    z-index: 1;
    justify-self: end;
    align-self: center;
    width: 100%;
    max-width: 132px;
    text-align: center;
}

.academy-inline-banner__partner-logo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(7, 11, 24, 0.08) 0%, rgba(7, 11, 24, 0.18) 100%),
        url("../3dmp.png") center / contain no-repeat;
    background-color: transparent;
    box-shadow: none;
}

.academy-inline-banner__partner-name {
    margin-top: 10px;
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.academy-inline-banner__stars {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 4px;
    color: #ffd34f;
    font-size: 16px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.academy-inline-banner__cta {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    z-index: 1;
    justify-self: center;
    min-width: 260px;
    padding: 14px 30px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, #5d8dff 0%, #7f76ff 45%, #4fdaff 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 14px 28px rgba(18, 34, 94, 0.34);
    color: #ffffff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.academy-inline-banner__cta:hover,
.academy-inline-banner__cta:focus {
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    filter: brightness(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 18px 36px rgba(18, 34, 94, 0.42);
}

@media (max-width: 991px) {
    .academy-inline-banner__title {
        font-size: 24px;
        white-space: normal;
    }

    .academy-inline-banner__panel {
        grid-template-columns: minmax(0, 1fr) minmax(160px, 190px);
        grid-template-rows: auto auto auto;
        min-height: 0;
        padding: 20px 22px 18px;
    }

    .academy-inline-banner__review {
        grid-column: 1;
        grid-row: 1 / span 2;
        max-width: none;
        justify-self: stretch;
        align-self: stretch;
        transform: none;
    }

    .academy-inline-banner__partner {
        grid-column: 2;
        grid-row: 1;
        align-self: start;
        max-width: 176px;
    }

    .academy-inline-banner__cta {
        grid-column: 1 / span 2;
        grid-row: 3;
        width: 100%;
        max-width: 360px;
    }
}

@media (max-width: 767px) {
    .academy-inline-banner__title {
        margin-bottom: 10px;
        font-size: 18px;
        line-height: 1.25;
    }

    .academy-inline-banner__panel {
        grid-template-columns: minmax(0, 1fr) 112px;
        grid-template-rows: auto auto auto;
        gap: 12px;
        min-height: 0;
        padding: 14px 12px 12px;
        text-align: center;
        border-radius: 18px;
    }

    .academy-inline-banner__panel::before {
        inset: auto auto -56px -56px;
        width: 160px;
        height: 160px;
    }

    .academy-inline-banner__review {
        grid-column: 1;
        grid-row: 1;
        grid-row: 1 / span 2;
        width: 100%;
        max-width: none;
        justify-self: stretch;
        align-self: stretch;
        transform: none;
    }

    .academy-inline-banner__review-card {
        min-height: 118px;
        padding: 12px 14px 18px;
        border-radius: 22px;
    }

    .academy-inline-banner__review-text {
        font-size: 15px;
        line-height: 1.4;
    }

    .academy-inline-banner__review-meta {
        gap: 6px;
        margin-top: 8px;
    }

    .academy-inline-banner__review-signature {
        font-size: 11px;
    }

    .academy-inline-banner__partner {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        max-width: 112px;
    }

    .academy-inline-banner__partner-logo {
        border-radius: 18px;
    }

    .academy-inline-banner__partner-name {
        margin-top: 8px;
        font-size: 18px;
    }

    .academy-inline-banner__stars {
        gap: 4px;
        font-size: 11px;
    }

    .academy-inline-banner__cta {
        grid-column: 1 / span 2;
        grid-row: 3;
        width: 100%;
        max-width: none;
        min-width: 0;
        padding: 10px 14px;
        font-size: 16px;
    }
}


#flash-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 50%;
    text-align: center;
}

.flash-message {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    opacity: 1;
    transition: opacity 0.5s ease-out, top 0.5s ease-out;
}

/* Стиль для flash-сообщений с фиолетовым фоном */
.flash-message.alert-success {
    background-color: #6c3cf0; /* Фиолетовый цвет */
    color: white;
}

.flash-message.alert-danger {
    background-color: #6c3cf0; /* Фиолетовый цвет */
    color: white;
}

.flash-message.alert-warning {
    background-color: #6c3cf0; /* Фиолетовый цвет */
    color: white;
}

.flash-message.alert-info {
    background-color: #6c3cf0; /* Фиолетовый цвет */
    color: white;
}


/* Анимация для исчезновения */
.flash-message.hide {
    opacity: 0;
    top: 0;
}

/* Таймер для автоматического скрытия сообщения */
.flash-message {
    animation: fadeout 5s forwards;
}

@keyframes fadeout {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Стили для боковой панели, когда пользователь зашел в аккаунт */
.user-panel {
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    background-color: #f9f9f9;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.verification-required-alert {
    border: 1px solid #d8c8ff;
    background: #f6f1ff;
    color: #3f2a95;
    border-radius: 10px;
    padding: 12px 12px 10px;
}

.verification-required-modal {
    border: 1px solid #d8c8ff;
    background: #f6f1ff;
    color: #3f2a95;
    border-radius: 12px;
}

.verification-required-modal .modal-header {
    border-bottom: 1px solid #e4d8ff;
    background: rgba(255, 255, 255, 0.65);
}

.verification-required-modal .modal-body {
    padding: 18px 18px 16px;
}

.verification-required-title {
    font-size: 18px;
    font-weight: 700;
    color: #5b2fd1;
}

.verification-required-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.verification-required-timer {
    color: #6b4db5;
    font-size: 12px;
    min-height: 18px;
}

.user-panel h5 {
    font-size: 18px;
    font-weight: 430;
}

.user-info p {
    font-weight: 430;
    margin-bottom: 5px;
}

.user-email {
    color: #6c3cf0;
    font-weight: 400;
    text-decoration: none;
}

.user-email:hover {
    text-decoration: underline;
}

.user-credits {
    margin-top: 15px;
}

.user-credits p {
    font-size: 14px;
    color: #555;
}

.user-credits ul {
    padding-left: 20px;
}

.user-credits ul li {
    list-style-type: disc;
    font-size: 14px;
    margin-bottom: 5px;
}

.plan-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
}

.plan-card {
    border: 1px solid #e6e6e6;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
}

.plan-card h6 {
    font-size: 14px;
    font-weight: 500;
}

.plan-card p {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.plan-comparison {
    color: #6c3cf0 !important;
    font-weight: 400;
}





/* Размещение кнопки в левом нижнем углу без рамки */
.btn-outline-secondary {
    border-color: #b8bec5 !important;
    color: #6c757d !important;
    background-color: #f3f4f6 !important;
}

.btn-outline-secondary:hover {
    background-color: #e7eaee !important;
    color: #5a6168 !important;
    border-color: #aeb5bc !important;
}

.cancel-subscription-btn {
    display: inline-block;
    font-size: 12px;
    line-height: 1.2;
    border-color: #b8bec5 !important;
    color: #6c757d !important;
    background-color: #f3f4f6 !important;
}

.cancel-subscription-btn:hover {
    background-color: #e7eaee !important;
    color: #5a6168 !important;
    border-color: #aeb5bc !important;
}

hr {
    border-top: 1px solid #e1e1e1;
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Стили для спиннера */
.spinner-border {
    color: #6c3cf0;
    display: block;
    margin: 10px auto;
}

.alert.alert-warning {
    background-color: #efeff1; /* Светло-серый цвет фона */
    color: #6c757d; /* Темно-серый цвет текста */
    border-color: #efeff1; /* Серый цвет для рамки */
}

/* Основной фиолетовый стиль для кнопки */
.btn-primary {
    background-color: #6c3cf0 !important; /* Основной фиолетовый цвет */
    border-color: #6c3cf0 !important;
    color: white !important;
}

/* Более тёмный фиолетовый цвет при наведении */
.btn-primary:hover {
    background-color: #5a32c9 !important; /* Более тёмный фиолетовый цвет */
    border-color: #5a32c9 !important;
}

/* Ещё более тёмный фиолетовый при нажатии */
.btn-primary:active {
    background-color: #4a1fa8 !important; /* Ещё более тёмный фиолетовый цвет */
    border-color: #4a1fa8 !important;
}

.btn-primary:disabled {
    background-color: #6c3cf0; /* Фиолетовый цвет для неактивной кнопки */
    border-color: #6c3cf0; /* Фиолетовый цвет рамки */
    color: #fff; /* Белый текст */
    opacity: 0.65; /* Легкая прозрачность для визуального эффекта отключения */
}
/* Основной фиолетовый стиль для кнопок */
.btn-success, .btn-warning {
    background-color: #6c3cf0; /* Основной фиолетовый цвет */
    border-color: #6c3cf0;
    color: white;
}

/* Более тёмный фиолетовый цвет при наведении */
.btn-success:hover, .btn-warning:hover, .btn-primary:hover {
    background-color: #5a32c9; /* Более тёмный фиолетовый цвет */
    border-color: #5a32c9;
    color: white;
}

/* Дополнительный стиль для состояния нажатия */
.btn-success:active, .btn-warning:active, .btn-primary:active {
    background-color: #4a1fa8; /* Ещё более тёмный фиолетовый для состояния нажатия */
    border-color: #4a1fa8;
}
a, .nav-link {
    color: #6c3cf0; /* Фиолетовый цвет текста */
}

a:hover, .nav-link:hover {
    color: #5a32c9; /* Более темный фиолетовый при наведении */
}
.alert-info, .alert-primary {
    background-color: #6c3cf0; /* Фиолетовый фон */
    border-color: #6c3cf0;
    color: #fff; /* Белый текст */
}
.nav-tabs .nav-item.show .nav-link, .nav-tabs .nav-link.active {
    background-color: #6c3cf0; /* Фиолетовый цвет фона для активной вкладки */
    color: white; /* Белый текст */
}

.nav-tabs .nav-link {
    background-color: #f8f9fa; /* Фон для неактивных вкладок */
    color: #6c3cf0; /* Фиолетовый цвет текста для неактивных вкладок */
}

.nav-tabs .nav-link:hover {
    background-color: #5a32c9; /* Темнее при наведении */
    color: white;
}

#google-login {
    display: flex;
    justify-content: center; /* Центрируем значок по горизонтали */
    align-items: center;     /* Центрируем значок по вертикали */
    padding: 4px;
    width: 100%; /* Делаем ширину такой же, как у кнопки "Зарегистрироваться" */
    height: 100%; /* Делаем высоту аналогичной */

}

#google-login img {
    width: 24px; /* Задаем размеры значка */
    height: 24px;
}
/* Для изменения цвета текста на фиолетовый */
.card-header .btn-link {
    color: #6c3cf0; /* Фиолетовый цвет */
    text-decoration: none;
}

.card-header .btn-link:hover {
    color: #5a32c9; /* Темно-фиолетовый при наведении */
    text-decoration: underline;
}
/* Стиль для кнопки с контуром и фиолетовым цветом */
.btn-outline-primary {
    border-color: #6c3cf0; /* Фиолетовый цвет рамки */
    color: #6c3cf0; /* Фиолетовый текст */
}

/* При наведении кнопка становится с тёмно-фиолетовым фоном и белым текстом */
.btn-outline-primary:hover {
    background-color: #5a32c9; /* Тёмно-фиолетовый фон */
    border-color: #5a32c9; /* Тёмно-фиолетовая рамка */
    color: white; /* Белый текст */
}
/* Уменьшение жирности текста и придание плавности */
h2 {
    font-weight: 370; /* Средняя жирность текста */
    letter-spacing: 0.5px; /* Лёгкое расстояние между буквами для более плавного текста */
    -webkit-font-smoothing: antialiased; /* Сглаживание шрифта для WebKit браузеров */
    -moz-osx-font-smoothing: grayscale; /* Сглаживание шрифта для Firefox */
}
h3 {
    font-weight: 350; /* Средняя жирность текста */
    letter-spacing: 0.5px; /* Лёгкое расстояние между буквами для более плавного текста */
    -webkit-font-smoothing: antialiased; /* Сглаживание шрифта для WebKit браузеров */
    -moz-osx-font-smoothing: grayscale; /* Сглаживание шрифта для Firefox */
}
.footer {
    display: flex;
    justify-content: space-between; /* Размещаем элементы на одной линии */
    align-items: center; /* Центрируем по вертикали */
    padding: 10px 20px;
}

.footer p {
    margin: 0;
    font-size: 14px;
}

.footer .agreement-link {
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
}

.footer-legal-links a {
    color: #8c8f96 !important;
    text-decoration: none;
    font-size: 12px;
    line-height: 1.2;
}

.footer-legal-links a:hover {
    color: #6f737b !important;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer-legal-links {
        gap: 10px;
        overflow-x: auto;
    }
}

/* Изменение цвета рамки при фокусе на textarea */
.form-control:focus {
    outline: none; /* Убираем стандартное выделение */
    box-shadow: 0 0 0 0.2rem rgba(108, 60, 240, 0.5) !important; /* Фиолетовое свечение */
    border-color: #6c3cf0 !important;
}

/* Контейнер для кнопки и подсказки */
.subscribe-wrapper {
    position: relative;
    display: inline-block;
}

/* Стиль для выпадающего сообщения */
.tooltip-box {
    visibility: hidden;
    width: 250px;
    background-color: #f9f9f9;
    color: #000;
    text-align: left;
    padding: 10px;
    border-radius: 4px;
    position: absolute;
    z-index: 1;
    top: 100%;
    left: 50%;
    margin-left: -100%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Показать всплывающее окно при наведении */
.subscribe-wrapper:hover .tooltip-box {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}
/* Переопределение стилей для btn-success */
.btn-success {
    background-color: #6c3cf0 !important; /* Фиолетовый цвет по умолчанию */
    border-color: #6c3cf0 !important;
    color: white !important;
}

/* Темнее при наведении */
.btn-success:hover {
    background-color: #5a32c9 !important;
    border-color: #5a32c9 !important;
}

/* Ещё темнее при нажатии */
.btn-success:active {
    background-color: #4a1fa8 !important;
    border-color: #4a1fa8 !important;
}
/* Фиолетовая рамка при фокусе */
.btn-success:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 60, 240, 0.5) !important; /* Фиолетовое свечение */
    border-color: #6c3cf0 !important;
}
/* Общий стиль для всех кнопок */
.btn {
    border-color: #6c3cf0 !important; /* Фиолетовая рамка по умолчанию */
    color: white;
}

/* Фиолетовая рамка при наведении */
.btn:hover {
    border-color: #5a32c9 !important; /* Темно-фиолетовая рамка при наведении */
}

/* Ещё темнее при нажатии */
.btn:active {
    border-color: #4a1fa8 !important; /* Ещё более тёмная рамка при нажатии */
}

/* Фиолетовая рамка при фокусе для всех кнопок */
.btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 60, 240, 0.5) !important; /* Фиолетовое свечение */
    border-color: #6c3cf0 !important; /* Фиолетовая рамка при фокусе */
}
.display-5 {
    font-size: 36px; /* Уменьшаем размер шрифта, например, с 36px до 30px */
    font-weight: 500; /* Делаем текст менее жирным, например, с 700 до 400 */
}

.seo-lead-text {
    font-size: 13px;
    color: #62627a;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.language-switcher {
    margin-right: 20px; /* Отступ справа */
    margin-top: 20px; /* Отступ сверху */
    margin-left: 20px; /* Если нужен отступ слева */
}
/* Специфический стиль для ссылки на пользовательское соглашение */
.user-agreement-btn {
    background-color: transparent; /* Прозрачный фон */
    color: #6c757d; /* Цвет текста */
    border-color: #6c757d; /* Цвет границы */
    bottom: 8px;
}

.user-agreement-btn:hover {
    background-color: #6c757d; /* Серый фон при наведении */
    color: white; /* Белый текст при наведении */
}

/* Специфический стиль для кнопки подписки */
.subscribe-btn {
    background-color: #6c3cf0; /* Фиолетовый фон */
    color: white; /* Белый текст */
    border-color: #6c3cf0; /* Фиолетовая рамка */
    font-size: 14px; /* Размер текста */
}

/* При наведении */
.subscribe-btn:hover {
    background-color: #5a32c9; /* Более тёмный фиолетовый при наведении */
    color: white; /* Белый текст */
    border-color: #5a32c9; /* Тёмно-фиолетовая рамка */
}

/* При нажатии */
.subscribe-btn:active {
    background-color: #4a1fa8; /* Ещё более тёмный фиолетовый при нажатии */
    border-color: #4a1fa8; /* Ещё более тёмная рамка */
}

/* Состояние фокуса */
.subscribe-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 60, 240, 0.5); /* Фиолетовое свечение */
    border-color: #6c3cf0; /* Фиолетовая рамка при фокусе */
}

.agreement-page {
    display: flex;
    justify-content: center;
}

.agreement-content {
    max-width: 900px;
}

.agreement-content h1 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 20px;
}

.agreement-content h2 {
    font-size: 22px;
    margin-top: 24px;
    margin-bottom: 10px;
}

.agreement-content p,
.agreement-content li {
    font-size: 15px;
    color: #333;
}
.spinner-border {
    display: inline-block;
    margin-right: 10px; /* Отступ справа для текста */
}
.spinner-wrapper {
    display: flex;
    align-items: center; /* Выравнивание по вертикали */
    justify-content: center; /* Выравнивание по горизонтали */
}
/* Выровнять текст "Модель успешно сгенерирована" по центру */
#output-section h2 {
    text-align: center;
}

/* Центрируем содержимое сгенерированных элементов */
#output-section .generated-image-container,
#output-section .generated-model-container {
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирование по горизонтали */
}

/* Удаляем выравнивание текста по правому краю */
#output-section .generated-model-container {
    text-align: center; /* Центрирование заголовка */
}
.generated-image-container h3,
.generated-model-container h3 {
    text-align: center;        /* Центрирование текста */
    white-space: normal;       /* Разрешаем перенос слов */
    word-wrap: break-word;     /* Переносим длинные слова */
    line-height: 1.2;          /* Межстрочный интервал для лучшего выравнивания */
    min-height: 40px;          /* Устанавливаем минимальную высоту для одинаковой высоты блоков */
    font-size: 20px;
}
.btn-gray {
    background-color: #9c9ea0; /* Серый цвет */
    color: white; /* Цвет текста */
    border: none; /* Убираем границу */
}

.btn-gray:hover {
    background-color: #5a6268; /* Темнее при наведении */
}
/* Academy popup */
.academy-popup {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: none;
    padding: 24px 14px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.academy-popup--open {
    display: grid;
    align-items: start;
    justify-items: center;
}

.academy-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 10, 34, 0.52);
    backdrop-filter: blur(2px);
}

.academy-popup__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 760px;
    min-width: 0;
    margin: max(24px, 6vh) auto 0;
    box-sizing: border-box;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 14%, rgba(108, 60, 240, 0.12) 0%, rgba(108, 60, 240, 0) 34%),
        radial-gradient(circle at 88% 18%, rgba(0, 123, 255, 0.1) 0%, rgba(0, 123, 255, 0) 36%),
        linear-gradient(165deg, #ffffff 0%, #f7f9ff 56%, #eef3ff 100%);
    border: 3px solid #6c3cf0;
    border-radius: 18px;
    padding: 26px 24px 24px;
    box-shadow: 0 24px 64px rgba(28, 14, 66, 0.34);
    color: #1f2a44;
    text-align: center;
}

.academy-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 999px;
    background: #eef1ff;
    color: #5b3bd5;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.academy-popup__close:hover {
    background: #dde4ff;
}

.academy-popup__title {
    margin: 4px 0 0;
    font-size: 34px;
    line-height: 1.1;
    color: #1f2a44;
    font-weight: 700;
}

.academy-popup__image {
    display: block;
    width: 100%;
    max-width: 440px;
    max-height: 240px;
    object-fit: cover;
    margin: 14px auto 4px;
    border-radius: 10px;
    border: 1px solid #dbe1ff;
    box-shadow: 0 10px 22px rgba(72, 92, 170, 0.14);
}

.academy-popup__text {
    margin: 12px auto 0;
    max-width: 640px;
    font-size: 17px;
    line-height: 1.42;
    color: #3f4b68;
}

.academy-popup__actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.academy-popup__btn {
    display: inline-block;
    border-radius: 8px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 1px rgba(28, 8, 20, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
    min-width: 220px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
}

.academy-popup__btn--primary {
    background: linear-gradient(135deg, #e35c3c 0%, #cf2a63 100%);
    color: #ffffff !important;
    border: 1px solid #bf245a;
    box-shadow: 0 8px 18px rgba(154, 40, 88, 0.3);
}

.academy-popup__btn--primary:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #d24f34 0%, #b82358 100%);
    border-color: #a91f50;
    color: #ffffff !important;
}

.academy-popup__btn--secondary {
    background: linear-gradient(135deg, #e35c3c 0%, #cf2a63 100%);
    border: 1px solid #bf245a;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(154, 40, 88, 0.3);
}

.academy-popup__btn--secondary:hover {
    background: linear-gradient(135deg, #d24f34 0%, #b82358 100%);
    border-color: #a91f50;
    transform: translateY(-1px);
}

body.academy-popup-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .academy-popup {
        padding: 12px;
    }

    .academy-popup__dialog {
        width: 100%;
        max-width: calc(100vw - 24px);
        margin: 0 auto;
        padding: 20px 12px 14px;
        border-radius: 14px;
    }

    .academy-popup__title {
        font-size: 24px;
    }

    .academy-popup__text {
        font-size: 15px;
    }

    .academy-popup__image {
        max-height: min(180px, 30vh);
    }

    .academy-popup__actions {
        margin-top: 16px;
        flex-direction: column;
        gap: 8px;
    }

    .academy-popup__btn {
        width: 100%;
        min-width: 0;
        text-align: center;
        padding: 11px 14px;
    }
}

/* Header controls alignment */
.header-controls-menu {
    margin-top: 14px;
}

.header-controls-menu__toggle {
    display: none;
}

.header-controls-menu__toggle::-webkit-details-marker {
    display: none;
}

.header-controls { display: flex; align-items: center; margin-top: 0; }
.header-controls > * + * { margin-left: 8px; }
.header-controls .language-switcher { margin-top: 0 !important; margin-bottom: 0 !important; }

@media (min-width: 769px) {
    details.header-controls-menu > .header-controls {
        display: flex !important;
        justify-content: flex-end;
        flex-wrap: wrap;
        row-gap: 8px;
    }
}

@media (max-width: 768px) {
    .header-controls-menu {
        position: relative;
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
    }

    .header-controls-menu__toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        width: 46px;
        height: 46px;
        padding: 0;
        border: 1px solid #dbe1ff;
        border-radius: 14px;
        background: #ffffff;
        box-shadow: 0 10px 28px rgba(36, 51, 96, 0.12);
        cursor: pointer;
        list-style: none;
    }

    .header-controls-menu__toggle span {
        width: 18px;
        height: 2px;
        border-radius: 999px;
        background: #1f2a44;
    }

    .header-controls-menu .header-controls {
        display: none;
    }

    .header-controls-menu[open] .header-controls {
        position: absolute;
        top: 56px;
        right: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch !important;
        width: min(280px, calc(100vw - 24px));
        margin-top: 0;
        padding: 12px;
        gap: 8px;
        border: 1px solid #e1e6f5;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        box-shadow: 0 18px 42px rgba(29, 41, 84, 0.18);
        z-index: 1200;
    }

    .header-controls-menu[open] .header-controls > * + * {
        margin-left: 0;
    }

    .header-controls-menu[open] .header-controls > a,
    .header-controls-menu[open] .header-controls > button,
    .header-controls-menu[open] .header-controls > .language-switcher {
        width: 100%;
        min-width: 0;
    }

    .header-controls-menu[open] .header-controls .btn {
        width: 100%;
        white-space: normal;
        text-align: left;
    }

    .header-controls-menu[open] .header-controls .language-switcher,
    .header-controls-menu[open] .header-controls .language-switcher select {
        width: 100% !important;
    }
}

.pricing-top-btn {
    background: linear-gradient(135deg, #ff7a59 0%, #ff3f7a 100%);
    color: #fff !important;
    border: none !important;
    box-shadow: 0 8px 18px rgba(255, 63, 122, 0.28);
    font-weight: 500;
    padding: 6px 14px;
}

.pricing-top-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 63, 122, 0.35);
    color: #fff !important;
}

.header-promo-btn {
    border: none !important;
    color: #fff !important;
    font-weight: 500;
    padding: 6px 14px;
    box-shadow: 0 10px 22px rgba(17, 31, 64, 0.14);
}

.header-promo-btn:hover {
    color: #fff !important;
    transform: translateY(-1px);
}

.header-promo-btn--challenge {
    background: linear-gradient(135deg, #1a6cff 0%, #00a6ff 100%);
}

.header-promo-btn--course {
    background: linear-gradient(135deg, #ff7f32 0%, #ff4d6d 100%);
}

.my-models-btn {
    background: linear-gradient(135deg, #ff7a59 0%, #ff3f7a 100%) !important;
    border: none !important;
    box-shadow: 0 8px 18px rgba(255, 63, 122, 0.28);
    font-weight: 500;
}

.my-models-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255, 63, 122, 0.35);
}

.pricing-page {
    position: relative;
}

.pricing-back-btn {
    padding: 10px 18px;
    font-weight: 500;
    font-size: 15px;
}

.pricing-back-btn-fixed {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1150;
}

.pricing-hero {
    background: radial-gradient(circle at 20% 20%, rgba(255, 122, 89, 0.22), transparent 45%),
                radial-gradient(circle at 80% 20%, rgba(108, 60, 240, 0.22), transparent 45%),
                #ffffff;
    border: 1px solid #ede7ff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(24, 24, 43, 0.08);
}

.pricing-kicker {
    color: #ff4f70;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
}

.pricing-title {
    font-size: 38px;
    font-weight: 500;
    color: #1d1d2b;
    line-height: 1.15;
}

.pricing-subtitle {
    color: #52526a;
    font-size: 18px;
    line-height: 1.45;
}

.pricing-seo-lead {
    color: #63637f;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-marketing-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.marketing-chip {
    background: #f5f2ff;
    color: #3f2a95;
    border: 1px solid #e7defe;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}

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

.home-free-models-strip {
    border: 1px solid #e5ebf7;
    border-radius: 16px;
    padding: 12px 0 14px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.home-free-models-head {
    padding: 0 14px 10px;
    text-align: center;
}

.home-free-models-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #6c3cf0;
}

.home-free-models-scroll-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    min-width: 0;
    max-width: 100%;
}

.home-free-models-viewport {
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    max-width: 100%;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: #b8c4df transparent;
}

.home-free-models-viewport::-webkit-scrollbar {
    height: 8px;
}

.home-free-models-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.home-free-models-viewport::-webkit-scrollbar-thumb {
    background: #b8c4df;
    border-radius: 999px;
}

.home-free-models-nav {
    width: 30px;
    height: 30px;
    border: 1px solid #d6deef;
    border-radius: 50%;
    background: #ffffff;
    color: #4e607f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(31, 45, 71, 0.12);
    cursor: pointer;
    flex: 0 0 auto;
}

.home-free-models-nav:hover:not(:disabled) {
    color: #36528d;
    border-color: #b9c9eb;
}

.home-free-models-nav:disabled {
    opacity: 0.38;
    cursor: default;
    box-shadow: none;
}

.home-free-models-track {
    display: flex;
    align-items: stretch;
    gap: 12px;
    width: max-content;
    max-width: none;
    padding: 0 4px;
}

.home-free-model-item {
    width: 138px;
    flex: 0 0 auto;
    border: 1px solid #e2e9f4;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none !important;
    background: #fff;
    box-shadow: 0 8px 18px rgba(18, 34, 64, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.home-free-model-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(18, 34, 64, 0.14);
}

.home-free-model-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f4f7fb;
}

.home-free-model-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-free-model-caption {
    display: block;
    padding: 8px 9px 10px;
    font-size: 12px;
    color: #24324b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-free-models-loading {
    font-size: 13px;
    color: #5d6980;
    padding: 8px 0 10px;
}

.home-free-models-strip.is-empty .home-free-models-loading {
    color: #6d768a;
}

.my-models-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.my-models-hero {
    border-color: #e9edf7;
}

.my-models-filters {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    padding: 14px;
    border: 1px solid #eceff6;
    border-radius: 14px;
    background: #ffffff;
}

.my-models-filter-field {
    min-width: 180px;
}

.my-models-filter-field label {
    display: block;
    margin-bottom: 4px;
    color: #5c6170;
    font-size: 12px;
}

.my-models-filter-btn {
    height: 38px;
}

.my-models-reset-link {
    color: #7f8493;
    font-size: 13px;
    text-decoration: none;
    padding-bottom: 8px;
}

.my-models-reset-link:hover {
    color: #5f6471;
    text-decoration: underline;
}

.my-model-feedback {
    margin-bottom: 14px;
}

.my-model-card {
    position: relative;
    border: 1px solid #e6ebf4;
    border-radius: 16px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(21, 29, 44, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.my-model-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(21, 29, 44, 0.14);
}

.my-model-preview-link {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f4f5f8;
}

.my-model-preview-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.my-model-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 6px;
}

.my-model-action-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    color: #4e5566;
    box-shadow: 0 3px 9px rgba(12, 18, 30, 0.16);
    cursor: pointer;
}

.my-model-action-btn:hover {
    background: #ffffff;
    color: #1c2334;
}

.my-model-action-btn.is-share:hover {
    color: #1f7ae0;
}

.my-model-action-btn.is-rename:hover {
    color: #ff7a59;
}

.my-model-action-btn.is-delete:hover {
    color: #c23b3b;
}

.my-model-action-btn.is-challenge:hover,
.my-model-action-btn.is-challenge.is-active {
    color: #d08b00;
}

.my-model-action-btn.is-challenge.is-active,
.my-model-action-btn.is-challenge:disabled {
    background: #fff4d6;
    cursor: default;
}

.admin-feature-toggle {
    color: #a27220;
}

.admin-feature-toggle.is-featured {
    background: #fff4d6;
    color: #d08b00;
}

.admin-feature-toggle.is-featured:hover {
    color: #a86d00;
}

.my-model-meta {
    padding: 12px 13px 14px;
}

.my-model-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1d2434 !important;
    text-decoration: none;
    margin-bottom: 7px;
    word-break: break-word;
    line-height: 1.3;
}

.my-model-submeta {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6f7584;
    font-size: 12px;
}

.my-model-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 9px;
    background: #eef3ff;
    color: #3558a8;
    font-size: 11px;
    text-transform: uppercase;
}

.admin-curated-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 8px;
    background: #fff4d6;
    color: #9d6900;
    font-size: 11px;
    border: 1px solid #f2d38f;
}

.admin-dashboard-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-dashboard-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid #d9e0ec;
    background: #ffffff;
    color: #4d5565;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.admin-dashboard-tab:hover {
    color: #22304a;
    border-color: #bcc8db;
    transform: translateY(-1px);
    text-decoration: none;
}

.admin-dashboard-tab.is-active {
    background: linear-gradient(135deg, #1f8bff 0%, #3b61ff 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(59, 97, 255, 0.22);
}

.admin-data-table-wrap {
    border: 1px solid #e7ecf4;
    border-radius: 16px;
    background: #ffffff;
    overflow: auto;
}

.admin-data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.admin-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f6f8fc;
    color: #4f5766;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.admin-data-table th,
.admin-data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f7;
    text-align: left;
    vertical-align: top;
}

.admin-data-table tbody tr:last-child td {
    border-bottom: none;
}

.admin-prompt-cell {
    white-space: pre-wrap;
    word-break: break-word;
    min-width: 420px;
    color: #263246;
    line-height: 1.45;
}

.admin-input-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-input-card {
    border: 1px solid #e6ebf4;
    border-radius: 18px;
    background: #ffffff;
    padding: 14px;
    box-shadow: 0 10px 28px rgba(15, 34, 78, 0.06);
}

.admin-input-card__meta {
    margin-bottom: 12px;
}

.admin-input-card__title {
    font-size: 15px;
    font-weight: 700;
    color: #22304a;
    margin-bottom: 6px;
    word-break: break-word;
}

.admin-input-card__submeta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #5f6878;
    font-size: 13px;
}

.admin-input-card__meta-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    line-height: 1.35;
}

.admin-input-card__meta-row i {
    width: 14px;
    margin-top: 2px;
    color: #7a8394;
    text-align: center;
    flex: 0 0 14px;
}

.admin-input-card__meta-row span {
    min-width: 0;
    word-break: break-word;
}

.admin-input-card__meta-row--email {
    width: 100%;
}

.admin-input-card__count {
    font-weight: 600;
}

.admin-input-card__images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.admin-input-card__image-link {
    display: block;
    color: #4f5766;
    text-decoration: none;
}

.admin-input-card__image-link:hover {
    color: #22304a;
    text-decoration: none;
}

.admin-input-card__image-link img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #e7ecf4;
    background: #f6f8fc;
}

.my-model-visibility {
    font-weight: 500;
}

.my-model-created {
    margin-top: 7px;
    color: #878d9d;
    font-size: 11px;
}

.my-model-challenge-badge {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff4d6;
    border: 1px solid #f1d493;
    color: #946100;
    font-size: 11px;
    font-weight: 600;
}

.my-model-owner-email {
    margin-top: 4px;
    color: #6f7584;
    font-size: 11px;
    word-break: break-word;
}

.my-models-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.my-models-page-indicator {
    color: #5f6574;
    font-size: 13px;
}

.model-detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 16px;
}

.model-detail-view,
.model-detail-meta {
    border: 1px solid #e9edf7;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(21, 29, 44, 0.07);
}

.model-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.model-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    background: #eef3ff;
    color: #394f8c;
    border: 1px solid #d6e1ff;
    padding: 5px 11px;
    font-size: 12px;
}

.model-detail-badge--challenge {
    background: #fff4d6;
    color: #946100;
    border-color: #f1d493;
}

.model-detail-hero {
    position: relative;
}

.model-detail-back-stack {
    position: fixed;
    left: 20px;
    top: 20px;
    z-index: 1150;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.model-detail-back-stack .pricing-back-btn-fixed {
    position: static;
    left: auto;
    top: auto;
}

.detail-owner-tools {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.detail-owner-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    color: #44506b;
    box-shadow: 0 6px 14px rgba(21, 29, 44, 0.18);
    cursor: pointer;
}

.detail-owner-action:hover {
    color: #1f7ae0;
}

.detail-owner-action--share {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2d8cff 0%, #4d6dff 100%);
    color: #ffffff;
    box-shadow: 0 12px 28px rgba(45, 140, 255, 0.34);
}

.detail-owner-action--share:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #1f7cf0 0%, #415eff 100%);
    box-shadow: 0 16px 30px rgba(45, 140, 255, 0.42);
}

.detail-owner-action.is-active,
.detail-owner-action:disabled {
    background: #fff4d6;
    color: #b67600;
    cursor: default;
}

.model-viewer-shell {
    position: relative;
}

#model-viewer-container {
    width: 100%;
    min-height: 420px;
    height: 420px;
    border-radius: 10px;
    border: 1px solid #edf0f5;
    background: #fafbff;
    overflow: hidden;
}

.model-loading-indicator {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    z-index: 8;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dce3f2;
    color: #435176;
    font-size: 12px;
    line-height: 1;
}

.model-loading-error {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #f0c5c5;
    color: #b43737;
    padding: 8px 10px;
    font-size: 13px;
}

.model-viewer-overlay-controls {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 5;
    display: flex;
    gap: 8px;
}

.model-viewer-overlay-controls label {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #dce3f2;
    border-radius: 999px;
    padding: 5px 10px;
    color: #425173;
    font-size: 12px;
    line-height: 1;
    user-select: none;
}

.model-viewer-overlay-controls input[type="checkbox"] {
    margin: 0;
}

.model-fullscreen-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(20, 24, 33, 0.78);
    color: #ffffff;
    font-size: 24px;
    line-height: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: none;
    z-index: 5;
}

.model-fullscreen-close:hover {
    background: rgba(20, 24, 33, 0.92);
}

.model-action-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

.model-action-row > * {
    margin-right: 0 !important;
}

.model-action-row .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 9px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.model-action-row .btn i {
    margin-right: 4px;
}

.challenge-vote-panel {
    padding: 18px;
    border: 1px solid #e7ecf5;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}

.challenge-vote-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.challenge-vote-panel__kicker {
    color: #64738e;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.challenge-vote-panel__title {
    margin: 4px 0 0;
    font-size: 22px;
    color: #18253f;
}

.challenge-vote-panel__body {
    margin: 10px 0 12px;
    color: #536179;
    font-size: 14px;
}

.challenge-vote-panel__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.challenge-vote-count,
.challenge-vote-panel__link {
    font-size: 13px;
}

.challenge-vote-panel__link {
    color: #2458c6 !important;
    text-decoration: none;
}

.challenge-vote-btn {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #ff8ab8 0%, #ff5f98 100%);
    color: #fff;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 28px rgba(255, 95, 152, 0.24);
}

.challenge-vote-btn.is-active {
    background: linear-gradient(135deg, #ff7f32 0%, #ff4d6d 100%);
    color: #fff;
}

.challenge-vote-btn:disabled {
    opacity: 0.72;
}

.challenge-optin {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #e8edf7;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.challenge-optin__label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1d2942;
    cursor: pointer;
}

.challenge-optin__label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.challenge-optin__hint {
    margin-top: 6px;
    color: #6b7488;
    font-size: 12px;
}

.challenge-optin__hint-title {
    display: block;
    margin-bottom: 4px;
    color: #1d2942;
    font-size: 13px;
    line-height: 1.45;
}

.challenge-optin__subtitle {
    margin-bottom: 8px;
    color: #1d2942;
    font-size: 13px;
    line-height: 1.45;
}

.challenge-page {
    color: #18253f;
}

.challenge-hero {
    margin-bottom: 24px;
}

.challenge-hero__surface {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 40px;
    background:
        radial-gradient(circle at top left, rgba(88, 111, 161, 0.18) 0%, transparent 34%),
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 28%),
        linear-gradient(135deg, #151b26 0%, #1e2633 52%, #171d28 100%);
    box-shadow: 0 26px 56px rgba(19, 31, 56, 0.14);
}

.challenge-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 22px;
    align-items: center;
}

.challenge-hero__copy {
    min-width: 0;
    position: relative;
    z-index: 1;
}

.challenge-hero__copy.is-details-collapsed {
    grid-column: 1 / -1;
}

.challenge-hero__copy.is-details-collapsed + .challenge-hero__art {
    display: none;
}

.challenge-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(100, 135, 215, 0.14);
    color: #c6d8ff;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.challenge-hero__title {
    margin: 16px 0 10px;
    font-size: 52px;
    line-height: 0.95;
    color: #f6f8ff;
}

.challenge-hero__toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #f6f8ff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.challenge-hero__toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.challenge-hero__toggle:focus-visible {
    outline: 2px solid rgba(125, 198, 255, 0.9);
    outline-offset: 2px;
}

.challenge-hero__toggle::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.2s ease;
}

.challenge-hero__toggle[aria-expanded="true"]::after {
    transform: rotate(-135deg) translateY(-1px);
}

.challenge-hero__details {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.32s ease, opacity 0.22s ease, margin-top 0.32s ease;
}

.challenge-hero__copy.is-details-open .challenge-hero__details {
    margin-top: 14px;
    max-height: 1400px;
    opacity: 1;
    pointer-events: auto;
}

.challenge-hero__subtitle {
    color: #c8d4ee;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.15;
}

.challenge-hero__lead {
    margin: 16px 0 0;
    max-width: 520px;
    color: #b7c2d8;
    font-size: 18px;
    line-height: 1.55;
}

.challenge-hero__dates {
    margin: 18px 0 0;
    display: grid;
    gap: 8px;
    color: #f5f7fd;
    font-size: 15px;
    line-height: 1.5;
}

.challenge-hero__date-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.challenge-hero__date-marker {
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 999px;
    flex-shrink: 0;
    background: #ffc15a;
    box-shadow: 0 0 0 4px rgba(255, 193, 90, 0.18);
}

.challenge-hero__date-marker--accent {
    background: #7dc6ff;
    box-shadow: 0 0 0 4px rgba(125, 198, 255, 0.16);
}

.challenge-hero__summary {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: 760px;
}

.challenge-hero__summary p,
.challenge-hero__summary-card {
    margin: 0;
    padding: 0 14px 6px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: #c1cbdf;
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-line;
    overflow: hidden;
}

.challenge-hero__bonus-card {
    width: 100%;
    max-width: 860px;
    padding: 14px 16px 14px;
    border-radius: 24px;
    border: 1px solid rgba(255, 171, 89, 0.34);
    background:
        radial-gradient(circle at top right, rgba(255, 177, 78, 0.26) 0%, rgba(255, 177, 78, 0.04) 34%, transparent 62%),
        linear-gradient(180deg, rgba(255, 153, 68, 0.16) 0%, rgba(255, 255, 255, 0.05) 100%);
    box-shadow:
        0 0 0 1px rgba(255, 173, 82, 0.04),
        0 18px 36px rgba(255, 136, 40, 0.18),
        inset 0 1px 0 rgba(255, 225, 186, 0.14);
}

.challenge-hero__summary strong {
    color: #ffffff;
}

.challenge-hero__summary-card--prizes {
    grid-column: 1 / -1;
}

.challenge-hero__summary-title {
    display: block;
    margin-bottom: 3px;
    line-height: 1;
}

.challenge-hero__bonus-kicker {
    color: #ffe2b7;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.challenge-hero__bonus-amount {
    margin-top: 8px;
    color: #ffffff;
    font-size: 34px;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.challenge-hero__bonus-body {
    margin: 10px 0 0;
    color: #ffe9d2;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
}

.challenge-hero__summary-shot {
    display: block;
    width: 100%;
    max-width: 240px;
    height: auto;
    margin-top: 10px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.challenge-hero__inline-link {
    display: inline;
    color: #9fd6ff;
    font-size: inherit;
    line-height: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.challenge-hero__inline-link:hover {
    color: #d8eeff;
}

@media (min-width: 641px) {
    .challenge-hero__copy:not(.is-details-collapsed) .challenge-hero__details {
        margin-top: 14px;
        max-height: 1400px;
        opacity: 1;
        pointer-events: auto;
    }
}

.challenge-hero__actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.challenge-hero__action-link {
    min-width: 190px;
}

.challenge-hero__art {
    min-width: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 14px;
}

.challenge-hero__art-frame {
    width: 100%;
    max-width: 860px;
    padding: 24px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    box-shadow: 0 20px 40px rgba(5, 10, 20, 0.2);
}

.challenge-hero__art-frame img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
}

.challenge-hero__share-card {
    width: 100%;
    max-width: 860px;
    padding: 18px 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 133, 179, 0.22);
    background: linear-gradient(180deg, rgba(255, 116, 163, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
    box-shadow: 0 18px 36px rgba(5, 10, 20, 0.16);
}

.challenge-hero__share-title {
    margin: 0 0 8px;
    color: #f4f7ff;
    font-size: 21px;
    line-height: 1.2;
}

.challenge-hero__share-body {
    margin: 0;
    color: #c1ccdf;
    font-size: 14px;
    line-height: 1.55;
}

.challenge-hero__facts {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.challenge-fact-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.challenge-fact-card__label {
    color: #92a1bb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.challenge-fact-card__value {
    margin-top: 8px;
    color: #f4f7ff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.challenge-fact-card__hint {
    margin-top: 6px;
    color: #b3c0d6;
    font-size: 13px;
    line-height: 1.45;
}

.challenge-countdown {
    display: flex;
    align-items: center;
    gap: 12px;
}

.challenge-countdown i {
    font-size: 20px;
    color: #b9c7e5;
}

.challenge-countdown__body {
    display: grid;
    gap: 4px;
}

.challenge-countdown__state {
    color: #9fb1cf;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.challenge-countdown__timer {
    color: #ffffff;
    font-size: 20px;
    line-height: 1.15;
}

.challenge-shell {
    border: 1px solid #e5ecf7;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(19, 31, 56, 0.06);
}

.challenge-shell__body {
    padding: 24px 22px 26px;
}

.challenge-tabs {
    padding: 18px 18px 0;
    gap: 10px;
}

.challenge-tab-content {
    padding: 22px 22px 26px;
    border: none;
    border-radius: 0;
}

.challenge-intro-grid,
.challenge-works-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.challenge-intro-card,
.challenge-work-card {
    border: 1px solid #e6edf8;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(19, 31, 56, 0.05);
}

.challenge-intro-card {
    padding: 20px;
    min-height: 220px;
}

.challenge-intro-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #17243c;
}

.challenge-intro-card p {
    margin: 0;
    color: #52617b;
    font-size: 14px;
    line-height: 1.55;
}

.challenge-works-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.challenge-works-head h2 {
    margin: 0;
    font-size: 34px;
}

.challenge-works-head p {
    margin: 6px 0 0;
    color: #64738d;
    font-size: 14px;
}

.challenge-work-card {
    overflow: hidden;
}

.challenge-work-card__preview-shell {
    position: relative;
}

.challenge-work-card__preview {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background: #f5f8fc;
}

.challenge-work-card__share-btn {
    position: absolute;
    top: 12px;
    right: 66px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.96);
}

.challenge-work-card__share-btn.is-copied {
    color: #1f7ae0;
    border-color: #b8cff8;
}

.challenge-work-card__score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 46px;
    min-height: 58px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #ead28e;
    box-shadow: 0 12px 24px rgba(20, 31, 56, 0.12);
    color: #b67600;
    font-weight: 700;
    line-height: 1;
}

.challenge-work-card__score i {
    font-size: 16px;
}

.challenge-work-card__score span {
    font-size: 13px;
}

.challenge-work-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.challenge-work-card__body {
    padding: 14px 15px 16px;
}

.challenge-work-card__title {
    display: block;
    color: #18253f !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.challenge-work-card__meta,
.challenge-work-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.challenge-work-card__meta {
    margin-top: 10px;
    color: #73809a;
    font-size: 12px;
}

.challenge-work-card__footer {
    margin-top: 12px;
}

.challenge-work-card__link {
    color: #2458c6 !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.generator-viewer-shell {
    width: 400px;
    max-width: 100%;
}

.generator-model-viewer {
    width: 400px;
    height: 400px;
    max-width: 100%;
    background-color: #f9f9f9;
    position: relative;
    border-radius: 10px;
    border: none;
    overflow: hidden;
}

.generator-overlay-controls {
    z-index: 20;
    top: 12px;
    left: 12px;
    display: flex !important;
}

.generator-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.generator-action-row > * {
    margin-right: 0 !important;
}

.generator-action-row .btn {
    flex: 1 1 160px;
    min-width: 0;
}

.generator-action-row form {
    flex: 0 0 auto;
}

.generator-action-row form .btn {
    width: auto;
    white-space: nowrap;
}

.generator-rig-form .btn {
    font-size: 12px;
    padding: 8px 11px;
}

.model-detail-prompt {
    color: #2e3140;
    font-size: 14px;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 12px;
}

.model-detail-created {
    margin-top: 6px;
    font-size: 12px;
    color: #8a8f99;
}

.model-seo-copy {
    margin: 12px 0 15px;
    padding: 12px 13px;
    border-radius: 12px;
    border: 1px solid #e4ebfa;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
    color: #4b5263;
    font-size: 13px;
    line-height: 1.45;
}

.model-seo-copy p {
    margin-bottom: 6px;
}

.model-settings-list {
    margin: 0 0 10px 0;
    padding-left: 18px;
    font-size: 13px;
    color: #4f4f64;
}

.model-input-images {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.model-input-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #e7e9ef;
}

.model-viewer-shell:fullscreen,
.model-viewer-shell:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    background: #0f1116;
    padding: 14px;
    box-sizing: border-box;
}

#3d-model-shell:fullscreen,
#3d-model-shell:-webkit-full-screen {
    width: 100vw !important;
    max-width: none !important;
}

.model-viewer-shell:fullscreen #model-viewer-container,
.model-viewer-shell:-webkit-full-screen #model-viewer-container {
    width: 100%;
    height: calc(100vh - 28px);
    min-height: 0;
    border: none;
    border-radius: 0;
}

.model-viewer-shell:fullscreen #3d-model-container,
.model-viewer-shell:-webkit-full-screen #3d-model-container {
    width: 100%;
    height: calc(100vh - 28px);
    min-height: 0;
    border: none;
    border-radius: 0;
}

#3d-model-shell:fullscreen #3d-model-container,
#3d-model-shell:-webkit-full-screen #3d-model-container {
    width: 100vw !important;
    max-width: none !important;
}

.model-viewer-shell:fullscreen .model-fullscreen-close,
.model-viewer-shell:-webkit-full-screen .model-fullscreen-close,
.model-viewer-shell.is-fullscreen .model-fullscreen-close {
    display: flex;
}

.model-viewer-shell:fullscreen .model-viewer-overlay-controls,
.model-viewer-shell:-webkit-full-screen .model-viewer-overlay-controls,
.model-viewer-shell.is-fullscreen .model-viewer-overlay-controls {
    top: 16px;
    left: 16px;
}

.model-viewer-shell:fullscreen .model-loading-indicator,
.model-viewer-shell:-webkit-full-screen .model-loading-indicator,
.model-viewer-shell.is-fullscreen .model-loading-indicator {
    top: 16px;
    right: 16px;
    left: auto;
}

.pricing-showcase-card {
    border-radius: 18px;
    border: 1px solid #ece9ff;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(26, 26, 46, 0.06);
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.pricing-showcase-card.monthly {
    border-top: 4px solid #6c3cf0;
}

.pricing-showcase-card.free {
    border-top: 4px solid #8a8f99;
}

.pricing-showcase-card.yearly {
    border-top: 4px solid #29a36a;
}

.pricing-showcase-card.lifetime {
    border-top: 4px solid #ff6a3d;
}

.pricing-showcase-card.one-time {
    border-top: 4px solid #1f7ae0;
}

.pricing-showcase-card.featured {
    background: linear-gradient(180deg, rgba(255, 106, 61, 0.08) 0%, rgba(255, 255, 255, 1) 50%);
}

.pricing-card-head h3 {
    font-size: 28px;
    color: #1d1d2b;
    line-height: 1.2;
}

.pricing-card-head p {
    color: #4f4f64;
    font-size: 17px;
    line-height: 1.4;
}

.pricing-badge {
    display: inline-block;
    border-radius: 999px;
    background: #f4f1ff;
    color: #4d2bc0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
}

.pricing-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pricing-discount-badge {
    display: inline-block;
    border-radius: 999px;
    background: #e8f8ef;
    color: #1f8f57;
    border: 1px solid #bce8cf;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 6px 11px;
}

.pricing-feature-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px 0;
    flex-grow: 1;
}

.pricing-feature-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: #4f4f64;
    font-size: 17px;
    line-height: 1.4;
}

.pricing-feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6c3cf0;
}

.pricing-disabled-btn,
.pricing-disabled-btn:disabled {
    opacity: 1;
    cursor: not-allowed;
    color: #5f646c !important;
    background-color: #c2c7cf !important;
    border-color: #c2c7cf !important;
    box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.14);
}

.pricing-disabled-btn:hover,
.pricing-disabled-btn:focus,
.pricing-disabled-btn:active {
    color: #5f646c !important;
    background-color: #c2c7cf !important;
    border-color: #c2c7cf !important;
}

.pricing-card-note {
    margin-top: 8px;
    color: #6f7186;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 991px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .my-models-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-free-model-item {
        width: 126px;
    }

    .pricing-title {
        font-size: 31px;
    }

    .pricing-subtitle {
        font-size: 16px;
    }

    .pricing-card-head h3 {
        font-size: 24px;
    }

    .pricing-card-head p,
    .pricing-feature-list li {
        font-size: 15px;
    }

    .pricing-back-btn-fixed {
        top: 14px;
        left: 14px;
    }

    .model-detail-back-stack {
        left: 14px;
        top: 14px;
    }

    .my-models-filters {
        padding: 12px;
        gap: 10px;
    }

    .my-models-filter-field {
        width: 100%;
    }

    .my-models-filter-btn {
        width: 100%;
    }

    .my-models-reset-link {
        width: 100%;
        padding-bottom: 0;
    }

    .admin-input-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .model-detail-layout {
        grid-template-columns: 1fr;
    }

    #model-viewer-container {
        min-height: 320px;
        height: 320px;
    }

    .generator-viewer-shell,
    .generator-model-viewer {
        width: 320px;
        height: 320px;
    }

    .detail-owner-tools {
        position: static;
        margin-top: 10px;
    }

    .model-viewer-overlay-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .model-action-row {
        flex-wrap: wrap;
    }

    .model-action-row .btn {
        flex: 1 1 calc(50% - 4px);
    }

    .generator-action-row .btn,
    .generator-action-row form {
        flex: 1 1 calc(50% - 4px);
    }

    .challenge-hero__surface {
        padding: 28px;
    }

    .challenge-hero__grid {
        grid-template-columns: 1fr;
    }

    .challenge-hero__art {
        justify-content: flex-start;
    }

    .challenge-hero__art-frame {
        width: min(100%, 560px);
    }

    .challenge-hero__title {
        font-size: 40px;
    }

    .challenge-hero__facts,
    .challenge-intro-grid,
    .challenge-works-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .my-models-grid {
        grid-template-columns: 1fr;
    }

    .admin-dashboard-tab {
        width: 100%;
    }

    .admin-data-table {
        min-width: 620px;
    }

    .admin-input-card {
        padding: 14px;
    }

    .admin-input-grid {
        grid-template-columns: 1fr;
    }

    .admin-input-card__images {
        grid-template-columns: 1fr;
    }

    .home-free-model-item {
        width: 116px;
    }

    .challenge-hero__surface {
        padding: 20px;
        border-radius: 24px;
    }

    .challenge-hero__summary {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .challenge-hero__title {
        font-size: 30px;
        line-height: 1;
    }

    .challenge-hero__subtitle {
        font-size: 18px;
    }

    .challenge-hero__lead {
        font-size: 15px;
    }

    .challenge-hero__toggle {
        margin-top: 4px;
    }

    .challenge-hero__date-item {
        gap: 8px;
    }

    .challenge-hero__actions {
        flex-direction: column;
    }

    .challenge-hero__action-link {
        width: 100%;
        min-width: 0;
    }

    .challenge-hero__grid {
        grid-template-columns: 1fr;
    }

    .challenge-hero__art {
        justify-content: flex-start;
    }

    .challenge-hero__art-frame {
        width: 100%;
    }

    .challenge-hero__facts,
    .challenge-intro-grid,
    .challenge-works-grid {
        grid-template-columns: 1fr;
    }

    .challenge-shell__body {
        padding: 18px 14px 20px;
    }

    .challenge-works-head,
    .challenge-vote-panel__head {
        flex-direction: column;
        align-items: stretch;
    }

    .challenge-vote-btn {
        width: 100%;
        justify-content: center;
    }
}

.pricing-consent-block {
    margin-top: 10px;
}

.pricing-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #4f4f64;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
}

.pricing-consent-label input[type="checkbox"] {
    margin-top: 1px;
    width: 13px;
    height: 13px;
}

/* Button row alignment: keep all buttons on one line; captions under paid buttons */
.button-row > * { display: inline-block; vertical-align: top; margin-right: 12px; }
.button-row > *:last-child { margin-right: 0; }

/* Стили для чекбокса "Публичный заказ" */
.public-order-label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    user-select: none;
}

.public-order-label input[type="checkbox"] {
    margin-right: 6px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.public-order-label:hover {
    color: #6c3cf0;
}

.public-order-label span {
    cursor: pointer;
}

/* Стили для текста согласия */
.public-order-consent-text {
    font-size: 8px;
    color: #666;
    text-align: center;
    margin-top: 6px;
    line-height: 1.3;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
    display: none; /* По умолчанию скрыт, показывается только если чекбокс включен */
}
