.save-btn {
    /* margin-top: 8px; */
    height: 100%;
    padding: 6px 12px;
    margin-left: 0.0365rem;
    background: #1b1b1d;
    outline: 0.0365rem solid #323439;
    color: white;
    border: none;
    border-radius: 0.9375rem;
    cursor: pointer;
}

    .save-btn:hover {
        background: #323439;
    }

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.from-group-text-area {
    height: 8rem;
    position: relative;
}

#aboutTextarea {
    background-color: #1b1b1d;
    border-radius: 0.9375rem;
    border: 0;
    padding: 16px;
    color: #f0f8fc;
    border: 0;
    outline: 0;
    /* box-shadow: inset 4px 4px 5px #0f0f0f26, inset -4px -4px 1px #2525254d; */
    /* border-radius: 14px; */
    background-color: #1b1b1d;
    /* width: 241px; */
    /* height: 157px; */
    resize: none;
    position: absolute;
    height: 100%;
}

#charCount {
    position: absolute;
    bottom: 2.5rem;
    right: 0.5rem;
}

#saveAboutBtn {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2.5rem;
}
/* �������������� ����� ��� ������ */
.save-btn {
    transition: background-color 0.3s ease;
}

    .save-btn:disabled {
        background: #cccccc;
        cursor: not-allowed;
    }

.form-group > input,
.form-group > select,
.form-group > textarea {
    margin-bottom: 5px;
}

.form-input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 100%;
    margin-bottom: 5px;
}

    .form-input::placeholder {
        color: #888;
        font-style: italic;
    }

    .form-input:focus::placeholder {
        color: transparent;
    }

.form-group-input {
    display: flex;
}

.form-group-control-one {
    box-sizing: border-box;
/*    margin-top: 0.725rem;*/
    margin-bottom: 0.775rem;
    border: 0.0325rem solid #323439;
    background-color: #1b1b1d;
    border-radius: 0.9375rem;
    outline: 0;
    height: 2.5rem;
    width: 80%;
    color: #cacaca;
    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;
}

input {
/*    margin-left: 3%;*/
    border: 0;
    background-color: #1b1b1d;
    border-radius: 0.625rem;
    outline: 0;
    height: 75%;
    width: 80%;
    color: #cacaca;
    position: relative;
}

.form-group-control-one:has(input:focus) {
    outline-color: #3d5afe;
}

.form-group-control-one {
    transition: all 0.5s ease-in-out; /* �������� ��� �������� ��������� */
}

    .form-group-control-one.error {
        transition: all 0.3s 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-group-control-one.shake {
    animation: shake 0.4s ease;
}

#error-div {
    display: block;
    margin-left: 12%;
    width: 90%;
    height: 1.875rem;
    padding-bottom: 0%;
}

.error-message {
    color: #d42121;
    font-size: 0.75rem;
    margin-top: 0.3125rem;
    display: none;
    text-align: left;
}

.form-group-label {
    color: #f9f9f9f9;
}

#container-main {
    width: 100%;
    height: -webkit-fill-available;
    /* margin-top: 3rem; */
    overflow: hidden;
    overflow-y: hidden;
    position: relative;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    align-content: center;
    margin-top: var(--tg-safe-area-inset-top, 0px);
}

#container-child {
/*    pointer-events: none;*/
    /* position: absolute; */
    width: 18.75rem;
    /* min-height: 100%; */
    transition: transform 0.3s ease-out;
}

#preview-container-profile {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 13 / 3;
    border: 1px solid rgba(217, 217, 217, 0.11);
    border-radius: 1.1875rem;
    overflow: hidden;
    display: flex;
    margin: 0.625rem 0;
}
#icon-finder {
    position: absolute;
    top: 33%;
    right: 1.25rem;
    width: 1rem;
    height: 1rem;
    opacity: 29%;
}
.form-control-finder {
    position: static;
    /* box-shadow: inset 0.25rem 0.25rem 0.3125rem #00000033, inset -0.25rem -0.25rem 0.375rem #6d6d6d17; */
    outline: 0.125rem solid #52525200;
    background-color: #1b1b1d;
    border: 0.0325rem solid #323439;
    height: 2.5rem;
    width: 100%;
    margin: 0 auto;
    color: white;
    font-size: medium;
    text-align: center;
    transition: outline-color 0.5s ease-in-out;
}

/* ����� ��� */
#games {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

/* ��������� ���� */
#selectedGames {
    margin-top: 5%;
    display: flex;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

.selected-game {
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    position: relative;
    display: flex;
    align-items: center;
}

    .selected-game span {
        margin-left: 10px;
        cursor: pointer;
        color: #dc3545;
    }

#gameSearch-div {
    position: relative;
    display: flex;
    width: 100%;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
}

#gameSearch {
    text-indent: -35px;
    padding: 10px;
    width: 80%;
    margin-bottom: 1px;
    border-radius: 12px;
}

#gameList {
    margin-left: 1.7%;
    width: 96%;
    border-radius: 3px;
    border: 0.0325rem solid #52525252;
    background-color: #1b1b1d;
    margin-bottom: 7px;
    overflow: hidden;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    margin-top: -10px;
    padding-top: 13px;
}

    #gameList div {
        padding: 4px 0px;
        height: 26px;
        font-size: medium;
        color: white;
        background-color: #1b1b1d;
        margin: 2px 0 0 0;
        cursor: pointer;
        border-bottom: 0.0325rem solid #27282c;
    }

        #gameList div.hidden {
            display: none;
        }

        #gameList div:hover {
            background-color: #181818;
        }

#selectedGames div {
    color: #7d7d7d;
    font-size: smaller;
    background-color: #1b1b1d;
    margin: 1px 0;
    cursor: pointer;
    border: 0.0325px solid #3f404269;
    border-radius: 4px;
    width: fit-content;
    padding-left: 6px;
    padding-bottom: 4px;
}

button {
    color: #3c3c3c;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
#footer-settings-div {
     position: absolute; 
    /* top: 2rem; */
    right: -3rem;
    display: flex;
    justify-content: flex-end;
    z-index: 1;
    cursor: pointer;
}
.profile-banner-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    display: flex;
    gap: 8px;
    pointer-events: auto;
}

.profile-avatar-container {
    position: absolute;
    bottom: -32px;
    left: 20px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #0b0b0b;
    padding: 4px;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-edit {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

.profile-avatar-edit img {
    width: 16px;
    height: 16px;
}

.avatar-cropper-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.avatar-cropper-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.avatar-cropper-modal {
    width: min(92vw, 360px);
    background: #111113;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

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

.avatar-cropper-title {
    font-weight: 600;
    color: #f4f4f5;
}

.avatar-cropper-close {
    background: transparent;
    border: none;
    color: #f4f4f5;
    font-size: 1.2rem;
    cursor: pointer;
}

.avatar-cropper-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: #1b1b1d;
    margin-bottom: 12px;
}

#avatar-cropper-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-cropper-pick,
.avatar-cropper-save {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

.avatar-cropper-pick {
    background: #222327;
    color: #f4f4f5;
    margin-bottom: 10px;
}

.avatar-cropper-save {
    background: #ffffff;
    color: #0b0b0b;
}

.profile-edit-avatar-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: #151517;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-edit-avatar-preview {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-edit-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-edit-avatar-btn {
    background: #ffffff;
    color: #0b0b0b;
    border: none;
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Edit banner layout (profile tab) */
.profile-edit-banner {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: visible;
    margin-bottom: 2.75rem;
    background: rgba(0, 0, 0, 0.45);
    border: 0.1rem solid var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.profile-edit-banner-preview {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 28px;
}

.profile-edit-banner-preview #image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-edit-banner-actions {
    position: absolute;
    top: 1.25rem;
    right: 1.37rem;
    display: flex;
    gap: 0.5rem;
    z-index: 6;
}

.profile-edit-banner-btn,
.profile-edit-banner-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 0.1rem solid var(--border-color);
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: 0.2s ease;
    backdrop-filter: blur(6px);
}

.profile-edit-banner-save {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 1rem;
}

.profile-edit-banner-save.is-active {
    background: rgba(255, 255, 255, 0.12);
}

.profile-edit-banner-save[disabled] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.profile-edit-banner-btn:hover,
.profile-edit-banner-save:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.profile-edit-avatar {
    position: absolute;
    left: 1.25rem;
    bottom: -1.6rem;
    z-index: 7;
}

.avatar-cropper-save[disabled] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.profile-edit-banner-save svg {
    width: 18px;
    height: 18px;
    display: block;
}

.plus-content {
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.plus-header {
    text-align: center;
}

.plus-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.plus-subtitle {
    color: var(--text-secondary-color);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.plus-banner {
    position: relative;
    border-radius: 28px;
    overflow: visible;
    background: rgba(0, 0, 0, 0.45);
    border: 0.1rem solid var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.plus-banner-preview {
    position: relative;
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 28px;
}

.plus-banner-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.plus-avatar {
    position: absolute;
    left: 1.25rem;
    bottom: -1.6rem;
    z-index: 7;
}

.plus-banner-actions {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    z-index: 6;
}

.plus-banner-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    border: 0.1rem solid var(--border-color);
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    font-weight: 600;
    font-size: 0.78rem;
    cursor: pointer;
    transition: 0.2s ease;
    backdrop-filter: blur(6px);
}

.plus-banner-actions button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.plus-banner-actions button[disabled] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.plus-banner-actions svg {
    width: 18px;
    height: 18px;
    display: block;
}

.plus-color-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.plus-color-title {
    font-size: 0.95rem;
    font-weight: 600;
}

.plus-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.plus-color-option {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.8rem;
    border: 0.08rem solid rgba(255, 255, 255, 0.2);
    background: #17181aab;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plus-color-option.is-active {
    box-shadow: 0 0 0 0.12rem rgba(255, 255, 255, 0.4);
}

.plus-color-option:hover {
    transform: translateY(-1px);
}

.plus-badge {
    width: 25px;
    height: 25px;
    margin-left: -0.25rem;
    margin-top: 0.3rem;
    display: inline-flex;
    align-self: center;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.ticket-nick-text {
    display: inline-block;
}

.search-container {
    position: relative;
}

.search-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary-color);
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.search-input-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.search-container .search-input {
    padding-left: 2.2rem;
}

#ticket-nick,
.ticket-nick {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.plus-color-picker {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.plus-color-picker input[type="color"] {
    width: 44px;
    height: 44px;
    border: none;
    padding: 0;
    border-radius: 0.7rem;
    background: transparent;
}

.plus-alpha {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.plus-alpha input[type="range"] {
    width: 100%;
}

.plus-alpha-value {
    min-width: 34px;
    text-align: right;
    font-weight: 600;
    color: var(--text-secondary-color);
}

.plus-preview-slot {
    display: flex;
    justify-content: center;
}

.plus-preview-slot .profile-card {
    margin-top: 0;
    transform: none;
}

.plus-gif-label {
    opacity: 0.6;
}

.plus-color-grid {
    grid-template-columns: repeat(6, 1fr);
}

.plus-color-picker-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.8rem;
    border: 0.08rem solid rgba(255, 255, 255, 0.2);
    background: #17181aab;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.plus-color-picker-tile input[type="color"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.plus-color-picker-icon {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.screen-indicator.has-plus {
    grid-template-columns: repeat(4, 1fr);
}

.plus-banner-preview .plus-banner-edit {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.1rem solid var(--border-color);
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(6px);
}

.plus-banner-preview .plus-banner-edit img {
    width: 16px;
    height: 16px;
}

.gif-badge {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    border: 0.1rem solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.banner-gif-badge {
    left: auto;
    right: 0.75rem;
}

.avatar-gif-badge {
    left: 0.75rem;
}

.plus-avatar .gif-badge {
    bottom: -0.4rem;
    left: -0.2rem;
}

.plus-color-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.7rem;
    width: 100%;
        filter: saturate(1.5) brightness(1.6);
}

.plus-color-option,
.plus-color-picker-tile {
    border-radius: 999px;
    border: 0.08rem solid rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 0 0 0.04rem rgba(0, 0, 0, 0.35);
}

.profile-banner-edit {
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0.1rem solid var(--border-color);
    background: rgba(20, 20, 20, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 6;
    backdrop-filter: blur(6px);
}

.profile-banner-edit img {
    width: 16px;
    height: 16px;
}

.profile-avatar-container .gif-badge {
    position: absolute;
    left: -0.2rem;
    top: unset;
    bottom: -0.2rem;
}

.plus-color-option,
.plus-color-picker-tile {
    width: 24px;
    height: 24px;
}

.plus-color-option {
    background-clip: padding-box;
}

.goal-badge {
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.65rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    background: color-mix(in srgb, var(--goal-color) 22%, rgba(20,20,20,0.8));
    color: #fff;
    border: 0.08rem solid color-mix(in srgb, var(--goal-color) 45%, rgba(255,255,255,0.15));
}

.plus-goal-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
}

.plus-goal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.plus-goal-option {
    border-radius: 999px;
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
    background: rgba(20, 20, 20, 0.9);
    border: 0.1rem solid var(--border-color);
    color: #fff;
    cursor: pointer;
}

.plus-goal-option.is-active {
    background: rgba(255,255,255,0.12);
}

#plus-goal-custom {
    grid-column: span 2;
    border-radius: 999px;
    border: 0.1rem solid var(--border-color);
    background: rgba(20,20,20,0.9);
    color: #fff;
    padding: 0.35rem 0.6rem;
    font-size: 0.72rem;
}

.plus-goal-save {
    border-radius: 999px;
    border: 0.1rem solid var(--border-color);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.72rem;
    cursor: pointer;
}

.plus-goal-option {
    border-color: color-mix(in srgb, var(--goal-color) 55%, rgba(255,255,255,0.2));
    background: color-mix(in srgb, var(--goal-color) 18%, rgba(20,20,20,0.9));
}

.plus-goal-option.is-active {
    box-shadow: 0 0 0 0.1rem color-mix(in srgb, var(--goal-color) 65%, rgba(255,255,255,0.3));
    background: color-mix(in srgb, var(--goal-color) 28%, rgba(20,20,20,0.9));
}
