* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #fd5068 0%, #ff8a56 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
}

.screen {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    animation: fadeIn 0.3s;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .screen {
        padding: 15px 10px;
    }
}

/* Экран инструкции - специальные стили */
#instruction-screen {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

@media (max-width: 480px) {
    #instruction-screen {
        padding: 0;
    }
}

/* Экран вопросов - специальные стили */
#questions-screen {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative; /* Для позиционирования bottom-buttons */
    overflow-y: auto; /* Добавляем скролл если контент больше экрана */
}

@media (max-width: 480px) {
    #questions-screen {
        padding: 0;
    }
}

.screen.hidden {
    display: none !important;
}

/* Убеждаемся, что скрытые экраны действительно скрыты */
#instruction-screen.hidden {
    display: none !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* Контейнер на экране инструкции - растягивается по ширине, БЕЗ закруглений */
#instruction-screen .container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0;
    border-radius: 0 !important;
    box-shadow: none;
}

@media (max-width: 480px) {
    #instruction-screen .container {
        padding: 30px 20px;
    }
}

h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #fd5068;
}

p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
}

.btn-primary {
    background: linear-gradient(135deg, #fd5068 0%, #ff8a56 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(253, 80, 104, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.loading {
    text-align: center;
    color: white;
    font-size: 20px;
}

/* Хедер экрана вопросов */
.questions-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
    z-index: 100;
    background: transparent;
    border-bottom: none;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .questions-header {
        padding: 12px 15px;
        gap: 8px;
    }
    
    .logo-image {
        height: 28px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    .header-language-btn,
    .header-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .header-language-flag {
        font-size: 20px;
    }
}

/* Question Screen - Tinder Style */
.question-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 30px 0 0 0; /* Отступ сверху уменьшен на 10% (с 33px до 30px) */
    position: static; /* Изменено с relative на static, чтобы bottom-buttons позиционировались относительно questions-screen */
    overflow: visible;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .question-container {
        gap: 15px;
        margin-top: 27px; /* Отступ сверху для мобильных уменьшен на 10% (с 30px до 27px) */
    }
    
    .bottom-buttons {
        bottom: 40px;
    }
}

/* Карточка вопроса - новая структура с изображением */
.question-card {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 400 / 355; /* Увеличено: было 4/3 (300px), стало 355px (черный снизу 55px) */
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
    user-select: none;
    margin: 0 auto;
    z-index: 5;
}

@media (max-width: 480px) {
    .question-card {
        max-width: calc(100% - 40px);
        border-radius: 20px;
    }
}

/* Фоновое изображение */
.card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.card-bg img {
    width: 100%;
    height: 85%; /* Изображение занимает 85% высоты (300px из 355px), снизу 15% (55px) - градиент на фоне */
    object-fit: cover;
    object-position: center top;
}

/* Слой размытия */
.blur-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    z-index: 1;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    mask-image: linear-gradient(to top, black 35%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 35%, transparent 100%);
}

/* Цветной слой градиента */
.color-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%; /* Градиент теперь на всю высоту карточки */
    z-index: 2;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%, /* Внизу черный */
        rgba(0, 0, 0, 0.92) 20%, /* Градиент начинается на 72px от низа (72/355 ≈ 20%) */
        rgba(0, 0, 0, 0.5) 39%, /* Средняя точка */
        transparent 100% /* Прозрачный наверху */
    );
}

/* Водяной знак */
.watermark {
    position: absolute;
    inset: 0;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

.watermark-inner {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    transform: rotate(-25deg);
    opacity: 0.07;
}

.watermark-text {
    font-family: 'Nunito', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    padding: 6px 12px;
    letter-spacing: 0.5px;
}

/* Контент карточки */
.card-content {
    position: relative;
    z-index: 3;
    padding: 8px 20px 24px; /* padding-bottom возвращен к 24px */
    transform: translateY(-28px); /* Поднят текст на 28px (в 4 раза от того что опустил) */
}

.card-text {
    font-family: 'Nunito', sans-serif; /* Шрифт как в макете */
    font-size: 20px; /* Увеличен с 18px до 20px */
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
    color: #fff;
}

.card-text.hidden {
    display: none;
}

/* Обратная совместимость для старого селектора */
.question-text {
    font-size: 20px; /* Увеличен с 18px до 20px */
    font-weight: 800;
    text-align: center;
    line-height: 1.35;
    color: #fff;
}

.question-text.hidden {
    display: none;
}

@media (max-width: 480px) {
    .card-text,
    .question-text {
        font-size: 18px; /* Увеличен с 16px до 18px */
        line-height: 1.3;
    }
    
    .card-content {
        padding: 7px 16px 20px; /* padding-bottom возвращен к 20px */
        transform: translateY(-24px); /* Поднят текст на 24px (в 4 раза от того что опустил) */
    }
}

/* Overlay спиннер загрузки вопроса */
.question-spinner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.question-spinner-overlay.hidden {
    display: none;
}

.question-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(232, 67, 147, 0.2);
    border-top-color: #e84393;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .question-text {
        font-size: 24px;
        line-height: 1.4;
    }
}

/* Кнопки ответов */
.answer-buttons {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 22px;
    margin: -30px 0 30px 0; /* Кнопки опущены на 5% (было -32px, уменьшено отрицательное значение до -30px) */
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.answer-btn {
    position: relative;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.answer-btn:hover {
    transform: scale(1.12) translateY(-4px);
}

.answer-btn:active {
    transform: scale(0.95);
}

.answer-btn.active,
.answer-btn.pressed {
    transform: scale(0.95);
}

/* NO Button - Red/Coral */
.answer-btn[data-answer="0"] {
    width: 67.2px;
    height: 67.2px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 50%, #d63031 100%);
    box-shadow: 
        0 8px 32px rgba(214, 48, 49, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.answer-btn[data-answer="0"]:hover {
    box-shadow: 
        0 12px 40px rgba(214, 48, 49, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.answer-btn[data-answer="0"] .answer-icon {
    width: 29.4px;
    height: 29.4px;
    color: white;
}

/* SKIP Button - Yellow/Gold */
.answer-btn[data-answer="1"] {
    width: 58.8px;
    height: 58.8px;
    background: linear-gradient(135deg, #ffd93d 0%, #f9ca24 50%, #f0932b 100%);
    box-shadow: 
        0 8px 32px rgba(249, 202, 36, 0.35),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.answer-btn[data-answer="1"]:hover {
    box-shadow: 
        0 12px 40px rgba(249, 202, 36, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
}

.answer-btn[data-answer="1"] .answer-icon {
    width: 23.1px;
    height: 23.1px;
    color: white;
}

/* YES Button - Green/Teal */
.answer-btn[data-answer="2"] {
    width: 67.2px;
    height: 67.2px;
    background: linear-gradient(135deg, #00d2d3 0%, #00b894 50%, #00a085 100%);
    box-shadow: 
        0 8px 32px rgba(0, 184, 148, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.answer-btn[data-answer="2"]:hover {
    box-shadow: 
        0 12px 40px rgba(0, 184, 148, 0.5),
        inset 0 2px 0 rgba(255, 255, 255, 0.2);
}

.answer-btn[data-answer="2"] .answer-icon {
    width: 29.4px;
    height: 29.4px;
    color: white;
}

/* SUPER YES Button - Pink/Magenta with glow */
.answer-btn[data-answer="3"] {
    width: 75.6px;
    height: 75.6px;
    background: linear-gradient(135deg, #ff79c6 0%, #ff5da0 50%, #e84393 100%);
    box-shadow: 
        0 8px 32px rgba(232, 67, 147, 0.45),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    animation: pulse-glow 2s ease-in-out infinite;
}

.answer-btn[data-answer="3"]:hover {
    box-shadow: 
        0 12px 48px rgba(232, 67, 147, 0.6),
        0 0 60px rgba(255, 121, 198, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.25);
    animation: none;
}

.answer-btn[data-answer="3"] .answer-icon {
    width: 35.7px;
    height: 35.7px;
    color: white;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(232, 67, 147, 0.45),
            inset 0 2px 0 rgba(255, 255, 255, 0.25);
    }
    50% {
        box-shadow: 
            0 8px 48px rgba(232, 67, 147, 0.6),
            0 0 40px rgba(255, 121, 198, 0.25),
            inset 0 2px 0 rgba(255, 255, 255, 0.25);
    }
}

.answer-icon {
    stroke-width: 2;
}

.answer-label {
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.825rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    user-select: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1.2;
    height: 1.2em;
    min-width: 0;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.answer-label:hover {
    color: rgba(255, 255, 255, 0.8);
}

.answer-label.clicked {
    transform: translateX(-50%) scale(1.2);
    color: rgba(255, 255, 255, 1);
}

.answer-label-info {
    position: absolute;
    bottom: -51px;
    left: 50%;
    transform: translateX(-50%);
    width: 23.4px;
    height: 23.4px;
    min-width: 23.4px;
    min-height: 23.4px;
    max-width: 23.4px;
    max-height: 23.4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 15;
    flex-shrink: 0;
}

.answer-label-info:hover {
    opacity: 1;
}

.answer-label-info.clicked {
    transform: translateX(-50%) scale(1.3);
    opacity: 1;
}

.answer-label-info svg {
    width: 100%;
    height: 100%;
    stroke: rgba(255, 255, 255, 0.8);
    fill: none;
    transition: stroke 0.2s ease;
}

.answer-label-info.clicked svg {
    stroke: rgba(255, 255, 255, 1);
}

.answer-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    max-width: 250px;
    z-index: 1000;
    pointer-events: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.answer-tooltip.show {
    opacity: 1;
    visibility: visible;
}

.answer-tooltip::after {
    content: '';
    position: absolute;
    bottom: var(--arrow-bottom, -6px);
    top: var(--arrow-top, auto);
    left: calc(50% + var(--arrow-left, 0px));
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: var(--arrow-border-top, 6px solid rgba(0, 0, 0, 0.9));
    border-bottom: var(--arrow-border-bottom, none);
}

@media (max-width: 480px) {
    .answer-buttons {
        gap: 17.6px;
        margin: -36px 0 20px 0; /* Мобильные кнопки опущены на 5% (было -38px, уменьшено отрицательное значение до -36px) */
    }
    
    .answer-btn[data-answer="0"] {
        width: 58.8px;
        height: 58.8px;
    }
    
    .answer-btn[data-answer="0"] .answer-icon {
        width: 25.2px;
        height: 25.2px;
    }
    
    .answer-btn[data-answer="1"] {
        width: 52.5px;
        height: 52.5px;
    }
    
    .answer-btn[data-answer="1"] .answer-icon {
        width: 21px;
        height: 21px;
    }
    
    .answer-btn[data-answer="2"] {
        width: 58.8px;
        height: 58.8px;
    }
    
    .answer-btn[data-answer="2"] .answer-icon {
        width: 25.2px;
        height: 25.2px;
    }
    
    .answer-btn[data-answer="3"] {
        width: 67.2px;
        height: 67.2px;
    }
    
    .answer-btn[data-answer="3"] .answer-icon {
        width: 31.5px;
        height: 31.5px;
    }
    
    .answer-label {
        font-size: 0.715rem;
        bottom: -24px;
        line-height: 1.2;
        height: 1.2em;
        max-width: 80px;
    }
    
    .answer-label-info {
        width: 20.8px;
        height: 20.8px;
        min-width: 20.8px;
        min-height: 20.8px;
        max-width: 20.8px;
        max-height: 20.8px;
        bottom: -46px;
    }
    
    .answer-tooltip {
        max-width: 200px;
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* Progress Bar - скрыт */
.progress-bar {
    display: none;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Нижние кнопки (скрыты, перенесены в шапку) */
.bottom-buttons {
    display: none;
}

.bottom-btn {
    flex: 0 0 auto;
    background: transparent;
    color: #fd5068;
    border: none;
    padding: 12px 20px;
    font-size: 0;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    min-height: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bottom-btn:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.bottom-btn:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.bottom-btn-icon {
    width: 24px;
    height: 24px;
    color: #fd5068;
    transition: all 0.2s;
}

@media (max-width: 480px) {
    .bottom-buttons {
        position: fixed; /* Фиксированное позиционирование на мобилке */
        bottom: calc(8px + 11px + 8px + 20px); /* 20px от начала футера: padding-top + высота текста + padding-bottom + отступ */
        left: 50%;
        transform: translateX(-50%);
        margin-top: 0; /* Убираем margin-top на мобилке */
        margin-bottom: 0; /* Убираем margin-bottom на мобилке */
        padding: 6px;
        border-radius: 14px;
        z-index: 100; /* Чтобы кнопки были поверх контента */
    }
    
    .bottom-btn {
        padding: 10px 16px;
    }
    
    .bottom-btn-icon {
        width: 22px;
        height: 22px;
    }
    
    .bottom-btn:first-child {
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    
    .bottom-btn:last-child {
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
    }
}

.bottom-btn:hover {
    background: rgba(253, 80, 104, 0.1);
}

.bottom-btn:hover .bottom-btn-icon {
    transform: scale(1.1);
    color: #ff8a56;
}

.bottom-btn:active {
    transform: scale(0.95);
}

.bottom-btn:active .bottom-btn-icon {
    transform: scale(1);
}

/* Ярлыки для нижних кнопок (для будущего использования) */
.bottom-btn .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #fd5068;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Profile Screen */
#profile-content {
    text-align: left;
    margin: 30px 0;
}

.profile-section {
    background: #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.profile-section h2 {
    font-size: 18px;
    color: #fd5068;
    margin-bottom: 15px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.profile-item:last-child {
    border-bottom: none;
}

/* Анимация появления карточки */
@keyframes cardEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.question-card.new {
    animation: cardEnter 0.3s ease-out;
}

/* Tutorial Screen - Экран инструкции перед опросом */
.tutorial-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tutorial-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.tutorial-title {
    font-size: 28px;
    color: #fd5068;
    margin-bottom: 20px;
    font-weight: 600;
}

.tutorial-description {
    font-size: 18px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 40px;
}

.tutorial-example {
    position: relative;
    margin: 40px 0;
    min-height: 300px;
}

.tutorial-card-preview {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-radius: 20px;
    padding: 40px 30px;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.tutorial-question-text {
    font-size: 22px;
    line-height: 1.5;
    text-align: center;
    color: #333;
    font-weight: 500;
}

.tutorial-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.tutorial-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid;
    background: white;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tutorial-button svg {
    width: 28px;
    height: 28px;
    stroke-width: 2;
}

.tutorial-button span {
    position: absolute;
    bottom: -18px;
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

.tutorial-button-0 {
    border-color: #fd5068;
    color: #fd5068;
}

.tutorial-button-1 {
    border-color: #999;
    color: #999;
}

.tutorial-button-2 {
    border-color: #00e5b0;
    color: #00e5b0;
}

.tutorial-button-3 {
    border-color: #ff8a56;
    color: #ff8a56;
}

.tutorial-label-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #999;
}

.tutorial-ok-btn {
    margin-top: 30px;
    min-width: 150px;
}

@media (max-width: 480px) {
    .tutorial-card {
        padding: 30px 20px;
    }
    
    .tutorial-title {
        font-size: 24px;
    }
    
    .tutorial-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .tutorial-card-preview {
        min-height: 200px;
        padding: 30px 20px;
    }
    
    .tutorial-question-text {
        font-size: 18px;
    }
    
    .tutorial-label {
        font-size: 14px;
    }
    
    .tutorial-label span:first-child {
        font-size: 28px;
    }
}

/* Language Screen - Экран выбора языка */
.language-container {
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.language-card {
    background: white;
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.language-title {
    font-size: 24px;
    color: #fd5068;
    margin-bottom: 40px;
    font-weight: 600;
}

.language-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.language-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px 30px;
    background: linear-gradient(135deg, #fd5068 0%, #ff8a56 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
}

.language-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(253, 80, 104, 0.4);
}

.language-option:active {
    transform: translateY(0);
}

.language-flag {
    font-size: 32px;
}

.language-name {
    font-size: 20px;
}

@media (max-width: 480px) {
    .language-card {
        padding: 40px 30px;
    }
    
    .language-title {
        font-size: 20px;
        margin-bottom: 30px;
    }
    
    .language-option {
        padding: 18px 25px;
        font-size: 18px;
    }
    
    .language-flag {
        font-size: 28px;
    }
    
    .language-name {
        font-size: 18px;
    }
}

/* Логотип в хедере */
.header-logo {
    display: flex;
    align-items: center;
    height: 44px;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Кнопка языка в хедере */
.header-language-btn {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.header-language-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: white;
}

.header-language-btn:active {
    transform: scale(0.95);
}

/* Кнопки в хедере */
.header-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    padding: 0;
}

/* Флажок выбранного языка в хедере */
.header-language-flag {
    font-size: 24px;
    display: block;
    line-height: 1;
}

.header-icon-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: white;
}

.header-icon-btn:active {
    transform: scale(0.95);
}

/* Кнопки действий в хедере (Профиль и Партнеры) */
.header-action-btn {
    width: 44px;
    height: 44px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 0;
}

.header-action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background: white;
}

.header-action-btn:active {
    transform: scale(0.95);
}

.header-action-icon {
    width: 20px;
    height: 20px;
    color: #fd5068;
    transition: all 0.2s;
}

.header-action-btn:hover .header-action-icon {
    transform: scale(1.1);
    color: #ff8a56;
}

.icon-flag, .icon-help {
    display: block;
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 480px) {
    .header-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .icon-flag, .icon-help {
        font-size: 20px;
    }
    
    .header-action-btn {
        width: 40px;
        height: 40px;
    }
    
    .header-action-icon {
        width: 18px;
        height: 18px;
    }
}

/* Modal - Модальное окно справки */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background: white;
    border-radius: 25px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: modalEnter 0.3s ease-out;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 25px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-size: 24px;
    color: #fd5068;
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #fd5068;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

.modal-body p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .modal-header {
        padding: 20px 25px;
    }
    
    .modal-title {
        font-size: 20px;
    }
    
    .modal-body {
        padding: 25px;
    }
    
    .modal-body p {
        font-size: 15px;
    }
}

/* Стили для модального окна информационной карточки */
.info-card-modal {
    max-width: 500px;
    max-height: 85vh;
}

.info-card-content {
    padding: 0;
    line-height: 1.6;
    color: #333;
}

.info-card-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: #fd5068;
    margin: 0 0 15px 0;
    padding: 0;
}

.info-card-text {
    font-size: 16px;
    color: #666;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.info-card-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    margin-top: 0;
}

.info-card-reactions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.info-card-reaction-btn {
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
}

.info-card-reaction-btn:hover {
    background: #f5f5f5;
    border-color: #b0b0b0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card-reaction-btn:active {
    transform: translateY(0);
}

.info-card-reaction-btn.active {
    background: #4a90e2;
    color: white;
    border-color: #4a90e2;
}

.info-card-actions {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.info-card-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    background: #f0f0f0;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.info-card-action-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.info-card-action-btn:active {
    transform: translateY(0);
}

#info-card-hide-btn {
    background: #ffebee;
    color: #c62828;
}

#info-card-hide-btn:hover {
    background: #ffcdd2;
}

@media (max-width: 480px) {
    .info-card-modal {
        max-width: 95%;
        max-height: 90vh;
    }
    
    .info-card-footer {
        padding: 15px 20px;
    }
    
    .info-card-reaction-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .info-card-action-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .info-card-content h3 {
        font-size: 18px;
    }
    
    .info-card-text {
        font-size: 15px;
    }
}

/* Футер с почтой */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 50;
    box-sizing: border-box;
}

.footer-email {
    color: #666;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-email:hover {
    color: #666;
    text-decoration: underline;
}

.footer-email:active {
    color: #999;
}

@media (max-width: 480px) {
    .app-footer {
        padding: 8px 15px;
    }
    
    .footer-email {
        font-size: 11px;
    }
}

/* Элемент прогресса раунда */
.round-progress-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.round-icon-wrapper {
    position: relative;
    width: 106px;
    height: 106px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.round-progress-svg {
    width: 100%;
    height: 100%;
    color: white;
}

.round-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.round-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    font-family: 'Nunito', sans-serif;
}

.round-number {
    font-size: 35px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin: -2px 0;
    font-family: 'Nunito', sans-serif;
}

.round-percent {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0;
    font-family: 'Nunito', sans-serif;
}

.round-help-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
    padding: 0;
    outline: none;
}

.round-help-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255,255,255,0.4);
}

.round-help-btn:active {
    transform: scale(1.05);
}

.round-help-btn svg {
    width: 16px;
    height: 16px;
    color: #fff;
    opacity: 0.9;
}

#round-progress-circle {
    transition: stroke-dashoffset 0.5s ease, stroke 0.3s ease;
}

@media (max-width: 480px) {
    .round-progress-container {
        padding: 0;
    }
    
    .round-icon-wrapper {
        width: 92px;
        height: 92px;
    }
    
    .round-label {
        font-size: 9px;
    }
    
    .round-number {
        font-size: 30px;
    }
    
    .round-percent {
        font-size: 11px;
    }
    
    .round-help-btn {
        width: 28px;
        height: 28px;
        bottom: 2px;
        right: 2px;
    }
    
    .round-help-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Название раунда под элементом прогресса - скрыто в новом дизайне */
.round-name-display {
    display: none;
    margin-top: 8px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.7);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.2;
    padding: 0;
    max-width: 120px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 480px) {
    .round-name-display {
        font-size: 9px;
        margin-top: 6px;
        max-width: 100px;
    }
}

/* ============================================
   Попап цепочки профиля (Profile Chain)
   ============================================ */

/* Overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-overlay.hidden {
    display: none !important;
}

/* Popup Container */
.popup {
    background: linear-gradient(165deg, #1F2B4D 0%, #16213E 100%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 40px rgba(255, 107, 107, 0.15);
    width: 100%;
    max-width: 380px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup-overlay.active .popup {
    transform: scale(1) translateY(0);
}

.popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B6B, transparent);
    border-radius: 50px;
}

/* Header */
.popup-header {
    padding: 24px 24px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.popup-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 107, 107, 0.12);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #FF8A8A;
}

.popup-category-icon {
    width: 14px;
    height: 14px;
    opacity: 0.8;
}

.popup-close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.popup-close:active {
    transform: scale(0.95);
}

.popup-close svg {
    width: 18px;
    height: 18px;
}

.popup-close.hidden {
    display: none;
}

/* Progress */
.popup-progress {
    padding: 0 24px;
    margin-bottom: 8px;
}

.popup-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    overflow: hidden;
}

.popup-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B6B 0%, #4ECDC4 100%);
    border-radius: 50px;
    transition: width 0.3s ease;
}

.popup-progress-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
}

/* Body */
.popup-body {
    padding: 0 24px 24px;
    flex: 1;
    overflow-y: auto;
}

.popup-title {
    font-family: 'Dela Gothic One', cursive, system-ui, -apple-system, sans-serif;
    font-size: 20px;
    line-height: 1.3;
    color: #FFFFFF;
    margin-bottom: 16px;
}

.popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

/* Options */
.popup-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-option {
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 16px;
}

.popup-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #FF6B6B;
    transform: translateX(4px);
}

.popup-option:active {
    transform: translateX(4px) scale(0.99);
}

.popup-option-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 107, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

/* Answer value styling */
.popup-option[data-value="0"] .popup-option-icon { background: rgba(150, 150, 150, 0.15); }
.popup-option[data-value="1"] .popup-option-icon { background: rgba(100, 150, 200, 0.15); }
.popup-option[data-value="2"] .popup-option-icon { background: rgba(78, 205, 196, 0.15); }
.popup-option[data-value="3"] .popup-option-icon { background: rgba(255, 107, 107, 0.2); }

.popup-option[data-value="0"]:hover { border-color: #969696; }
.popup-option[data-value="1"]:hover { border-color: #6496c8; }
.popup-option[data-value="2"]:hover { border-color: #4ECDC4; }
.popup-option[data-value="3"]:hover { border-color: #FF6B6B; }

/* Animations for popup content */
@keyframes popupFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.popup-overlay.active .popup-body > * {
    animation: popupFadeInUp 0.4s ease backwards;
}

.popup-overlay.active .popup-body > *:nth-child(1) { animation-delay: 0.1s; }
.popup-overlay.active .popup-body > *:nth-child(2) { animation-delay: 0.15s; }
.popup-overlay.active .popup-body > *:nth-child(3) { animation-delay: 0.2s; }

@media (max-width: 400px) {
    .popup {
        max-width: 100%;
        border-radius: 16px;
    }
    .popup-title {
        font-size: 18px;
    }
}

/* Toast уведомления */
#toast-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast-notification {
    background: linear-gradient(135deg, #16213E 0%, #1F2B4D 100%);
    color: #FFFFFF;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease, toastFadeOut 0.3s ease 3.7s forwards;
    max-width: 90vw;
    text-align: center;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ============================================
   Подшапочное пространство (Swipe Block)
   ============================================ */

/* Контейнер свайп-блока */
.swipe-block {
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.20) 100%);
    margin-top: 74px; /* Высота хедера */
    font-family: 'Nunito', sans-serif;
}

/* Нижняя граница - красивый градиентный разделитель */
.swipe-block::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255,255,255,0.5) 15%, 
        rgba(255,255,255,0.5) 85%, 
        transparent 100%
    );
}

@media (max-width: 480px) {
    .swipe-block {
        margin-top: 60px;
    }
    
    .swipe-block::after {
        left: 15px;
        right: 15px;
    }
}

/* ============================================
   Tab Header / Switcher
   ============================================ */

.tab-header {
    display: flex;
    justify-content: center;
    padding: 12px 20px 0; /* Уменьшен padding-top с 14px до 12px (на 15%) */
    position: relative;
    z-index: 10;
}

.tab-switcher {
    display: flex;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 3px;
    gap: 2px;
}

.tab-btn {
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: none;
    border-radius: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1px;
    font-family: inherit;
}

.tab-btn.active {
    color: #FF6B6B;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tab-btn:not(.active):hover {
    color: rgba(255, 255, 255, 0.9);
}

/* Иконка сердечка для таба "Мы" */
.tab-icon-couple {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.tab-icon-couple svg {
    width: 14px;
    height: 14px;
}

.tab-btn.active .tab-icon-couple svg {
    fill: #FF6B6B;
}

.tab-btn:not(.active) .tab-icon-couple svg {
    fill: rgba(255,255,255,0.6);
}

/* ============================================
   Swipe Area
   ============================================ */

.swipe-area {
    position: relative;
    height: 134px; /* Уменьшено с 149px до 134px (еще на 10%) */
    overflow: hidden;
}

/* Контейнер слайдов */
.slides-container {
    display: flex;
    width: 200%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.slides-container.slide-right {
    transform: translateX(-50%);
}

/* Отдельный слайд */
.slide {
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7px 20px 10px; /* Уменьшен padding-top с 8px до 7px (на 15%), padding-bottom с 12px до 10px (на 15%) */
}

/* Фон слайдов */
.slide--personal {
    background: transparent;
}

.slide--couple {
    background: transparent;
}

@media (max-width: 480px) {
    .swipe-area {
        height: 122px; /* Уменьшено с 136px до 122px (еще на 10%) */
    }
    
    .slide {
        padding: 5px 15px 9px; /* Уменьшен padding-top с 6px до 5px (на 15%), padding-bottom с 10px до 9px (на 15%) */
    }
}

/* ============================================
   Circles Row
   ============================================ */

.circles-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
}

@media (max-width: 480px) {
    .circles-row {
        gap: 12px;
        max-width: 320px;
    }
}

/* ============================================
   Circle Item
   ============================================ */

.circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 80px;
}

.circle-item--main {
    max-width: 120px;
    flex: 1.4;
}

@media (max-width: 480px) {
    .circle-item {
        max-width: 70px;
        gap: 6px;
    }
    
    .circle-item--main {
        max-width: 105px;
    }
}

/* ============================================
   Circle Base
   ============================================ */

.circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(255, 255, 255, 0.03);
}

.circle:hover {
    transform: scale(1.05);
}

.circle:active {
    transform: scale(0.97);
}

/* Маленькие кружки (Profile & Scenes) - увеличены на 15% */
.circle--small {
    width: 78px;
    height: 78px;
}

@media (max-width: 480px) {
    .circle--small {
        width: 67px;
        height: 67px;
    }
}

/* Circle label - увеличено на 15% */
.circle-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
    font-family: 'Nunito', sans-serif;
}

.circle-label--multiline {
    line-height: 1.3;
}

@media (max-width: 480px) {
    .circle-label {
        font-size: 10px;
    }
}

/* ============================================
   Progress Ring (SVG) для боковых кружков
   ============================================ */

.progress-ring {
    position: absolute;
    inset: 0;
    transform: rotate(-90deg);
}

.progress-ring__bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 4;
}

.progress-ring__fill {
    fill: none;
    stroke: #fff;
    stroke-linecap: round;
    stroke-width: 4;
    transition: stroke-dashoffset 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Circle Content
   ============================================ */

.circle-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* Profile circle - увеличено на 15% */
.circle--profile .circle-icon {
    width: 25px;
    height: 25px;
    opacity: 0.85;
    margin-bottom: 2px;
}

.circle--profile .circle-percent {
    font-size: 14px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 480px) {
    .circle--profile .circle-icon {
        width: 21px;
        height: 21px;
    }
    
    .circle--profile .circle-percent {
        font-size: 13px;
    }
}

/* ============================================
   Scenes Circle
   ============================================ */

.circle--scenes {
    position: relative;
}

/* Glow effect when has new scenes */
.circle--scenes.has-new::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78, 205, 196, 0.4) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* Inner content - увеличено на 15% */
.circle--scenes .scenes-count {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.circle--scenes .scenes-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    opacity: 0.7;
}

/* Empty state */
.circle--scenes.empty .scenes-count {
    font-size: 23px;
    opacity: 0.5;
}

.circle--scenes.empty .scenes-icon {
    opacity: 0.4;
}

/* Progress ring for scenes */
.circle--scenes .progress-ring__fill {
    stroke: url(#scenesGradient);
}

.circle--scenes .progress-ring__bg {
    stroke: rgba(78, 205, 196, 0.2);
}

@media (max-width: 480px) {
    .circle--scenes .scenes-count {
        font-size: 23px;
    }
    
    .circle--scenes .scenes-icon {
        width: 14px;
        height: 14px;
    }
}

/* ============================================
   Compatibility Circle (режим Мы)
   ============================================ */

.circle--compatibility .progress-ring__fill {
    stroke: url(#progressGradient1);
}

/* Partner Avatars - увеличено на 15% */
.partner-avatars {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2px;
}

.partner-avatar {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-avatar:nth-child(2) {
    margin-left: -7px;
}

.partner-avatar svg {
    width: 12px;
    height: 12px;
    color: #fff;
}

.circle--compatibility .circle-percent {
    font-size: 14px;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

@media (max-width: 480px) {
    .partner-avatar {
        width: 18px;
        height: 18px;
    }
    
    .partner-avatar svg {
        width: 10px;
        height: 10px;
    }
    
    .circle--compatibility .circle-percent {
        font-size: 13px;
    }
}

/* ============================================
   New Scenes Badge
   ============================================ */

.badge-new {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(145deg, #4ECDC4 0%, #2ECC71 100%);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    color: #fff;
    box-shadow: 
        0 2px 8px rgba(78, 205, 196, 0.5),
        0 0 0 2px rgba(255,255,255,0.3);
    z-index: 10;
    animation: badgeBounce 2s ease-in-out infinite;
}

.badge-new.hidden {
    display: none;
}

@keyframes badgeBounce {
    0%, 100% { transform: scale(1) translateY(0); }
    10% { transform: scale(1.2) translateY(-2px); }
    20% { transform: scale(1) translateY(0); }
}

/* Badge states based on count */
.badge-new.hot {
    background: linear-gradient(145deg, #FF6B6B 0%, #FF8E53 100%);
    box-shadow: 
        0 2px 8px rgba(255, 107, 107, 0.5),
        0 0 0 2px rgba(255,255,255,0.3);
    animation: badgeHot 1.5s ease-in-out infinite;
}

@keyframes badgeHot {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.1) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
}

/* Sparkles around badge when hot */
.badge-new.hot::before,
.badge-new.hot::after {
    content: '✦';
    position: absolute;
    font-size: 8px;
    color: #FFE66D;
    animation: sparkleFloat 1s ease-in-out infinite;
}

.badge-new.hot::before {
    top: -8px;
    right: -4px;
    animation-delay: 0s;
}

.badge-new.hot::after {
    bottom: -6px;
    left: -6px;
    animation-delay: 0.5s;
}

@keyframes sparkleFloat {
    0%, 100% { opacity: 0; transform: scale(0.5) translateY(0); }
    50% { opacity: 1; transform: scale(1) translateY(-3px); }
}

@media (max-width: 480px) {
    .badge-new {
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        padding: 0 5px;
        top: -3px;
        right: -3px;
    }
}

/* Swipe Hint Arrow - удалён, переключение только через табы */

/* ============================================
   Touch Feedback для кружков
   ============================================ */

.circle::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.circle:focus-visible::after,
.circle.tapped::after {
    border-color: rgba(255,255,255,0.4);
}

/* ============================================
   Попап "Мои сцены" (popup-my-scenes)
   ============================================ */

.scenes-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.scenes-popup-overlay.hidden {
    display: none;
}

.scenes-popup {
    background: linear-gradient(180deg, #1a1a2e 0%, #16162a 100%);
    border-radius: 24px 24px 0 0;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5);
}

.scenes-popup-header {
    padding: 16px 20px 12px;
    position: relative;
}

.scenes-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 16px;
}

.scenes-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scenes-popup-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.scenes-popup-title svg {
    width: 24px;
    height: 24px;
    color: #e74c7e;
}

.scenes-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.scenes-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.scenes-close-btn svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

/* Карточка новых сцен */
.new-scenes-card {
    margin: 0 16px 16px;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.new-scenes-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.4);
}

.new-scenes-card.hidden {
    display: none;
}

.new-card-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.new-badge-circle {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.new-badge-circle.hot {
    animation: pulse 1.5s ease-in-out infinite;
}

.new-count {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.new-card-text {
    flex: 1;
}

.new-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.new-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

.new-card-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-card-arrow svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.9);
}

/* Секция избранного */
.scenes-favorites-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0 16px;
}

.scenes-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scenes-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.scenes-total-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Табы */
.scenes-tabs-container {
    margin-bottom: 12px;
}

.scenes-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scenes-tabs::-webkit-scrollbar {
    display: none;
}

.scenes-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.scenes-tab:hover {
    background: rgba(255, 255, 255, 0.1);
}

.scenes-tab.active {
    background: rgba(231, 76, 126, 0.2);
    border-color: #e74c7e;
    color: #fff;
}

.tab-icon {
    font-size: 14px;
}

.tab-count {
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 11px;
}

.scenes-tab.active .tab-count {
    background: rgba(231, 76, 126, 0.4);
}

/* Список сцен */
.scenes-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 16px;
}

.scene-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.scene-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.scene-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.scene-title {
    font-size: 14px;
    font-weight: 600;
    color: #4ECDC4;
}

.scene-preview {
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.scene-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scene-meta {
    display: flex;
    gap: 12px;
}

.scene-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.scene-meta-item svg {
    width: 12px;
    height: 12px;
}

/* Пустое состояние */
.scenes-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}

.scenes-empty-icon {
    width: 64px;
    height: 64px;
    background: rgba(231, 76, 126, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.scenes-empty-icon svg {
    width: 32px;
    height: 32px;
    color: #e74c7e;
    opacity: 0.6;
}

.scenes-empty-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 6px;
}

.scenes-empty-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.scenes-safe-area {
    height: env(safe-area-inset-bottom, 0);
}

/* ============================================
   Попап "Оценка сцены" (popup-scene)
   ============================================ */

.rating-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.rating-popup-overlay.hidden {
    display: none;
}

.rating-popup {
    background: linear-gradient(180deg, #1e1e3f 0%, #1a1a2e 100%);
    border-radius: 24px;
    width: 100%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.rating-popup-header {
    padding: 24px 20px 16px;
    position: relative;
    text-align: center;
}

.rating-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.rating-popup-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rating-popup-close svg {
    width: 18px;
    height: 18px;
    color: #fff;
}

.rating-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
    border-radius: 20px;
    margin-bottom: 14px;
}

.rating-popup-badge svg {
    width: 16px;
    height: 16px;
    color: #fff;
}

.rating-popup-badge span {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.rating-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

/* Контент сцены */
.rating-scene-content {
    padding: 0 20px 20px;
}

.rating-scene-text {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.rating-scene-text p {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.rating-scene-text strong {
    color: #4ECDC4;
    font-weight: 600;
}

/* Шаги */
.rating-step {
    display: none;
}

.rating-step.active {
    display: block;
}

/* Шаг 1: Реакция */
.rating-reaction-section {
    padding: 0 20px 24px;
    text-align: center;
}

.rating-reaction-label {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.rating-reaction-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.reaction-btn {
    flex: 1;
    max-width: 100px;
    padding: 16px 12px;
    border-radius: 16px;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.reaction-btn:hover {
    transform: translateY(-2px);
}

.reaction-btn--skip {
    border-color: rgba(255, 255, 255, 0.1);
}

.reaction-btn--skip:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.reaction-btn--maybe {
    border-color: rgba(255, 165, 0, 0.2);
}

.reaction-btn--maybe:hover {
    background: rgba(255, 165, 0, 0.15);
    border-color: #ffa500;
}

.reaction-btn--love {
    border-color: rgba(78, 205, 196, 0.2);
}

.reaction-btn--love:hover {
    background: rgba(78, 205, 196, 0.15);
    border-color: #4ECDC4;
}

.reaction-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn--skip .reaction-icon svg {
    color: rgba(255, 255, 255, 0.6);
}

.reaction-btn--maybe .reaction-icon svg {
    color: #ffa500;
}

.reaction-btn--love .reaction-icon svg {
    color: #e74c7e;
}

.reaction-text {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
}

/* Шаг 2: Опрос */
.rating-feedback-section {
    padding: 0 20px 24px;
    text-align: center;
}

.rating-feedback-header {
    margin-bottom: 20px;
}

.rating-feedback-emoji {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
}

.rating-feedback-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.rating-feedback-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.rating-feedback-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.feedback-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.feedback-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.feedback-option.selected {
    background: rgba(78, 205, 196, 0.1);
    border-color: #4ECDC4;
}

.feedback-checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.feedback-option.selected .feedback-checkbox {
    background: #4ECDC4;
    border-color: #4ECDC4;
}

.feedback-checkbox svg {
    width: 14px;
    height: 14px;
    color: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.feedback-option.selected .feedback-checkbox svg {
    opacity: 1;
}

.feedback-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
}

.rating-feedback-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 10px;
}

.rating-feedback-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.rating-feedback-skip {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: color 0.2s;
}

.rating-feedback-skip:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Шаг 3: Успех */
.rating-success-section {
    padding: 40px 20px 50px;
    text-align: center;
}

.rating-success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4ECDC4 0%, #2ECC71 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: successPop 0.4s ease-out;
}

.rating-success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

.rating-success-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
}

.rating-success-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

@keyframes successPop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Badge bounce animation */
.badge-new.bounce {
    animation: badgeBounce 0.6s ease-out;
}

@keyframes badgeBounce {
    0%, 100% {
        transform: scale(1);
    }
    30% {
        transform: scale(1.3);
    }
    60% {
        transform: scale(0.9);
    }
}

/* ============================================
   Попап "Просмотр сцены" (scene-view)
   ============================================ */

.scene-view-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9600;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.scene-view-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.scene-view-popup {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: linear-gradient(165deg, #2d2d44 0%, #1a1a2e 100%);
    border-radius: 24px 24px 0 0;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scene-view-overlay.hidden .scene-view-popup {
    transform: translateY(100%);
}

/* Decorative gradient */
.scene-view-popup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, rgba(155, 89, 182, 0.12) 0%, transparent 100%);
    pointer-events: none;
}

/* Header */
.scene-view-header {
    padding: 16px 20px;
    position: relative;
    z-index: 10;
}

.scene-view-drag-handle {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto 14px;
}

.scene-view-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.scene-view-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scene-view-back-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scene-view-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.scene-view-back-btn svg {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.scene-view-header-title {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
}

/* Delete button in header */
.scene-view-delete-btn-header {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.scene-view-delete-btn-header:hover {
    background: rgba(255, 107, 107, 0.25);
    transform: scale(1.05);
}

.scene-view-delete-btn-header svg {
    width: 18px;
    height: 18px;
    color: #FF6B6B;
}

/* Scrollable content */
.scene-view-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.scene-view-content::-webkit-scrollbar {
    width: 4px;
}

.scene-view-content::-webkit-scrollbar-track {
    background: transparent;
}

.scene-view-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

/* Scene title */
.scene-view-title {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 16px;
}

/* Section label */
.scene-view-section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
}

/* Category section */
.scene-view-category-section {
    margin-bottom: 20px;
}

.scene-view-category-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.scene-view-category-option {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scene-view-category-option:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.scene-view-category-option.active {
    color: #fff;
}

.scene-view-category-option.active[data-category="dream"] {
    background: rgba(155, 89, 182, 0.2);
    border-color: rgba(155, 89, 182, 0.4);
}

.scene-view-category-option.active[data-category="planned"] {
    background: rgba(78, 205, 196, 0.2);
    border-color: rgba(78, 205, 196, 0.4);
}

.scene-view-category-option.active[data-category="dirty"] {
    background: rgba(255, 107, 107, 0.2);
    border-color: rgba(255, 107, 107, 0.4);
}

.scene-view-category-icon {
    font-size: 14px;
}

.scene-view-category-check {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

.scene-view-category-option.active .scene-view-category-check {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 255, 255, 0.25);
}

.scene-view-category-check svg {
    width: 10px;
    height: 10px;
    color: #fff;
}

/* Scene text section */
.scene-view-text-section {
    margin-bottom: 24px;
}

.scene-view-text {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Edit request section */
.scene-view-edit-section {
    margin-bottom: 24px;
}

.scene-view-edit-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.scene-view-edit-toggle:hover {
    background: rgba(255, 255, 255, 0.07);
}

.scene-view-edit-toggle.active {
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.2);
}

.scene-view-edit-toggle-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scene-view-edit-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(78, 205, 196, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.scene-view-edit-icon svg {
    width: 20px;
    height: 20px;
    color: #4ECDC4;
}

.scene-view-edit-toggle-text h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 2px;
}

.scene-view-edit-toggle-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.scene-view-edit-toggle-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.scene-view-edit-toggle.active .scene-view-edit-toggle-arrow {
    transform: rotate(180deg);
}

.scene-view-edit-toggle-arrow svg {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.4);
}

/* Edit form */
.scene-view-edit-form {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease;
}

.scene-view-edit-form:not(.hidden) {
    max-height: 200px;
    margin-top: 12px;
}

.scene-view-edit-textarea-wrapper {
    position: relative;
}

.scene-view-edit-textarea {
    width: 100%;
    height: 100px;
    padding: 14px;
    padding-bottom: 32px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: #fff;
    resize: none;
    outline: none;
    transition: all 0.25s ease;
}

.scene-view-edit-textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.scene-view-edit-textarea:focus {
    border-color: rgba(78, 205, 196, 0.4);
    background: rgba(78, 205, 196, 0.05);
}

.scene-view-char-counter {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    transition: color 0.2s ease;
}

.scene-view-char-counter.warning {
    color: #FFE66D;
}

.scene-view-char-counter.limit {
    color: #FF6B6B;
}

.scene-view-edit-submit {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #4ECDC4 0%, #44B8AC 100%);
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.5;
    pointer-events: none;
}

.scene-view-edit-submit.active {
    opacity: 1;
    pointer-events: auto;
}

.scene-view-edit-submit.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

/* Meta section */
.scene-view-meta-section {
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    margin-bottom: 20px;
}

.scene-view-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.scene-view-meta-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.scene-view-meta-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    gap: 8px;
}

.scene-view-meta-label svg {
    width: 14px;
    height: 14px;
}

.scene-view-meta-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.scene-view-safe-area {
    height: env(safe-area-inset-bottom, 20px);
    min-height: 20px;
}

/* Delete confirmation overlay */
.scene-view-delete-confirm {
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 46, 0.98);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    z-index: 100;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

.scene-view-delete-confirm.hidden {
    opacity: 0;
    visibility: hidden;
}

.scene-view-delete-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.scene-view-delete-icon svg {
    width: 32px;
    height: 32px;
    color: #FF6B6B;
}

.scene-view-delete-confirm h3 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 10px;
}

.scene-view-delete-confirm p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 28px;
    line-height: 1.5;
}

.scene-view-delete-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 280px;
}

.scene-view-delete-btn {
    flex: 1;
    padding: 14px;
    border-radius: 14px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.scene-view-delete-btn--cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.scene-view-delete-btn--cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.scene-view-delete-btn--delete {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5252 100%);
    color: #fff;
}

.scene-view-delete-btn--delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Toast notification */
.scene-view-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 24px;
    background: rgba(46, 204, 113, 0.95);
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9700;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.scene-view-toast:not(.hidden) {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.scene-view-toast svg {
    width: 20px;
    height: 20px;
    color: #fff;
    flex-shrink: 0;
}

.scene-view-toast span {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}
