/* -------------------------------------------------------------------------------------

Project Name:   Helixsun
Project URI:    https://helixsun.com
Author:         Retro Medya
Author URI:     https://retromedya.com
License:        The design and development rights of this website belong to Retro Medya.
                Unauthorized copying, distribution, or resale is strictly prohibited.
Version:        1.0

------------------------------------------------------------------------------------- */

@property --a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg
}

@keyframes draw {
    to { stroke-dashoffset: 0 }
}

@keyframes rotating {
    0% { --a: 0deg }
    100% { --a: 360deg }
}

@keyframes blink {
    0%, 100% { opacity: 1 }
    50% { opacity: 0 }
}

.x-assist {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 1040
}

.x-assist * {
    box-sizing: border-box;
    user-select: none;
    font-family: "Inter Tight", sans-serif;
    color: #fff;
    margin: 0
}

.x-assist img {
    pointer-events: none
}

.x-assist > div:first-of-type {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    right: 0;
    bottom: 80px;
    transform: translateY(15px);
    width: 360px;
    max-width: calc(100vw - 30px);
    height: 480px;
    max-height: calc(100dvh - 120px);
    transition: .5s
}

.x-assist.active > div:first-of-type {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0)
}

.x-assist > div:first-of-type::before,
.x-assist > div:first-of-type::after,
.x-assist > div:last-of-type > div::before,
.x-assist > div:last-of-type > div::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: repeating-conic-gradient(from var(--a), #0f0, #ff0, #0ff, #f0f, #0ff);
    filter: blur(25px)
}

.x-assist.active > div:first-of-type::before,
.x-assist.active > div:first-of-type::after {
    animation: rotating 5s linear infinite
}

.x-assist > div:last-of-type > div::before,
.x-assist > div:last-of-type > div::after {
    inset: -3px;
    border-radius: 50px;
    filter: blur(18px);
    animation: rotating 5s linear infinite
}

.x-assist > div:first-of-type > div {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 16px;
    background: linear-gradient(180deg, #262626 0%, #181818 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .25);
    width: 100%;
    height: 100%;
    overflow: hidden
}

.x-assist > div:first-of-type > div > div:first-of-type {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 45px
}

.x-assist > div:first-of-type > div > div:first-of-type > img {
    height: 24px
}

.x-assist > div:first-of-type > div > div:first-of-type > div {
    opacity: .7;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    background: url(../img/close.svg) no-repeat center / contain;
    width: 24px;
    height: 24px;
    transition: .5s
}

.x-assist > div:first-of-type > div > div:first-of-type > div:hover {
    opacity: 1
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    user-select: text;
    overflow-y: auto;
    padding: 15px 18px;
    scrollbar-width: thin;
    scrollbar-color: #fff transparent
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div {
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: .3px;
    word-wrap: break-word;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 14px;
    background: linear-gradient(180deg, #2b2b2b 0%, #1e1e1e 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .14), 0 4px 12px -2px rgba(0, 0, 0, .25);
    max-width: 88%;
    padding: 10px 15px
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div.user {
    align-self: flex-end;
    font-weight: 600;
    color: #181818;
    border-color: #fff;
    background: #fff;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, .25)
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div p {
    font-size: 14px;
    line-height: 22px;
    color: inherit;
    margin: 0
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div strong {
    font-weight: 600;
    color: inherit
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div a {
    display: inline;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    transition: .5s
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div a:hover {
    opacity: .7
}

.x-assist > div:first-of-type > div > div:nth-of-type(2) > div i {
    display: inline-block;
    vertical-align: -2px;
    background: #fff;
    width: 6px;
    height: 14px;
    margin-left: 3px;
    animation: blink .8s infinite
}

.x-assist > div:first-of-type > div > div:last-of-type {
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 12px 15px 15px
}

.x-assist > div:first-of-type > div > div:last-of-type > input,
.x-assist > div:first-of-type > div > div:last-of-type > input:hover,
.x-assist > div:first-of-type > div > div:last-of-type > input:focus {
    flex: 1;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: .3px;
    color: #fff;
    user-select: text;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    background: linear-gradient(180deg, #262626 0%, #1a1a1a 100%);
    outline: none;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .15);
    min-width: 0;
    width: auto;
    height: 42px;
    padding: 8px 16px;
    transition: .3s
}

.x-assist > div:first-of-type > div > div:last-of-type > input:focus {
    border-color: rgba(255, 255, 255, .5)
}

.x-assist > div:first-of-type > div > div:last-of-type > input::placeholder {
    color: rgba(255, 255, 255, .5)
}

.x-assist > div:first-of-type > div > div:last-of-type > span {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    background: linear-gradient(180deg, #2d2d2d 0%, #181818 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .25), 0 8px 20px -4px rgba(24, 24, 24, .3);
    width: 42px;
    height: 42px;
    transition: .3s
}

.x-assist > div:first-of-type > div > div:last-of-type > span:hover {
    transform: translateY(-2px);
    border-color: #fff;
    background: #fff;
    box-shadow: 0 10px 20px -4px rgba(255, 255, 255, .25)
}

.x-assist > div:first-of-type > div > div:last-of-type > span > svg {
    fill: none;
    width: 18px;
    height: 18px
}

.x-assist > div:first-of-type > div > div:last-of-type > span > svg > path {
    stroke: #fff;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: .3s
}

.x-assist > div:first-of-type > div > div:last-of-type > span:hover > svg > path {
    stroke: #181818
}

.x-assist > div:last-of-type {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px
}

.x-assist > div:last-of-type > span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: .6px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50px;
    background: linear-gradient(180deg, #2d2d2d 0%, #181818 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .28), 0 8px 20px -4px rgba(24, 24, 24, .26);
    padding: 10px 18px;
    transition: .3s
}

.x-assist > div:last-of-type > span:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, .38);
    background: linear-gradient(180deg, #383838 0%, #1f1f1f 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .4), 0 12px 24px -4px rgba(24, 24, 24, .34)
}

.x-assist.active > div:last-of-type > span {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

.x-assist > div:last-of-type > div {
    position: relative;
    cursor: pointer;
    width: 58px;
    height: 58px;
    transition: .3s
}

.x-assist > div:last-of-type > div:hover {
    transform: translateY(-2px)
}

.x-assist > div:last-of-type > div > div {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50px;
    background: linear-gradient(180deg, #2d2d2d 0%, #181818 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .32);
    width: 100%;
    height: 100%;
    transition: .3s
}

.x-assist > div:last-of-type > div:hover > div {
    border-color: rgba(255, 255, 255, .4);
    background: linear-gradient(180deg, #383838 0%, #1f1f1f 100%);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, .45)
}

.x-assist > div:last-of-type > div > div > svg {
    width: 34px;
    height: 35px;
    overflow: visible
}

.x-assist > div:last-of-type > div > div > svg > path {
    fill: none;
    stroke: rgba(255, 255, 255, .18);
    stroke-width: 2.6px;
    stroke-linecap: round;
    stroke-linejoin: round
}

.x-assist > div:last-of-type > div > div > svg > path:last-of-type {
    stroke: #fff;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .65));
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 3.2s ease-in-out infinite alternate
}

@media (max-width: 480px) {
    .x-assist {
        right: 15px;
        bottom: 15px
    }

    .x-assist > div:first-of-type {
        bottom: 68px;
        width: calc(100vw - 30px);
        height: min(440px, calc(100dvh - 95px))
    }

    .x-assist > div:last-of-type > span {
        font-size: 12px;
        padding: 8px 14px
    }

    .x-assist > div:last-of-type > div {
        width: 52px;
        height: 52px
    }

    .x-assist > div:last-of-type > div > div > svg {
        width: 30px;
        height: 31px
    }
}