/* Основной стиль для 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 для сайдбара */
}

/* На desktop сайдбар виден по умолчанию, но может быть свернут через JS */
@media (min-width: 769px) {
    .bg-light.sidebar {
        display: block;
    }

    .app-layout.sidebar-collapsed .bg-light.sidebar {
        display: none !important;
    }

    .app-layout.sidebar-collapsed .app-main-column {
        margin-left: 0 !important;
    }
}

/* Центрирование формы относительно экрана */
.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(2, 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;
}

.toggle-sidebar.is-collapsed {
    opacity: 0.85;
}

/* Стили для Telegram ссылки */
.telegram-container {
    position: fixed;
    bottom: 24px;
    left: 20px;
    right: auto;
    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-container {
        bottom: 16px;
        left: 12px;
    }

    .telegram-link {
        padding: 6px 10px;
        font-size: 10px;
    }

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

.support-chat {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1200;
    font-family: 'Roboto', sans-serif;
}

.support-chat__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px;
    border: 0;
    border-radius: 8px;
    background: #1c1c1c;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(18, 28, 45, 0.22);
    cursor: pointer;
}

.support-chat__button:hover,
.support-chat__button:focus {
    background: #006699;
    color: #fff;
    outline: none;
}

.support-chat__panel {
    position: absolute;
    right: 0;
    bottom: 62px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(620px, calc(100vh - 110px));
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(18, 28, 45, 0.2);
}

.support-chat__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #edf1f7;
}

.support-chat__header h2 {
    margin: 0;
    color: #172033;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
}

.support-chat__header p {
    margin: 4px 0 0;
    color: #617087;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.support-chat__close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f9;
    color: #263244;
    cursor: pointer;
}

.support-chat__close:hover,
.support-chat__close:focus {
    background: #e2e8f0;
    outline: none;
}

.support-chat__form {
    padding: 14px 16px 16px;
}

.support-chat__form .form-group {
    margin-bottom: 12px;
}

.support-chat__form label {
    display: block;
    margin-bottom: 5px;
    color: #263244;
    font-size: 13px;
    font-weight: 500;
}

.support-chat__form .form-control {
    border-color: #ccd6e4;
    border-radius: 8px;
    color: #172033;
    font-size: 14px;
}

.support-chat__form textarea.form-control {
    min-height: 120px;
    max-height: 240px;
    resize: vertical;
}

.support-chat__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.support-chat__status {
    min-height: 20px;
    margin: 2px 0 10px;
    font-size: 13px;
    line-height: 1.35;
}

.support-chat__status--success {
    color: #137333;
}

.support-chat__status--error {
    color: #b42318;
}

.support-chat__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    border: 0;
    border-radius: 8px;
    background: #0b6bcb;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.support-chat__submit:hover,
.support-chat__submit:focus {
    background: #0959a8;
    color: #fff;
    outline: none;
}

.support-chat__submit:disabled {
    cursor: wait;
    opacity: 0.75;
}

@media (max-width: 480px) {
    .support-chat {
        right: 12px;
        bottom: 16px;
    }

    .support-chat__button {
        width: 50px;
        height: 50px;
        min-height: 50px;
        padding: 0;
        border-radius: 50%;
    }

    .support-chat__button span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .support-chat__panel {
        right: 0;
        bottom: 60px;
        width: calc(100vw - 24px);
        max-height: calc(100vh - 92px);
    }
}

/* Убираем нижнюю границу у вкладок */
.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: 72px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(560px, calc(100vw - 32px));
    text-align: center;
    pointer-events: none;
}

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

/* Стиль для 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; }
}

@media (max-width: 768px) {
    #flash-container {
        top: 64px;
        width: calc(100vw - 24px);
    }
}

/* Стили для боковой панели, когда пользователь зашел в аккаунт */
.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; /* Выравнивание по горизонтали */
}

body.generation-lock-active {
    overflow: hidden;
}

.generation-lock-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 22, 32, 0.58);
    backdrop-filter: blur(2px);
}

body.generation-lock-active .generation-lock-overlay {
    display: flex;
}

.generation-lock-overlay__panel {
    width: min(420px, 100%);
    padding: 22px 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2a44;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    text-align: center;
}

.generation-lock-overlay__spinner {
    display: block;
    margin: 0 auto 12px;
    font-size: 30px;
    color: #007bff;
}

.generation-lock-overlay__panel strong,
.generation-lock-overlay__panel span {
    display: block;
}

.generation-lock-overlay__panel strong {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
}

.generation-lock-overlay__panel span {
    font-size: 14px;
    line-height: 1.45;
    color: #4c566a;
}

.generation-lock-overlay__progress {
    margin: 2px 0 8px;
    color: #1f7ae0 !important;
    font-size: 24px !important;
    font-weight: 700;
    line-height: 1.1 !important;
}
/* Выровнять текст "Модель успешно сгенерирована" по центру */
#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;
    position: relative;
    z-index: 1201;
    display: block;
    width: max-content;
    max-width: calc(100vw - 24px);
    margin-left: auto;
}

.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; }
.header-controls .btn,
.header-controls .language-switcher,
.header-controls .language-switcher select {
    position: relative;
    z-index: 1;
}

@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;
        width: max-content;
        max-width: calc(100vw - 24px);
        margin-left: auto;
    }

    .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 {
    position: relative;
    z-index: 2;
    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);
}

.catalog-nav-btn {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 22px rgba(111, 55, 241, 0.22);
    font-weight: 500;
}

.catalog-nav-btn:hover,
.catalog-nav-btn:focus {
    background: linear-gradient(135deg, #7740eb 0%, #6530de 100%) !important;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(111, 55, 241, 0.28);
}

.catalog-nav-btn.btn-sm {
    padding: 6px 14px;
}

.catalog-nav-btn.btn-block {
    padding: 10px 16px;
}

.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-admin-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    max-width: 1120px;
    margin: 0 auto 18px;
    padding: 12px 16px;
    border: 1px solid #e3e6ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(24, 24, 43, 0.05);
}

.pricing-admin-switch__group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-admin-switch__label {
    color: #4d5363;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-admin-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid #d7dce7;
    background: #ffffff;
    color: #202433;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pricing-admin-switch__item:hover {
    color: #111111;
    border-color: #111111;
    text-decoration: none;
}

.pricing-admin-switch__item.is-active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.pricing-admin-switch__meta {
    color: #62697a;
    font-size: 13px;
    line-height: 1.35;
    text-align: right;
}

.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-hero--compact {
    padding: 22px 24px;
}

.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-marketing-copy {
    margin-top: 18px;
}

.pricing-marketing-copy--centered {
    text-align: center;
}

.pricing-marketing-intro {
    color: #3f4355;
    font-size: 16px;
    line-height: 1.5;
}

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

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

.pricing-marketing-list--center {
    justify-content: center;
}

.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;
}

.pricing-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-free-mode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #e7edf8;
    border-radius: 18px;
    padding: 20px 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.05);
}

.pricing-free-mode__header {
    max-width: 420px;
}

.pricing-free-mode__title {
    font-size: 28px;
    font-weight: 600;
    color: #1d1d2b;
    line-height: 1.15;
}

.pricing-free-mode__subtitle {
    color: #52526a;
    font-size: 17px;
    line-height: 1.4;
}

.pricing-free-mode__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-free-mode__item {
    border-radius: 999px;
    background: #eef4ff;
    border: 1px solid #d7e4ff;
    color: #24418f;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.35;
}

.pricing-v2-page {
    background: linear-gradient(180deg, #fcfbfe 0%, #f7f5fb 100%);
}

.pricing-v2-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px 18px 56px;
}

.pricing-v2-hero {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-v2-title {
    margin: 0;
    color: #1d1d2b;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.08;
}

.pricing-v2-subtitle {
    max-width: 720px;
    margin: 14px auto 0;
    color: #68697e;
    font-size: 18px;
    line-height: 1.5;
}

.pricing-v2-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(109, 76, 255, 0.08);
    border: 1px solid rgba(109, 76, 255, 0.08);
}

.pricing-v2-switch__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    color: #746f88;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.pricing-v2-switch__item:hover {
    color: #342b5b;
    background: rgba(255, 255, 255, 0.7);
    transform: translateY(-1px);
}

.pricing-v2-switch__item.is-active {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d4cff 100%);
    color: #ffffff;
    box-shadow: 0 10px 20px rgba(109, 76, 255, 0.22);
}

.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-close-access:hover {
    color: #7a5af8;
}

.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;
}

.file-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 168px;
    padding: 22px 18px;
    border: 2px dashed #bfd0ea;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
    color: #425173;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.file-dropzone:hover,
.file-dropzone:focus {
    border-color: #5d8fe8;
    box-shadow: 0 10px 26px rgba(76, 115, 173, 0.14);
    outline: none;
}

.file-dropzone.is-dragover {
    border-color: #2f6fe4;
    background: linear-gradient(180deg, #eef5ff 0%, #e5efff 100%);
    transform: translateY(-1px);
}

.file-dropzone.has-file {
    border-style: solid;
    border-color: #2f8f5b;
    background: linear-gradient(180deg, #f4fcf7 0%, #ebf8f0 100%);
}

.file-dropzone.is-disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.file-dropzone__icon {
    font-size: 32px;
    line-height: 1;
    color: #2f6fe4;
}

.file-dropzone.has-file .file-dropzone__icon {
    color: #2f8f5b;
}

.file-dropzone__title {
    font-size: 16px;
    font-weight: 600;
    color: #22304d;
}

.file-dropzone__hint {
    font-size: 13px;
    color: #6b7892;
}

.file-dropzone__filename {
    max-width: 100%;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(191, 208, 234, 0.9);
    color: #425173;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.file-dropzone.has-file .file-dropzone__filename {
    border-color: rgba(47, 143, 91, 0.24);
    color: #1f6a43;
}

.file-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.file-dropzone-with-preview {
    display: flex;
    align-items: stretch;
    gap: 14px;
}

.file-dropzone-with-preview .file-dropzone {
    flex: 1 1 auto;
    min-width: 0;
}

.file-dropzone-inline-preview {
    flex: 0 0 150px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid #dce3f2;
    border-radius: 14px;
    background: #f8fbff;
}

.file-dropzone-inline-preview__image {
    display: block;
    width: 100%;
    max-width: 128px;
    max-height: 128px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.inline-file-input-with-preview {
    display: flex;
    align-items: center;
    gap: 14px;
}

.inline-file-input-with-preview__main {
    flex: 1 1 auto;
    min-width: 0;
}

.inline-file-input-with-preview__preview {
    flex: 0 0 130px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 1px solid #dce3f2;
    border-radius: 14px;
    background: #f8fbff;
}

@media (max-width: 768px) {
    .file-dropzone-with-preview {
        flex-direction: column;
    }

    .file-dropzone-inline-preview {
        flex-basis: auto;
        width: 100%;
    }

    .file-dropzone-inline-preview__image {
        max-width: 140px;
    }

    .inline-file-input-with-preview {
        flex-direction: column;
        align-items: stretch;
    }

    .inline-file-input-with-preview__preview {
        flex-basis: auto;
        width: 100%;
    }
}

.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-page,
.model-detail-layout,
.model-detail-view,
.model-detail-meta,
.model-viewer-shell,
#model-viewer-container,
.model-detail-actions,
.model-action-row {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.model-detail-page {
    overflow-x: hidden;
    overflow-x: clip;
}

.model-detail-page .model-detail-view {
    overflow: hidden;
}

.model-viewer-shell,
#model-viewer-container {
    width: 100%;
}

#model-viewer-container canvas {
    max-width: 100% !important;
}

.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;
    padding-top: 40px;
    padding-right: 96px;
}

.model-detail-hero--manageable {
    padding-right: 172px;
}

.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;
}

.model-detail-back-stack + .model-detail-hero {
    margin-top: 24px;
}

.model-detail-back-stack--owner + .model-detail-hero {
    margin-top: 56px;
}

.detail-owner-tools {
    position: absolute;
    top: 8px;
    right: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.detail-owner-tools__buttons {
    display: flex;
    gap: 6px;
}

.detail-owner-action {
    width: 30px;
    height: 30px;
    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 5px 12px rgba(21, 29, 44, 0.16);
    cursor: pointer;
    font-size: 12px;
}

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

.detail-owner-action--share {
    background: linear-gradient(135deg, #2d8cff 0%, #4d6dff 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(45, 140, 255, 0.3);
}

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

.detail-owner-action--share.is-copied {
    background: linear-gradient(135deg, #13b56f 0%, #189b85 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(19, 181, 111, 0.3);
}

.detail-owner-action--share.is-error {
    background: linear-gradient(135deg, #e85c58 0%, #d6455c 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(216, 69, 92, 0.28);
}

.detail-owner-action--close:hover {
    color: #7a5af8;
}

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

.detail-hero-feedback {
    display: none;
    max-width: min(280px, calc(100vw - 48px));
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(21, 29, 44, 0.12);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.98);
    color: #2a6c4a;
    text-align: right;
}

.detail-hero-feedback.is-success {
    background: #effcf4;
    border-color: #bde6cb;
    color: #1f7a4f;
}

.detail-hero-feedback.is-error {
    background: #fff1f1;
    border-color: #f2c7c7;
    color: #b93a3a;
}

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

.model-viewer-note {
    margin: 10px 0 0;
    color: #6c7690;
    font-size: 13px;
    line-height: 1.4;
}

.model-download-access-note {
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #eadfff;
    border-radius: 12px;
    background: #fbf9ff;
    color: #5e6474;
    font-size: 12px;
    line-height: 1.4;
}

.model-download-access-note i {
    margin-top: 2px;
    color: #7c4dff;
}

.download-quality-modal .modal-dialog {
    max-width: 645px;
}

.download-quality-modal .modal-content {
    border: none;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(24, 26, 34, 0.22);
    overflow: hidden;
}

.download-quality-modal .modal-header {
    border-bottom: none;
    justify-content: center;
    padding: 18px 18px 8px;
    position: relative;
}

.download-quality-modal .modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #242936;
    text-align: center;
}

.download-quality-modal .close {
    position: absolute;
    top: 12px;
    right: 14px;
    margin: 0;
    padding: 0;
    color: #6f7480;
    opacity: 0.85;
}

.download-quality-modal .modal-body {
    padding: 0 14px 14px;
}

.download-quality-title-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.download-quality-title-wrap p {
    margin: 0;
    color: #8a8f9c;
    font-size: 15px;
    line-height: 1.2;
    text-align: center;
}

.download-quality-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.download-quality-icon--header {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #efe9ff;
    color: #7c4dff;
    font-size: 16px;
}

.download-quality-icon--preview,
.download-quality-icon--full {
    width: 50px;
    height: 42px;
    font-size: 24px;
    margin-bottom: 8px;
}

.download-quality-icon--preview {
    color: #7c4dff;
}

.download-quality-icon--full {
    color: #e79019;
}

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

.download-quality-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 176px;
    border: 1px solid #e4ddfb;
    border-radius: 8px;
    padding: 14px 12px 12px;
    background: #f8f5ff;
    text-align: center;
}

.download-quality-card--full {
    border-color: #f1dcc1;
    background: #fff8ee;
}

.download-quality-card h6 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: #252936;
}

.download-quality-card > p {
    margin: 0 0 8px;
    color: #8a8f9c;
    font-size: 14px;
    line-height: 1.3;
}

.download-quality-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: auto 0 8px;
}

.download-quality-size,
.download-quality-price {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.download-quality-size {
    color: #7c4dff;
}

.download-quality-card--full .download-quality-size,
.download-quality-card--full .download-quality-price {
    color: #dc7c00;
}

.download-quality-price--free {
    color: #7c4dff;
}

.download-quality-formats,
.download-quality-format-label {
    margin: 0 0 7px !important;
    color: #777d8c !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
}

.download-quality-format-label {
    display: block;
    text-align: left;
}

.download-quality-format-select {
    height: 30px;
    padding: 3px 8px;
    margin-bottom: 7px;
    border-radius: 8px;
    font-size: 14px;
}

.download-quality-btn {
    margin-top: auto;
    min-height: 38px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: none;
}

.download-quality-btn--preview,
.download-quality-btn--preview:hover,
.download-quality-btn--preview:focus {
    background: #6d3df2;
    color: #fff;
}

.download-quality-card--full .download-quality-btn,
.download-quality-card--full .download-quality-btn:hover,
.download-quality-card--full .download-quality-btn:focus {
    background: #db7c00;
    color: #fff;
}

.download-quality-error {
    margin-bottom: 10px;
    font-size: 14px;
    border-radius: 8px;
}

#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.start {
    border-top: 4px solid #2c7be5;
}

.pricing-showcase-card.standard {
    border-top: 4px solid #ff7a59;
}

.pricing-showcase-card.business {
    border-top: 4px solid #1f9d68;
}

.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-card-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-card-head h3,
.pricing-card-head p {
    margin-bottom: 0 !important;
}

.pricing-card-subtitle {
    min-height: 34px;
}

.pricing-card-price {
    color: #1d1d2b;
    font-size: 34px;
    font-weight: 600;
    line-height: 1.1;
}

.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;
}

.pricing-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.pricing-v2-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-height: 100%;
    padding: 24px 22px 22px;
    border-radius: 22px;
    border: 1px solid #e7e4ef;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(31, 29, 46, 0.05);
}

.pricing-v2-card--featured {
    border-color: rgba(109, 76, 255, 0.35);
    box-shadow: 0 18px 42px rgba(109, 76, 255, 0.14);
    transform: translateY(-6px);
}

.pricing-v2-card__badge {
    position: absolute;
    top: -11px;
    left: 20px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d4cff 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 20px rgba(109, 76, 255, 0.2);
}

.pricing-v2-card__head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pricing-v2-card__title {
    margin: 0;
    color: #1d1d2b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.pricing-v2-card__price {
    margin: 0;
    color: #1d1d2b;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.05;
}

.pricing-v2-card__desc {
    margin: 0;
    color: #66697a;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-v2-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.pricing-v2-card__features li {
    position: relative;
    padding-left: 18px;
    color: #6b6d80;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-v2-card__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #8b5cf6;
}

.pricing-v2-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-v2-form__btn {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 600;
}

.pricing-v2-form__note {
    margin: 0;
    color: #85869a;
    font-size: 12px;
    line-height: 1.4;
}

.pricing-v2-consent {
    margin-top: 0;
}

.pricing-v2-freebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #e7e4ef;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 12px 28px rgba(31, 29, 46, 0.04);
}

.pricing-v2-freebar__copy {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pricing-v2-freebar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(109, 76, 255, 0.1);
    color: #6d4cff;
    font-size: 22px;
    font-weight: 700;
    flex: 0 0 auto;
}

.pricing-v2-freebar__title {
    margin: 0 0 2px;
    color: #1d1d2b;
    font-size: 16px;
    font-weight: 700;
}

.pricing-v2-freebar__text,
.pricing-v2-freebar__meta {
    margin: 0;
    color: #66697a;
    font-size: 14px;
    line-height: 1.4;
}

.pricing-v2-freebar__btn {
    flex: 0 0 auto;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 600;
}

.pricing-v2-footnote {
    margin: 18px 0 0;
    color: #88899b;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.pricing-v2-api {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 20px 22px;
    border-radius: 22px;
    border: 1px solid #e7e4ef;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 29, 46, 0.04);
}

.pricing-v2-api__eyebrow {
    margin: 0 0 8px;
    color: #8a819f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-v2-api__title {
    margin: 0;
    color: #1d1d2b;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.pricing-v2-api__text {
    margin: 8px 0 0;
    color: #66697a;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-v2-api__btn {
    flex: 0 0 auto;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 600;
}

.pricing-api-strip__btn,
.pricing-v2-api__btn {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

.pricing-api-strip__btn:hover,
.pricing-api-strip__btn:focus,
.pricing-v2-api__btn:hover,
.pricing-v2-api__btn:focus {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.pricing-terms-line {
    margin: 20px 0 0;
    color: #5b5d72;
    font-size: 15px;
    line-height: 1.45;
    text-align: center;
}

.pricing-api-strip {
    margin-top: 18px;
    border: 1px solid #e8ecf4;
    border-radius: 18px;
    padding: 20px 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.05);
}

.pricing-api-strip__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.pricing-api-strip__eyebrow {
    color: #576074;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-api-strip__headline {
    color: #1d1d2b;
    font-size: 26px;
    line-height: 1.15;
}

.pricing-api-strip__subtitle {
    color: #52526a;
    font-size: 17px;
    line-height: 1.4;
}

.pricing-api-strip__btn {
    flex: 0 0 auto;
}

@media (max-width: 1199px) {
    .pricing-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 991px) {
    .pricing-admin-switch {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-admin-switch__meta {
        text-align: left;
    }

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

    .pricing-free-mode {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-free-mode__title {
        font-size: 24px;
    }

    .pricing-v2-shell {
        padding: 22px 12px 48px;
    }

    .pricing-v2-title {
        font-size: 34px;
    }

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

    .pricing-v2-switch {
        flex-wrap: wrap;
        justify-content: center;
        border-radius: 20px;
    }

    .pricing-v2-grid {
        grid-template-columns: 1fr;
    }

    .pricing-v2-card--featured {
        transform: none;
    }

    .pricing-v2-card__price {
        font-size: 34px;
    }

    .pricing-v2-freebar,
    .pricing-v2-api {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-v2-freebar__copy {
        align-items: flex-start;
    }

    .pricing-v2-freebar__btn,
    .pricing-v2-api__btn {
        width: 100%;
    }

    .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-card-subtitle {
        min-height: 0;
    }

    .pricing-card-price {
        font-size: 30px;
    }

    .pricing-api-strip__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .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-detail-hero,
    .model-detail-hero--manageable {
        padding-top: 24px;
        padding-right: 24px;
    }

    .model-detail-back-stack + .model-detail-hero,
    .model-detail-back-stack--owner + .model-detail-hero {
        margin-top: 96px;
    }

    #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;
        align-items: flex-start;
    }

    .detail-hero-feedback {
        max-width: 100%;
        text-align: left;
    }

    .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);
    }

    .download-quality-grid {
        grid-template-columns: 1fr;
    }

    .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) {
    .model-detail-view,
    .model-detail-meta {
        padding: 10px;
        border-radius: 14px;
    }

    #model-viewer-container {
        min-height: 230px;
        height: clamp(230px, 72vw, 300px);
        border-radius: 9px;
    }

    .model-viewer-note,
    .model-download-access-note {
        font-size: 11px;
        line-height: 1.35;
        overflow-wrap: anywhere;
    }

    .model-download-access-note {
        align-items: center;
        padding: 7px 9px;
    }

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

    .model-action-row .btn {
        width: 100%;
        flex: 1 1 auto;
        min-height: 40px;
        font-size: 13px;
        padding: 9px 12px;
    }

    .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; }

@media (max-width: 640px) {
    .model-detail-page {
        width: 100%;
        max-width: 100%;
    }

    .model-detail-page .button-row.model-action-row {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .model-detail-page .button-row.model-action-row > * {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* Стили для чекбокса "Публичный заказ" */
.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; /* По умолчанию скрыт, показывается только если чекбокс включен */
}

/* Pricing V2 redesign */
.pricing-v2-page {
    background:
        radial-gradient(circle at top center, rgba(124, 65, 244, 0.08), transparent 24%),
        #f8f8fb;
}

.pricing-v2-shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 30px 18px 60px;
}

.pricing-v2-hero {
    max-width: 760px;
    margin: 0 auto 22px;
    text-align: center;
}

.pricing-v2-title {
    margin: 0;
    color: #151a2b;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.08;
}

.pricing-v2-subtitle {
    margin: 14px auto 0;
    color: #747892;
    font-size: 17px;
    line-height: 1.55;
}

.pricing-v2-tabbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
    width: fit-content;
    max-width: 100%;
    padding: 6px;
    border-radius: 18px;
    border: 1px solid #ece8f3;
    background: #f2f0f5;
}

.pricing-v2-tabbar__button {
    min-height: 48px;
    padding: 0 22px;
    border: none;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    color: #736e84;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pricing-v2-tabbar__button:hover {
    color: #1f2435;
}

.pricing-v2-tabbar__button.is-active {
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(111, 55, 241, 0.22);
}

.pricing-v2-tabpanel {
    margin-top: 28px;
}

.pricing-v2-tabpanel[hidden] {
    display: none !important;
}

.pricing-v2-tabpanel__note {
    margin: 0 0 28px;
    color: #7e8094;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.pricing-v2-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.pricing-v2-catalog-card {
    position: relative;
    min-height: 100%;
    border: 1px solid #dddfeb;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.05);
}

.pricing-v2-catalog-card--featured {
    border-color: #7f45f6;
    box-shadow: 0 18px 36px rgba(111, 55, 241, 0.14);
}

.pricing-v2-catalog-card--wide {
    max-width: 760px;
    margin: 0 auto;
}

.pricing-v2-catalog-card__badge {
    position: absolute;
    left: 22px;
    top: -14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 12px 24px rgba(111, 55, 241, 0.22);
}

.pricing-v2-catalog-card__body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 26px 24px 24px;
}

.pricing-v2-catalog-card__title {
    margin: 0;
    color: #161b2d;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.pricing-v2-catalog-card__title--wide {
    font-size: 24px;
}

.pricing-v2-catalog-card__price-row {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pricing-v2-catalog-card__price-row--wide {
    margin-top: 14px;
}

.pricing-v2-catalog-card__price {
    color: #13182a;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.05;
}

.pricing-v2-catalog-card__price--wide {
    font-size: 38px;
}

.pricing-v2-catalog-card__price-note {
    margin-bottom: 3px;
    color: #7a7d93;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.pricing-v2-catalog-card__price-note--wide {
    font-size: 18px;
}

.pricing-v2-catalog-card__features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 26px;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.pricing-v2-catalog-card__features--wide {
    margin-bottom: 22px;
}

.pricing-v2-catalog-card__features li {
    position: relative;
    padding-left: 26px;
    color: #6f7288;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-v2-catalog-card__features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: -1px;
    color: #7f45f6;
    font-size: 18px;
    font-weight: 700;
}

.pricing-v2-catalog-card__description {
    margin: 0 0 24px;
    color: #6f7288;
    font-size: 15px;
    line-height: 1.75;
}

.pricing-v2-catalog-card__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

.pricing-v2-catalog-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.pricing-v2-catalog-card__btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.pricing-v2-catalog-card__btn--primary {
    border: 1px solid #7f45f6;
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(111, 55, 241, 0.18);
}

.pricing-v2-catalog-card__btn--primary:hover,
.pricing-v2-catalog-card__btn--primary:focus {
    color: #ffffff;
    border-color: #6f37f1;
    background: linear-gradient(135deg, #7740eb 0%, #6530de 100%);
}

.pricing-v2-catalog-card__btn--secondary {
    border: 1px solid #c8dcff;
    background: linear-gradient(180deg, #edf5ff 0%, #dceaff 100%);
    color: #1a4f92;
    box-shadow: 0 10px 22px rgba(110, 156, 232, 0.16);
}

.pricing-v2-catalog-card__btn--secondary:hover,
.pricing-v2-catalog-card__btn--secondary:focus {
    color: #123f7d;
    border-color: #b3cefb;
    background: linear-gradient(180deg, #e6f1ff 0%, #d3e4ff 100%);
}

.pricing-v2-catalog-card__note {
    margin: 0;
    color: #8b8da1;
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.pricing-v2-catalog-card__consent {
    margin-top: 0;
}

.pricing-v2-freebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 28px;
    padding: 22px 24px;
    border: 1px dashed #ddd6eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(26, 26, 46, 0.04);
}

.pricing-v2-freebar__copy {
    display: flex;
    align-items: center;
    gap: 16px;
}

.pricing-v2-freebar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(127, 69, 246, 0.08);
    color: #7f45f6;
    font-size: 24px;
    font-weight: 700;
    flex: 0 0 auto;
}

.pricing-v2-freebar__title {
    margin: 0 0 4px;
    color: #161b2d;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.2;
}

.pricing-v2-freebar__text {
    margin: 0;
    color: #6f7288;
    font-size: 15px;
    line-height: 1.5;
}

.pricing-v2-freebar__meta {
    margin: 6px 0 0;
    color: #7f45f6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
}

.pricing-v2-freebar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid #bfc6d3;
    border-radius: 14px;
    background: linear-gradient(180deg, #edf0f4 0%, #d9dee6 100%);
    color: #3f4654;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(82, 91, 108, 0.12);
}

.pricing-v2-freebar__btn:hover,
.pricing-v2-freebar__btn:focus {
    color: #2e3440;
    border-color: #aab3c2;
    background: linear-gradient(180deg, #e7ebf1 0%, #cfd6df 100%);
    text-decoration: none;
}

@media (max-width: 1199px) {
    .pricing-v2-catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .pricing-v2-shell {
        padding: 24px 14px 52px;
    }

    .pricing-v2-title {
        font-size: 34px;
    }

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

    .pricing-v2-tabbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pricing-v2-catalog-grid {
        grid-template-columns: 1fr;
    }

    .pricing-v2-catalog-card__price {
        font-size: 34px;
    }

    .pricing-v2-freebar {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-v2-freebar__btn {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 767px) {
    .pricing-v2-title {
        font-size: 30px;
    }

    .pricing-v2-tabbar__button {
        flex: 1 1 calc(50% - 6px);
        min-width: 132px;
    }

    .pricing-v2-catalog-card__body {
        padding: 24px 18px 20px;
    }

    .pricing-v2-catalog-card__badge {
        left: 18px;
        right: auto;
        max-width: calc(100% - 36px);
    }

    .pricing-v2-freebar__copy {
        align-items: flex-start;
    }
}

/* Pricing V1 conversion refresh */
.pricing-page--v1 {
    background:
        radial-gradient(circle at top center, rgba(124, 65, 244, 0.07), transparent 26%),
        #f8f8fb;
}

.pricing-shell--v1 {
    max-width: 980px;
    margin: 0 auto;
}

.pricing-page--v1 .pricing-hero--v1 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    padding: 6px 0 2px;
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
}

.pricing-page--v1 .pricing-title {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
}

.pricing-page--v1 .pricing-subtitle {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    color: #5f6277;
    font-size: 18px;
    line-height: 1.45;
}

.pricing-hero-note {
    color: #6b6f84;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-page--v1 .pricing-free-mode--v1 {
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: #ffffff;
    border-color: #e8ebf4;
    box-shadow: 0 10px 22px rgba(26, 26, 46, 0.04);
}

.pricing-page--v1 .pricing-free-mode__header {
    max-width: 280px;
}

.pricing-page--v1 .pricing-free-mode__title {
    font-size: 24px;
    font-weight: 800;
}

.pricing-page--v1 .pricing-free-mode__subtitle {
    font-size: 15px;
    color: #66697c;
}

.pricing-page--v1 .pricing-free-mode__item {
    padding: 8px 12px;
    font-size: 14px;
}

.pricing-page--v1 .pricing-grid--v1 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.pricing-page--v1 .pricing-showcase-card {
    position: relative;
    min-height: 0;
    padding: 22px 20px 20px;
    border: 1px solid #e8eaf2;
    border-top: 1px solid #e8eaf2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 29, 46, 0.05);
}

.pricing-page--v1 .pricing-showcase-card.start,
.pricing-page--v1 .pricing-showcase-card.standard,
.pricing-page--v1 .pricing-showcase-card.business {
    border-top: 1px solid #e8eaf2;
}

.pricing-page--v1 .pricing-showcase-card.featured {
    border-color: rgba(127, 69, 246, 0.35);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(111, 55, 241, 0.12);
    transform: translateY(-2px);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(111, 55, 241, 0.18);
}

.pricing-page--v1 .pricing-card-head {
    gap: 3px;
    margin-bottom: 14px;
}

.pricing-page--v1 .pricing-card-head h3 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
}

.pricing-page--v1 .pricing-card-subtitle {
    min-height: 0;
    color: #697085;
    font-size: 15px;
    line-height: 1.35;
}

.pricing-page--v1 .pricing-card-price {
    margin-top: 8px;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.05;
}

.pricing-page--v1 .pricing-feature-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    flex: 1 1 auto;
}

.pricing-page--v1 .pricing-feature-list li {
    margin-bottom: 0;
    padding-left: 24px;
    color: #5f6477;
    font-size: 15px;
    line-height: 1.45;
}

.pricing-page--v1 .pricing-feature-list li::before {
    content: "\2713";
    top: -1px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: #7f45f6;
    font-size: 16px;
    font-weight: 700;
}

.pricing-card-actions {
    margin-top: auto;
    padding-top: 16px;
}

.pricing-card-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-card-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 56px;
    padding: 0 18px;
    border: 1px solid #7f45f6;
    border-radius: 16px;
    background: linear-gradient(135deg, #7f45f6 0%, #6f37f1 100%);
    color: #ffffff;
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(111, 55, 241, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.pricing-card-btn:hover,
.pricing-card-btn:focus {
    color: #ffffff;
    text-decoration: none;
    border-color: #6f37f1;
    background: linear-gradient(135deg, #7740eb 0%, #6530de 100%);
    transform: translateY(-1px);
}

.pricing-shared-checkout-form {
    display: none;
}

.pricing-checkout-meta {
    max-width: 760px;
    margin: 18px auto 0;
    padding: 4px 0 0;
    border: none;
    border-radius: 0;
    background: transparent;
    text-align: center;
    box-shadow: none;
}

.pricing-page--v1 .pricing-terms-line {
    margin-top: 0;
}

.pricing-shared-note {
    margin-top: 8px;
    color: #6b6f84;
    font-size: 14px;
    line-height: 1.45;
}

.pricing-shared-note a,
.pricing-global-consent__label a {
    color: #6f37f1;
    font-weight: 700;
    text-decoration: none;
}

.pricing-shared-note a:hover,
.pricing-global-consent__label a:hover {
    text-decoration: underline;
}

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

.pricing-global-consent__label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    color: #4f5568;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.pricing-global-consent__label input[type="checkbox"] {
    margin-top: 3px;
    flex: 0 0 auto;
}

.pricing-card-consent {
    margin-top: 0;
}

.pricing-card-consent .pricing-consent-label {
    color: #596075;
    font-size: 13px;
    line-height: 1.4;
}

.pricing-card-consent .pricing-consent-label a {
    color: #6f37f1;
    font-weight: 700;
}

.pricing-page--v1 .pricing-api-strip--v1 {
    margin-top: 18px;
    padding: 18px 20px;
    border-radius: 18px;
    border-color: #e8eaf2;
    box-shadow: 0 10px 22px rgba(26, 26, 46, 0.04);
}

.pricing-page--v1 .pricing-api-strip__eyebrow {
    color: #7b8195;
}

.pricing-page--v1 .pricing-api-strip__headline {
    font-size: 24px;
    font-weight: 800;
}

.pricing-page--v1 .pricing-api-strip__subtitle {
    font-size: 15px;
    color: #66697c;
}

.pricing-seo-section {
    margin-top: 24px;
    padding: 24px;
    border: 1px solid #e8eaf2;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(26, 26, 46, 0.04);
}

.pricing-seo-section__header {
    max-width: 760px;
}

.pricing-seo-section__eyebrow {
    color: #7f45f6;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-seo-section__title {
    color: #1d1d2b;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.pricing-seo-section__desc {
    color: #62667b;
    font-size: 16px;
    line-height: 1.55;
}

.pricing-marketing-copy--seo {
    margin-top: 18px;
}

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

.pricing-faq-card {
    padding: 18px;
    border: 1px solid #eceef4;
    border-radius: 18px;
    background: #fafafe;
}

.pricing-faq-card__title {
    margin: 0 0 8px;
    color: #1d1d2b;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
}

.pricing-faq-card__text {
    color: #63687c;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1040px) {
    .pricing-page--v1 .pricing-grid--v1 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .pricing-shell--v1 {
        max-width: 760px;
    }

    .pricing-page--v1 .pricing-title {
        font-size: 34px;
    }

    .pricing-page--v1 .pricing-free-mode--v1,
    .pricing-page--v1 .pricing-api-strip__content {
        flex-direction: column;
        align-items: flex-start;
    }

    .pricing-page--v1 .pricing-api-strip__btn {
        width: 100%;
    }

    .pricing-faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .pricing-shell--v1 {
        padding: 0 6px;
    }

    .pricing-page--v1 .pricing-hero--v1,
    .pricing-page--v1 .pricing-free-mode--v1,
    .pricing-page--v1 .pricing-checkout-meta,
    .pricing-page--v1 .pricing-api-strip--v1,
    .pricing-seo-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .pricing-page--v1 .pricing-title {
        font-size: 30px;
    }

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

    .pricing-page--v1 .pricing-grid--v1 {
        grid-template-columns: 1fr;
    }

    .pricing-page--v1 .pricing-showcase-card {
        padding: 20px 18px 18px;
    }

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

    .pricing-page--v1 .pricing-card-price {
        font-size: 32px;
    }

    .pricing-page--v1 .pricing-free-mode__items {
        width: 100%;
    }

    .pricing-page--v1 .pricing-free-mode__item {
        width: 100%;
    }

    .pricing-global-consent__label {
        display: flex;
    }
}
