    /* --- Стили для вкладок профиля --- */
    .profile-choice-buttons-div {
        display: flex;
        justify-content: center;
        margin: 1.2rem 0 0.5rem 0;
        gap: 1.2rem;
    }

    .profile-choice-buttons {
        background: rgba(255, 255, 255, 0.07);
        border-radius: 12px;
        padding: 0.7rem 1.5rem;
        cursor: pointer;
        transition: background 0.2s;
        user-select: none;
    }

        .profile-choice-buttons.active {
            background: var(--background-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        }

    /* --- Превью карточки пользователя (как в поиске/лайках) --- */
    .profile-preview-card {
        background: rgba(255, 255, 255, 0.07);
        border-radius: 18px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
        padding: 1.2rem 1.2rem 1.2rem 1.2rem;
        margin: 0.5rem 0 1.2rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        min-width: 0;
    }

        .profile-preview-card .banner-img {
            width: 5.5rem;
            height: 5.5rem;
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 0.7rem;
            border: 2px solid rgba(255, 255, 255, 0.15);
        }

        .profile-preview-card .profile-nick {
            font-size: 1.2rem;
            font-weight: 600;
            color: #fff;
            margin-bottom: 0.3rem;
        }

        .profile-preview-card .profile-stats {
            display: flex;
            gap: 1.2rem;
            margin-bottom: 0.5rem;
        }

        .profile-preview-card .profile-stat {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            color: #fff;
            font-size: 1rem;
            opacity: 0.85;
        }

        .profile-preview-card .profile-about {
            color: #fff;
            opacity: 0.8;
            font-size: 0.98rem;
            margin-bottom: 0.5rem;
            text-align: center;
        }

        .profile-preview-card .games-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            justify-content: center;
        }

        .profile-preview-card .selectedGames {
            background: rgba(255, 255, 255, 0.13);
            border-radius: 7px;
            padding: 0.2rem 0.7rem;
            color: #fff;
            font-size: 0.93rem;
            margin-bottom: 0.2rem;
        }

    /* --- Стили для выбора игр (как при регистрации) --- */
    .games-content .search-container {
/*        padding: 1rem 1rem 0.5rem 1rem;*/
        background: var(--background-color);
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .games-content .search-input {
        width: 100%;
        padding: 0.7rem 1rem;
        border-radius: 10px;
        border: none;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 1.05rem;
        margin-bottom: 0.5rem;
    }

    .games-content .games-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.1rem;
        padding: 1rem;
    }

    .games-content .game-card {
        aspect-ratio: 1;
/*        background: rgba(255, 255, 255, 0.1);*/
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        font-size: 1.05rem;
        color: #fff;
        transition: box-shadow 0.2s, background 0.2s, transform 0.18s;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        opacity: 0;
        transform: translateY(30px);
/*        animation: popInGameCard 0.45s cubic-bezier(0.33, 1, 0.68, 1) forwards;*/
    }

        .games-content .game-card.selected {
/*            background: rgba(255, 255, 255, 0.22);*/
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13);
        }

        .games-content .game-card .checkmark {
            position: absolute;
            top: 0.6rem;
            right: 0.6rem;
            width: 1.5rem;
            height: 1.5rem;
            border-radius: 50%;
            background: var(--ticket-background);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 1.1rem;
        }

        .games-content .game-card.selected .checkmark {
            opacity: 1;
        }

    @keyframes popInGameCard {
        from {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
        }

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

    @media (max-width: 700px) {
        .games-content .games-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 480px) {
        .games-content .games-grid {
            grid-template-columns: 1fr;
        }
    }

    .profile-content,
    .games-content {
        pointer-events: none;
    }

        .profile-content.active,
        .games-content.active {
            pointer-events: auto;
        }

    /* Основные стили для контейнеров */
    .preview-content, .profile-content, .games-content {
        position: absolute;
        display: flex;
        gap: 0.5rem;
        flex-direction: column;
        justify-content: start;
        align-items: center;
        top: 0;
        left: 0;
        width: 100%;
        height: 95%;
        background: var(--background-color);
        transition: transform 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: 4rem;
    }

    /* Начальные позиции для каждого экрана */
    .preview-content {
        transform: translateX(0);
    }

    .profile-content {
        transform: translateX(100%);
    }

    .games-content {
        transform: translateX(100%);
    }

    /* Анимации при переключении влево */
    .preview-content.sliding-left {
        transform: translateX(-100%);
    }

    .profile-content.sliding-left {
        transform: translateX(-100%);
    }

    .games-content.sliding-left {
        transform: translateX(0);
    }

    /* Анимации при переключении вправо */
    .preview-content.sliding-right {
        transform: translateX(-100%);
    }

    .profile-content.sliding-right {
        transform: translateX(100%);
    }

    .games-content.sliding-right {
        transform: translateX(100%);
    }

    /* Активное состояние */
    .preview-content.active,
    .profile-content.active,
    .games-content.active {
        transform: translateX(0);
    }

    /* Стили для индикатора */
    .screen-indicator {
        color: var(--muted-color);
        font-weight: 600;
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
        background: rgba(23, 23, 23);
        padding: 0.5rem;
        border-radius: 1rem;
        z-index: 1000;
        justify-items: center;
        justify-content: center;
        align-items: center;
    }

.indicator-item {
    text-align: center;
    width: 100%;
    height: fit-content;
    border-radius: 0.35rem;
    padding: 0 0.5rem;
    background: var(--block-color);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

    .indicator-item.active {
        color: var(--primary-color);
        background: rgba(255, 255, 255, 0.3);
    }

    .indicator-slider {
        position: absolute;
        width: 2.5rem;
        height: 0.3rem;
        background: var(--accent-color);
        border-radius: 0.15rem;
        transition: transform 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
        pointer-events: none;
    }

    .profile-header {
        top: 1rem;
        position: absolute;
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
    }

    .back-button {
        position: absolute;
        top: 3.4rem;
        left: 1rem;
    }

    .profile-settings {
        width: 85%;
        gap: 1rem;
        max-width: 20rem;
        display: flex;
        flex-direction: column;
        align-content: center;
        justify-content: center;
        align-items: center;
    }

    .profile-settings label {
        font-weight: 600;
    }

    .profile-settings-input {
        font-weight: 500;
        height: 2.5rem;
        width: 100%;
        margin: 0;
    }

    .input-one-string {
    }

    .input-one-string::placeholder {
        font-size: 1rem;
        color: #888;
    }

    .form-control {
        width: 80%;
        margin: 0 auto;
    }

    .form-control-one {
        box-sizing: border-box;
        border: 0.1rem solid var(--border-color);
        background-color: var(--block-color);
        border-radius: 1.18rem;
        outline: 0;
        height: 2.5rem;
        width: 90%;
        color: #cacaca;
        margin:0;
        font-size: medium;
        text-align: center;
        display: flex;
        flex-direction: row;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        outline: 0.125rem solid #3f698a00;
        transition: all 0.2s ease-in-out;
        flex-shrink: 0;
    }

    input {
/*        margin-left: 3%;*/
        border: 0;
        background-color: #1b1b1d00;
        border-radius: 0.625rem;
        outline: 0;
        height: 75%;
        width: 80%;
        color: #ffffff;
        position: relative;
        font-size: 16px;
        font-weight: 500;
    }

    .form-control-one:has(input:focus) {
        outline-color: var(--accent-input-color);
    }

    .form-control-one.error {
        transition: all 0.2s ease;
        animation: shake 0.4s ease;
        outline-color: rgba(255, 0, 0, 0.5);
    }

    @keyframes shake {
        0%, 100% {
            transform: translateX(0);
        }

        25% {
            transform: translateX(-0.3125rem);
        }

        75% {
            transform: translateX(0.3125rem);
        }
    }

    .form-control-one.shake {
        animation: shake 0.4s ease;
    }

    .icon-input {
        width: auto;
        margin-left: 0.7875rem;
        height: 1.1rem;
        opacity: 0.32;
    }
.form-control-one-input{
    margin-left: 3%;
}
.form-control-one-input::placeholder {
    text-align: left;
    color: #a1a1a6;
}

    /* Радио-кнопки выбора пола */
.square-radio {
    margin-top: 0px;
    position: relative;
    display: inline-block;
    width: 100%;
    height: unset;
    cursor: pointer;
}

    .square-radio input[type="radio"] {
        opacity: 0;
        width: 100%;
        aspect-ratio: 0.83;
        position: absolute;
        height: unset;
        top: 0;
        left: 0;
        cursor: pointer;
    }

    .square-radio span {
        display: flex;
        font-size: 1rem;
        box-sizing: border-box;
        color: #bababa;
        border: 0.1rem solid var(--border-color);
        width: 100%;
        height: 100%;
        background-color: #1b1b1d;
        border-radius: 1.18rem;
        transition: outline-color 0.2s, box-shadow 0.2s;
        box-shadow: 0 0 0 0 #000000;
        align-content: center;
        justify-content: center;
        align-items: center;
        padding-bottom: 3px;
        opacity: 0.9;
    }

    .square-radio input[type="radio"]:checked + #male {
        box-shadow: 0 0 4px 4px #6badfc;
    }

    .square-radio input[type="radio"]:checked + #female {
        box-shadow: 0 0 4px 4px #bb87bd;
    }

    .square-radio input[type="radio"]:checked + #hidden {
        box-shadow: 0 0 4px 4px #9d9d9d;
    }

    #span-text {
        color: #d1d1d6;
    }

    .radio-container {
        color: var(--text-secondary-color);
        display: flex;
        width: 100%;
        height: 100%;
        aspect-ratio: 2.95;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .radio-container .btn-group-toggle {
        width: 90%;
        position: relative;
        grid-template-columns: repeat(3, 1fr);
        display: grid;
        gap: 1rem;
        flex: 1;
        flex-wrap: nowrap;
        justify-items: center;
        justify-content: space-between;
    }

    .hidden-radio {
        display: block;
        margin-top: 10px;
        width: 80%;
        margin: 0 auto;
    }

    #male {
        background-image: url("../../images/gender_banners/male.png");
        background-color: var(--block-color);
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: center;
    }

    #female {
        background-image: url("../../images/gender_banners/female.png");
        background-color: var(--block-color);
        background-size: 45%;
        background-repeat: no-repeat;
        background-position: center;
    }

    #hidden {
        background-image: url("../../images/gender_banners/hidden.png");
        background-color: var(--block-color);
        background-size: 50%;
        background-repeat: no-repeat;
        background-position: center;
    }

    /* Cropper и preview */
    #cropper-div {
        position: relative;
        width: 100%;
        aspect-ratio: 3.4;
    }

    .input-reg-div {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        align-items: center;
    }

    #cropper-text-div {
        position: absolute;
        background-color: #0d0d0d9c;
        font-weight: 700;
        color: white;
        z-index: 1;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
        height: 100%;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        touch-action: none;
        pointer-events: none;
    }

    #cropper-div-image {
        width: 18%;
        height: auto;
        filter: invert(1);
        opacity: 0.4;
    }

textarea#profile-about, textarea#modal-about,
.form-control textarea, div#profile-about-btn {
    overflow: hidden;
    width: 90%;
    aspect-ratio: 2.95;
    min-height: 4rem;
    border-radius: 1.2rem;
    border: 0.1rem solid var(--border-color);
    background: var(--block-color);
    color: #fff;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    display: block;
    outline: 0.125rem solid #3f698a00;
    box-shadow: 0;
    resize: none;
    flex-shrink: 0;
    transition: all 0.2s ease-out;
}
.form-control:focus{
    outline: 0.125rem solid var(--accent-input-color);
}
#profile-about-btn:focus {
    outline: 0.125rem solid var(--accent-input-color);
}
#modal-about:focus {
    outline: 0.125rem solid var(--accent-input-color);
}

    .editable-field {
        position: relative;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        transition: background-color 0.2s;
        padding: 0.5rem;
        border-radius: 0.5rem;
        margin: 0.2rem 0;
    }

    .editable-field:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .edit-icon-wrapper {
        background: var(--border-color);
        border-radius: 0.35rem;
        padding: 0.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    .edit-icon-wrapper:hover {
        background: var(--accent-color);
    }

    .edit-icon {
        margin-left: 0.1rem;
        width: 0.75rem;
        height: auto;
        opacity: 0.4;
        filter: invert(1);
    }

    /* Стили для поля "О себе" */
    #about-section {
        background: rgba(255, 255, 255, 0.03);
        border-radius: 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    #about-section:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    #about-section .ticket-about {
        margin-bottom: 0.5rem;
    }

    #about-section .about-text {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.95rem;
        line-height: 1.4;
        margin: 0;
        padding: 0 0.3rem;
    }

    /* Стили для поля "Игры" */
    #games-section {
        background: rgba(255, 255, 255, 0.03);
        padding: 0.8rem;
        border-radius: 0.8rem;
        cursor: pointer;
        transition: background-color 0.2s;
    }

    #games-section:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    #games-section .ticket-about {
        margin-bottom: 0.5rem;
    }

        #games-section .games-container {
            width: 100%;
            margin: 0;
        }

.edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    height: 100dvh;
    animation: fadeIn 0.2s ease-out;
}

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

.modal-content {
    background: var(--block-color);
    border-radius: 1rem;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
    bottom: 40%;
    position: absolute;
}

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

    .modal-content h3 {
        margin: 0 0 1rem 0;
        color: white;
        font-size: 1.2rem;
    }

    .modal-buttons {
        display: flex;
        gap: 1rem;
        margin-top: 1.5rem;
        justify-content: flex-end;
    }

.modal-cancel, .modal-save {
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

    .modal-cancel {
        background: var(--border-color);
        color: white;
    }

    .modal-cancel:hover {
        background: rgba(255, 255, 255, 0.1);
    }

.modal-save {
    background: #4b80b2;
    color: white;
}

    .modal-save:hover {
        background: #5a90c3;
    }

    .modal-content textarea {
        width: 100%;
        min-height: 100px;
        margin-top: 1rem;
        background: var(--border-color);
        border: none;
        border-radius: 0.5rem;
        padding: 0.75rem;
        color: white;
        resize: vertical;
    }

    .modal-content .radio-container {
        margin-top: 1rem;
    }

    .modal-content .form-control-one {
        margin-top: 1rem;
    }

    .ticket-user-info-profile {
        margin-top: -0.5rem;
        width: fit-content;
        height: 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
        margin-left: 0.2rem;
        margin-bottom: 1rem;
        gap: 0.2rem;
    }

    #username-editable-field {
        display: flex;
        flex-direction: row;
        padding: 0 0.4rem;
        gap: 0;
    }

    /* Стили для уведомлений */
    .notification {
        position: absolute;
        top: 4rem;
        left: 50%;
        transform: translateX(-50%);
        background: var(--block-color);
        color: white;
        padding: 12px 24px;
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        z-index: 2000;
        animation: notificationSlideIn 0.3s ease-out forwards;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .notification.hiding {
        animation: notificationSlideOut 0.3s ease-in forwards;
    }

    @keyframes notificationSlideIn {
        from {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
        to {
            transform: translate(-50%, 0);
            opacity: 1;
        }
    }

    @keyframes notificationSlideOut {
        from {
            transform: translate(-50%, 0);
            opacity: 1;
        }
        to {
            transform: translate(-50%, -100%);
            opacity: 0;
        }
    }

    .banner-skeleton {
        width: 100%;
        aspect-ratio: 1;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.05) 75% );
        background-size: 200% 100%;
        animation: shimmer 1.5s infinite;
        overflow: hidden;
        margin-bottom: 1rem;
        opacity: 1;
        /* border-radius: 2.525rem; */
        border-bottom-right-radius: 0.5rem;
        /* border-bottom-right-radius: 0; */
        border-bottom-left-radius: 0.5rem;
        box-shadow: 0.25rem 0.25rem 0.3125rem #0000001c, inset 0.25rem 0.25rem 0.3125rem #00000033, inset -0.25rem -0.25rem 0.375rem #46464617;
        width: 100%;
        aspect-ratio: 2.95;
        /* mask-image: linear-gradient(to bottom, transparent, white 10%, white 80%, transparent); */
        /* -webkit-mask-image: linear-gradient(to bottom, transparent, white 0%, white 76%, transparent); */
        background-color: #0000001c;
        /* border: 0.0325rem solid var(--border-color); */
        /* padding: 1.1rem; */
        flex-shrink: 0;
    }

    @keyframes shimmer {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }

.profile-content,
.games-content,
.plus-content {
    pointer-events: none;
}

.profile-content.active,
.games-content.active,
.plus-content.active {
    pointer-events: auto;
}

.preview-content, .profile-content, .games-content, .plus-content {
    position: absolute;
    display: flex;
    gap: 0.5rem;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%;
    height: 95%;
    background: var(--background-color);
    transition: transform 320ms cubic-bezier(0.4, 0.0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 4rem;
    color: var(--primary-color);
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--background-color);
    z-index: 1;
    overflow: hidden;
    transform: translateX(100vw);
    transition: transform 320ms 
cubic-bezier(0.4, 0.0, 0.2, 1);
}

.plus-content {
    /* transform: translateX(100%); */
}

.preview-content.sliding-left {
    transform: translateX(-100%);
}

.profile-content.sliding-left {
    transform: translateX(-100%);
}

.games-content.sliding-left {
    transform: translateX(0);
}

.plus-content.sliding-left {
    transform: translateX(0);
}

.preview-content.sliding-right {
    transform: translateX(-100%);
}

.profile-content.sliding-right {
    transform: translateX(100%);
}

.games-content.sliding-right {
    transform: translateX(100%);
}

.plus-content.sliding-right {
    transform: translateX(100%);
}

.preview-content.active,
.profile-content.active,
.games-content.active,
.plus-content.active {
    transform: translateX(0);
}
