.upload-section-title {
    margin: 21px 0 10px;
    color: #a9a3bd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
}

.upload-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 10px 0 18px;
}

.panel .upload-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 165px;
    margin: 0;
    padding: 16px 12px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 9px;
    border: 1px solid #302844;
    border-radius: 13px;
    background: linear-gradient(145deg, #1c1929, #14121e);
    text-align: center;
    cursor: pointer;
    transition: all .25s ease;
}


.panel .upload-card:hover {
    border-color: #9870ed;
    background: linear-gradient(145deg, #282039, #191525);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(142, 100, 230, .12);
}

.upload-card-title {
    color: #aaa0c2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}


.upload-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 13px;
    background: rgba(156, 112, 242, .13);
    color: #b99aff;
    font-size: 23px;
}

.upload-card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 19px;
    border: 1px solid #7553b7;
    border-radius: 8px;
    background: linear-gradient(135deg, #7650bd, #594091);
    color: white;
    font-size: 11px;
    font-weight: 700;
    transition: all .2s ease;
}

.upload-card:hover .upload-card-action {
    background: linear-gradient(135deg, #9269df, #7452b7);
    box-shadow: 0 3px 15px rgba(142, 100, 230, .25);
}

.panel .upload-card input[type="file"] {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.panel .upload-card:focus-within {
    outline: 2px solid #9870ed;
    outline-offset: 3px;
}

.upload-help {
    color: #777187;
    font-size: 9px;
}

.profile-preview-panel {
    margin-top: 15px;
    overflow: hidden;
}

.creator-preview-cover {
    position: relative;
    display: grid;
    height: 170px;
    margin: 14px -18px 0;
    overflow: hidden;
    place-items: center;
    border: 1px solid #3d3158;
    background: radial-gradient(ellipse at 75% 30%, #49316c, #1a1728 70%);
    color: #c3b0e7;
    font-size: 12px;
}

.creator-preview-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-preview-content {
    position: relative;
    padding: 0 2px 8px;
}

.creator-preview-avatar {
    display: grid;
    width: 82px;
    height: 82px;
    margin-top: -42px;
    overflow: hidden;
    place-items: center;
    border: 4px solid #12121d;
    border-radius: 24px;
    background: linear-gradient(135deg, #a27aff, #536ce8);
    color: white;
    font-size: 28px;
    font-weight: 800;
}

.creator-preview-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-preview-content h3 {
    margin-top: 12px;
    font-size: 21px;
}

.creator-preview-content p {
    margin: 5px 0;
}

.creator-preview-content #previewhandle {
    color: #a98ee3;
    font-size: 11px;
}

@media (max-width: 650px) {
    .creator-preview-cover {
        height: 125px;
    }
}


/* ==================================
   CREATORVERSE IMAGE CROP EDITOR
================================== */

.crop-modal[hidden] {
    display: none;
}

.crop-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(5, 4, 12, .88);
    backdrop-filter: blur(12px);
}

.crop-dialog {
    width: min(760px, 100%);
    padding: 25px;
    border: 1px solid #39304e;
    border-radius: 18px;
    background: #14121e;
    box-shadow: 0 25px 100px rgba(0, 0, 0, .55);
}

.crop-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 22px;
}

.crop-dialog-header small {
    color: #a58add;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.crop-dialog-header h3 {
    margin: 7px 0;
    font-size: 21px;
    color: #f5f0ff;
}

.crop-dialog-header p {
    margin: 0;
    font-size: 12px;
}

.crop-close {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid #393249;
    border-radius: 9px;
    background: #211d2d;
    color: white;
    font-size: 22px;
    cursor: pointer;
}

.crop-workspace {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 210px;
    padding: 12px;
    overflow: hidden;

    border: 1px solid rgba(160, 130, 210, .18);
    border-radius: 13px;

    /* Полупрозрачный фон */
    background: rgba(25, 21, 38, .42);

    /* Лёгкое размытие заднего фона */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.crop-viewport {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    background: #08080e;
    border: 2px solid #9c78e6;
    touch-action: none;
    cursor: grab;
    box-shadow: 0 0 35px rgba(142, 103, 224, .15);
}

.crop-viewport.is-avatar {
    width: min(360px, 75vw);
    aspect-ratio: 1 / 1;
    border-radius: 50%;

    border: 2px solid rgba(180, 145, 255, .85);

    box-shadow:
        0 0 20px rgba(150, 105, 235, .15),
        0 0 45px rgba(150, 105, 235, .08);
}

.crop-viewport.is-cover {
    width: min(680px, 100%);
    aspect-ratio: 16 / 5;
    border-radius: 12px;
}

.crop-viewport.dragging {
    cursor: grabbing;
}

.crop-viewport img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    max-width: none;
    max-height: none;
    pointer-events: none;
    user-select: none;
}

.crop-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .22;
    background:
        linear-gradient(
            to right,
            transparent 33.15%,
            #ffffff 33.33%,
            transparent 33.5%,
            transparent 66.5%,
            #ffffff 66.66%,
            transparent 66.85%
        ),
        linear-gradient(
            to bottom,
            transparent 33.15%,
            #ffffff 33.33%,
            transparent 33.5%,
            transparent 66.5%,
            #ffffff 66.66%,
            transparent 66.85%
        );
}

.crop-zoom-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    color: #aaa3ba;
    font-size: 13px;
}

.crop-zoom-row input {
    flex: 1;
    accent-color: #a17aff;
    cursor: pointer;
}

.crop-zoom-row b {
    min-width: 47px;
    color: #c5adff;
    text-align: right;
    font-size: 11px;
}

.crop-help {
    margin-top: 10px;
    color: #777187;
    text-align: center;
    font-size: 10px;
}

.crop-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.crop-cancel {
    padding: 11px 18px;
    border: 1px solid #393249;
    border-radius: 8px;
    background: #211d2d;
    color: #c5bfd3;
    cursor: pointer;
}

.crop-actions button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* Make the final avatar round */

.creator-preview-avatar {
    border-radius: 50% !important;
}

@media (max-width: 600px) {
    .crop-modal {
        padding: 12px;
    }

    .crop-dialog {
        padding: 17px;
    }

    .crop-workspace {
        min-height: 160px;
        padding: 8px;
    }

    .crop-viewport.is-avatar {
        width: min(280px, 68vw);
    }

    .crop-dialog-header h3 {
        font-size: 18px;
    }
}
/* AVATAR CROP MASK */
/* AVATAR CROP — CLEAN MASK */

.crop-viewport.is-avatar {
    width: min(360px, 75vw);
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;

    border: none !important;
    outline: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;

    isolation: isolate;
}

/* Затемнение снаружи круга без серой каймы */

.crop-viewport.is-avatar::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;

    background: rgba(8, 7, 15, 0.58);

    -webkit-mask: radial-gradient(
        circle,
        transparent 0 49.7%,
        #000 50%
    );

    mask: radial-gradient(
        circle,
        transparent 0 70%,
        #000 50%
    );
}

/* Только фиолетовая граница */

.crop-viewport.is-avatar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;

    border: 2px solid #a982ef;
    border-radius: 50%;

}



/* Убираем квадратную сетку у аватара */

.crop-viewport.is-avatar .crop-grid {
    display: none;
}

/* =====================================
   PUBLIC CREATOR PROFILE
===================================== */

.creator-back {
    margin: 0 0 22px;
    padding: 9px 13px;
    border: 1px solid #373047;
    border-radius: 8px;
    background: #171522;
    color: #c5b2ec;
    font-size: 11px;
    cursor: pointer;
    transition: .2s;
}

.creator-back:hover {
    border-color: #9870ed;
    background: #241d35;
}

.public-creator {
    overflow: hidden;
    border: 1px solid #302b40;
    border-radius: 16px;
    background: #12121d;
}

.public-creator-cover {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse at 75% 20%, #563a80, #191627 75%);
}

.public-creator-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-creator-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(12, 11, 19, .5),
        transparent 60%
    );
}

.public-creator-identity {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 19px;
    padding: 0 28px 20px;
    margin-top: -65px;
    z-index: 1;
}

.public-creator-avatar {
    flex-shrink: 0;
    width: 118px;
    height: 118px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 5px solid #12121d;
    border-radius: 50%;
    background: linear-gradient(135deg, #a27aff, #536ce8);
    color: white;
    font-size: 37px;
    font-weight: 800;
}

.public-creator-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.public-creator-name {
    flex: 1;
    min-width: 0;
    padding-bottom: 7px;
}

.public-creator-name h1 {
    margin: 0;
    font-size: 29px;
    overflow-wrap: anywhere;
}

.public-creator-name p {
    margin: 5px 0 0;
    color: #a98ee3;
}

.creator-category {
    display: inline-block;
    margin-top: 9px;
    padding: 5px 9px;
    border: 1px solid #493762;
    border-radius: 6px;
    background: #251e35;
    color: #cbb4ff;
    font-size: 10px;
}

.creator-follow-button {
    min-width: 115px;
    margin-bottom: 7px;
    padding: 11px 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(110deg, #9c6cf4, #6878ed);
    color: white;
    font-weight: 700;
    cursor: pointer;
}

.creator-follow-button.following {
    border: 1px solid #49405b;
    background: #211e2d;
    color: #c8bfd9;
}

.creator-profile-body {
    padding: 20px 28px 28px;
}

.creator-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 11px;
    margin: 10px 0 24px;
}

.creator-stat {
    padding: 16px;
    border: 1px solid #302c41;
    border-radius: 10px;
    background: #171622;
}

.creator-stat b {
    display: block;
    color: #f3edff;
    font-size: 23px;
}

.creator-stat span {
    color: #928ba5;
    font-size: 10px;
}

.creator-profile-section {
    margin-top: 25px;
}

.creator-profile-section h3 {
    margin: 0 0 13px;
    font-size: 14px;
}

.creator-about {
    max-width: 750px;
    color: #b6b1c5;
    font-size: 13px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.creator-socials {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.creator-socials a {
    display: inline-flex;
    padding: 9px 13px;
    border: 1px solid #3a304d;
    border-radius: 8px;
    background: #211b30;
    color: #d3c0ff;
    text-decoration: none;
    font-size: 11px;
    transition: .2s;
}

.creator-socials a:hover {
    border-color: #9970e7;
    background: #302344;
}

.creator-achievements {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
}

.creator-achievement {
    padding: 15px;
    border: 1px solid #302c41;
    border-radius: 10px;
    background: #171622;
}

.creator-achievement-icon {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    place-items: center;
    border-radius: 9px;
    background: #302344;
    color: #c3a7ff;
    font-size: 16px;
}

.creator-achievement b {
    display: block;
    font-size: 11px;
}

.creator-achievement p {
    margin-bottom: 0;
    font-size: 10px;
}

@media (max-width: 760px) {
    .public-creator-cover {
        height: 170px;
    }

    .public-creator-identity {
        flex-wrap: wrap;
        padding: 0 16px 15px;
        gap: 11px;
    }

    .public-creator-avatar {
        width: 88px;
        height: 88px;
        font-size: 27px;
    }

    .public-creator-name h1 {
        font-size: 22px;
    }

    .creator-follow-button {
        width: 100%;
        margin: 5px 0 0;
    }

    .creator-profile-body {
        padding: 15px;
    }

    .creator-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .creator-achievements {
        grid-template-columns: 1fr;
    }
}
/* CREATOR DIRECTORY CARDS */

.creator-directory-card {
    transition: transform .2s ease, border-color .2s ease;
}

.creator-directory-card:hover {
    transform: translateY(-3px);
    border-color: #665083;
}

.directory-avatar {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 13px;
    overflow: hidden;
    place-items: center;
    border: 2px solid #70549b;
    border-radius: 50%;
    background: linear-gradient(135deg, #a27aff, #536ce8);
    color: white;
    font-size: 21px;
    font-weight: 800;
}

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

.directory-view-button {
    width: 100%;
    margin-top: 15px;
}