@font-face {
    font-family: 'Vazir';
    font-display: swap;
    src: url(/static/fonts/vazir.woff);
}

@font-face {
    font-family: 'Material';
    font-display: swap;
    src: url(/static/fonts/material.woff);
}

* {
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}

html {
    direction: rtl;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    padding: 0;
    background: #171717;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Support for safe areas on mobile devices */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background: #1c0c37;
}

@media screen and (min-width: 750px) {

    ::-webkit-scrollbar {
        width: 2px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: transparent;
        margin: 10px;
    }

    ::-webkit-scrollbar-thumb {
        background-color: #fafafa;
        border-radius: 6px;

    }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #fafafa;
    }
}

.flex {
    display: flex;
    align-items: center;
}

.mat-icon {
    font-family: 'Material';
    font-size: 22px;
}

.mat-icon-back {
    font-family: 'Material';
    font-size: 22px;
    background: none;
    border: none;
    color: #fafafa;
    text-decoration: none;
}

.g-5 {
    gap: 5px;
}

.g-10 {
    gap: 10px;
}

.g-20 {
    gap: 20px;
}

.m-0 {
    margin: 0;
}

.mt-0 {
    margin-top: 0px;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-50 {
    margin-top: 50px;
}

.mr-10 {
    margin-right: 10px;
}

.mr-20 {
    margin-right: 20px;
}

.mr-30 {
    margin-right: 30px;
}

.mr-40 {
    margin-right: 40px;
}

.mr-50 {
    margin-right: 50px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mb-40 {
    margin-bottom: 40px;
}

.mb-50 {
    margin-bottom: 50px;
}

.ml-5 {
    margin-left: 5px;
}

.ml-10 {
    margin-left: 10px;
}

.ml-20 {
    margin-left: 20px;
}

.ml-30 {
    margin-left: 30px;
}

.ml-40 {
    margin-left: 40px;
}

.ml-50 {
    margin-left: 50px;
}

.p-0 {
    padding: 0px;
}

.pr-10 {
    padding-right: 10px;
}

.pr-20 {
    padding-right: 20px;
}

.pr-30 {
    padding-right: 30px;
}

.pr-40 {
    padding-right: 40px;
}

.pr-50 {
    padding-right: 50px;
}

.pt-6 {
    padding-top: 6px;
}

.pt-10 {
    padding-top: 10px;
}

.pt-20 {
    padding-top: 20px;
}

.pt-30 {
    padding-top: 30px;
}

.pt-40 {
    padding-top: 40px;
}

.pt-50 {
    padding-top: 50px;
}

.pb-6 {
    padding-bottom: 6px;
}

.pb-10 {
    padding-bottom: 10px;
}

.pb-20 {
    padding-bottom: 20px;
}

.pb-30 {
    padding-bottom: 30px;
}

.pb-40 {
    padding-bottom: 40px;
}

.pb-50 {
    padding-bottom: 50px;
}

.pl-10 {
    padding-left: 10px;
}

.pl-20 {
    padding-left: 20px;
}

.pl-30 {
    padding-left: 30px;
}

.pl-40 {
    padding-left: 40px;
}

.pl-50 {
    padding-left: 50px;
}

/* APP FRAME */
.app-frame {
    width: 100%;
    height: 100dvh;
    max-width: 420px;
    /* background: url('/static/images/frame.jpg') no-repeat center center; */
    background: radial-gradient(circle at 5% 5%,#B7287A 0%,#5b27b2 40%,#000000 90%);
    background-size: 100% 100%;
    /* border-radius: 20px; */
    /* border: 2px solid #1c0c37; */
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.app-frame::-webkit-scrollbar {
    display: none;
}

.header {
    background: #ffffff00;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
}

.circle-color {
    width: 40px;
    height: 40px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, #fafafa 10%, #fafafa 80%);
    color: #5b27b2;
    font-size: 26px;
}

.menu-btn {
    height: 40px;
    width: auto;
    background-color: #171717;
    color: #fafafa;
    border-radius: 50px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.menu-btn:hover {
    background-color: #fafafa;
    color: #171717;
}

.menu-btn button {
    border: none;
    background: none;
    color: #fafafa;
}

.see-all-btn {
    height: 40px;
    width: auto;
    background-color: #171717;
    color: #fafafa;
    border-radius: 50px;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signin-btn {
    height: 40px;
    width: 120px;
    background-color: #17171700;
    color: #fafafa;
    font-size: 12px;
    border-radius: 100px;
    border: 1px solid #fafafaa8;
    display: flex;
    font-weight: normal;
    align-items: center;
    justify-content: center;
}

.signin-btn:hover {
    background-color: #fafafa;
    color: #181818;
}

.premium-btn {
    height: 40px;
    width: 140px;
    background-color: #171717;
    color: #fafafa;
    font-size: 12px;
    border-radius: 100px;
    border: none;
    display: flex;
    font-weight: normal;
    align-items: center;
    justify-content: center;
}

.premium-btn:hover {
    background-color: #fafafa;
    color: #181818;
}

.header-right {
    display: flex;
    justify-content: start;
    width: 100%;
}

.header-right img{
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

.header-left {
    display: flex;
    justify-content: end;
    width: 100%;
}

.header-chat-middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    color: #fafafa;
    font-weight: bold;
    text-align: center;
    align-items: center;
}

.header-chat-middle a {
    font-size: 14px;
    color: #fafafa;
    font-weight: normal;
}

.header-chat-side {
    display: flex;
    justify-content: center;
    width: 30%;
}

.header-chat-side img{
    width: 40px;
    height: 40px;
    border-radius: 100%;
}

.back-chat {
    width: 30px;
    height: 30px;
}

.shop-chat {
    width: 40px;
    height: 40px;
    background-color: #fafafa;
    border-radius: 100%;
}

@media (max-width: 480px) {
    .app-frame {
        max-width: 100%;
        width: calc(100% - env(safe-area-inset-left) - env(safe-area-inset-right));
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}


@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@media (max-width: 480px) {
    .chat-button {
        padding: 12px 40px;
        font-size: 18px;
    }
}

.admin-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
}

.ai-body {
    width: 100%;
}

.ai-body-header {
    width: 100%;
    display: flex;
    justify-content: start;
    align-items: end;
}

.ai-body-header img {
    height: 66px;
    width: auto;
}

.biz-heading {
    height: auto;
    font-size: 20px;
    font-weight: bold;
    color: #fafafa;
    display: flex;
    justify-content: start;
    align-items: center;
    background: #B7287A;
    border-radius: 50px;
    border: 1px solid #fafafaa8;
}

.biz-heading:hover {
    background: #fafafa;
    color: #5b27b2;
}

.ai-heading {
    width: 100%;
    height: auto;
    font-size: 20px;
    font-weight: bold;
    color: #fafafa;
    display: flex;
    justify-content: start;
    align-items: center;
}

.ai-heading2 {
    width: 100%;
    height: auto;
    font-size: 18px;
    font-weight: 500;
    color: #fafafa;
    display: flex;
    justify-content: start;
    align-items: center;
}

.ai-heading3 {
    width: 100%;
    height: auto;
    font-size: 14px;
    font-weight: 500;
    color: #fafafa;
    display: flex;
    justify-content: start;
    align-items: center;
}

.ai-heading4 {
    width: 50%;
    height: auto;
    font-size: 14px;
    font-weight: 600;
    color: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .biz-heading {
        font-size: 16px;
    }
    /* .ai-heading {
        font-size: 16px;
    } */
    .ai-heading2 {
        font-size: 18px;
    }
    .ai-heading3 {
        font-size: 12px;
    }
    .ai-heading4 {
        font-size: 12px;
    }
}

.search-bar {
    width: 100%;
    height: 8dvh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
}

.search-input {
    width: 75%;
    height: 70%;
    border: 1px solid #fafafaa8;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fafafa;
}

.search-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    resize: none;
    text-align: right;
    min-height: 50px;
    max-height: 120px;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #fafafa;
}

.search-bar input::placeholder {
    color: #fafafaa8;
}

.search-btn {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #fafafaa8;
}

.service-form {
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    justify-self: center;
}

.service-form button {
    width: 40%;
    background: #fafafa;
    color: #171717;
    border: none;
    border-radius: 50px;
    border: 1px solid #fafafaa8;
}

.service-form button:hover {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
}

.signin-form {
    width: 85%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 1px solid #fafafaa8;
    border-radius: 20px;
    justify-self: center;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.signin-form button {
    width: 75%;
    background: #fafafa;
    color: #171717;
    border: none;
    border-radius: 50px;
    border: 1.5px solid #fafafaa8;
}

.signin-form button:hover {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
}

.signin-form p {
    font-size: 12px;
    font-weight: 500;
    color: #fafafa;
}

.signin-form a {
    font-size: 12px;
    font-weight: 500;
    color: #fafafa;
    background: #171717;
    padding: 10px;
    border: none;
    border-radius: 50px;
    text-align: center;
    padding: 10px 20px;
    text-decoration:none;
}

.purchase-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.purchase-form button {
    width: 350px;
    background: #fafafa;
    color: #171717;
    border: none;
    border-radius: 50px;
    border: 1.5px solid #fafafaa8;
}

.purchase-form button:hover {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
}

.purchase-input {
    width: 75%;
    height: 40px;
    border: 1px solid #fafafaa8;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fafafa;
}

.purchase-input input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    resize: none;
    text-align: right;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #fafafa;
}

.purchase-input input::placeholder {
    color: #fafafaa8;
}

.purchase-icon {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #fafafaa8;
}

option {
    background-color: #1e1e1e;
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
}

datalist {
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 8px;
    background-color: #1e1e1e;
    border: 1px solid #444;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

datalist option:hover {
    background-color: #333;
}

.purchase-gallery {
    min-height: 150px;
    display: flex;
    justify-content: center;
    gap: 10px;
    background-color: #17171700;
    flex-direction: column; 
    width: 100%;
}

.purchase-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    border: 1px solid #fafafaa8;
    border-radius: 20px;
    color: #fafafa;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.purchase-card .p {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.purchase-card .p3 {
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    width: 100%;
}

.purchase-card .price {
    margin: 0;
    background-color: #fafafa;
    color: #171717;
    border-radius: 1000px;
    font-size: 12px;
    text-align: center;
}

.purchase-card:hover {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
}

.purchase-card.selected {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
}

.purchase-card:hover .price {
    background-color: #fafafa;
    color: #171717;
}

.purchase-card-header {
    display: flex; 
    justify-content: space-between; 
    width: 100%; 
    padding: 0 30px; 
    align-items: center;
}

.purchase-card-header section {
    display: flex; 
    gap: 5px;
}

.purchase-card-features {
    display: grid; 
    grid-template-columns: repeat(2, 1fr);
}

.comment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
    height: 210px;
    min-width: 200px;
    border: 1px solid #fafafaa8;
    border-radius: 20px;
    color: #fafafa;
    padding: 20px 10px;
    animation: smoothHorizontalScroll 60s linear infinite;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.comment-card .p {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    align-content: center;
}

.comment-card .p2 {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

.comment-card:hover {
    background: #fafafa;
    color: #171717;
}

.comment-gallery {
    display: flex;
    justify-content: end;
    gap: 16px;
    background-color: #17171700;
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

@keyframes smoothHorizontalScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* دقیقاً به اندازه عرض نیمی از محتوا حرکت کن */
        transform: translateX(-600%);
    }
}

.ai-gallery {
    display: flex;
    justify-content: start;
    gap: 16px;
    background-color: #17171700;
    overflow-x: auto;
    width: 100%;
}

.ai-card {
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    align-items: center;
    justify-content: start;
    height: 100%;
    min-width: 120px;
    border: 1px solid #fafafaa8;
    border-radius: 20px;
    color: #fafafa;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.ai-card:hover {
    background: linear-gradient(to bottom right, #B7287A 20%, #b7287900 100%);
}

.ai-card.selected {
    background: linear-gradient(to bottom right, #B7287A 20%, #b7287900 100%);
}

.ai-card.hidden {
    display: none;
}

.ai-card .p {
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    margin: 0;
}

.ai-card .p2 {
    font-size: 12px;
    width: 90%;
}

.ai-card .p3 {
    font-size: 12px;
    width: 100%;
    text-align: center;
}

.ai-card-arrow-holder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: end;
}

.ai-card-arrow {
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #fafafa;
}

.info-holder {
    display: flex;
    width: 100%;
    height: auto;
    align-items: center;
    justify-content: center;
}

.banner {
    display: flex;
    gap: 10px;
    width: 350px;
    height: auto;
    color: #fafafa;
    /* background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%); */
    border-radius: 20px;
    text-align: center;
    align-items: center;
    border: 1px solid #fafafaa8;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 50%, #5b27b2 100%);
    backdrop-filter: blur(6px) saturate(1.2);
    padding: 10px 0;
    margin: 0 20px;
}

.banner2 {
    background: linear-gradient(to bottom right, #B7287A 20%, #b7287900 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.banner:hover {
    background: #5b27b2;
}

.banner div {
    text-align: right;
    align-items: center;
}

.banner a {
    font-size: 16px;
    font-weight: bold;
    padding-left: 20px;
}

.banner p {
    font-size: 12px;
    font-weight: 500;
    padding-left: 20px;
}

.banner img {
    border-radius: 10px;
    height: 100px;
    width: auto;
    margin-right: 6px;
}

.banner-div {
    width: 100px;
    height: auto;
    background-color: #fafafa;
    color: #000000;
    font-size: 12px;
    border: none;
    border-radius: 50px;
    padding: 2px 0 2px 0;
    text-align: center;
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.tip {
    display: flex;
    width: 300px;
    height: auto;
    font-size: 12px;
    font-weight: 500;
    color: #fafafa;
    border: 1px solid #fafafaa8;
    border-radius: 10px;
    text-align: center;
    justify-content: center;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
}

.tip:hover {
    color: #171717;
    background-color: #fafafa;
}

.img-main {
    width: 60%;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    /* border: 1px solid #fafafaa8; */
    /* border-radius: 20px; */
    /* background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 50%, #fafafaa8 100%); */
    /* backdrop-filter: blur(6px) saturate(1.2); */
}

.img-main img {
    width: 220px;
    height: auto;
    margin-top: 40px;
}

.step-holder {
    width: 100%;
    display: grid;
    justify-content: center;
    gap: 10px;
    grid-template-columns: repeat(2, 1fr);
}

.step {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    /* color: #171717;
    background: #fafafa; */
    border-radius: 20px;
    text-align: center;
    align-items: center;
    border: 1px solid #fafafaa8;
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 70%, #5b27b2 100%);
    backdrop-filter: blur(6px) saturate(1.2);
    color: #fafafa;
    padding: 20px 10px 20px 10px;
}

.step:hover {
    background: linear-gradient(to bottom right, #B7287A 20%, #b7287900 100%);
}

.step hr {
    margin: 10px; 
    width: 80%;
}

.step img {
    height: 80px;
    width: auto;
    margin-top: 10px;
} 

.step div {
    display: flex;
    justify-content: start;
    align-items: center;
    width: 100%;
} 

.step a {
    font-size: 14px;
    font-weight: 600;
    width: 100%;
    text-align: center;
} 

.step p {
    font-size: 12px;
    font-weight: 500;
    width: 100%;
    text-align: start;
}

.mat-order {
    font-size: 18px;
}

.step-btn {
    display: flex;
    width: 100%;
    height: auto;
    background: #fafafa;
    color: #171717;
    border-radius: 50px;
    text-align: center;
    align-items: center;
    justify-content: center;
    border: 1px solid #fafafaa8;
    gap: 10px;
    font-weight: 500;
}

.step-btn:hover{
    color: #fafafa;
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
}

.step-counter {
    width: 100%;
    height: 100%;
    /* color: #171717; */
    font-size: 14px;
    font-weight: 600;
    /* text-align: start; */
    display: flex;
    justify-content: end;
    align-items: end;
}

.message-bar {
    width: 100%;
    height: 10dvh;
    display: flex;
    justify-content: center;
    align-items: start;
}

.message-input {
    width: 90%;
    height: 70%;
    border: 1px solid #fafafaa8;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fafafa;
}

.message-input textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: transparent;
    resize: none;
    text-align: right;
    min-height: 50px;
    max-height: 120px;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    color: #fafafa;
    align-content: center;
}

.message-input button {
    color: white;
    background: none;
    outline: none;
    border: none;
}

.message-bar textarea::-webkit-scrollbar {
    display: none;
}

.message-bar textarea::placeholder {
    color: #fafafaa8;
}

.chat-body {
    width: 100%;
    height: calc(100dvh - 10vh - 100px);
    display: flex;
    justify-content: start;
}

.chat-card {
    display: flex;
    flex-direction: column-reverse;
    /* justify-content: end; */
    width: 100%;
    gap: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    font-size: 12px;
    font-weight: normal;
}

.chat-card::-webkit-scrollbar {
    width: 4px;
}

.chat-card::-webkit-scrollbar-track {
    background: transparent;
}

.chat-card::-webkit-scrollbar-thumb {
    background: #fafafa;
    border-radius: 3px;
}

.chat-card::-webkit-scrollbar-thumb:hover {
    background: #fafafa;
}

.message-wrapper {
    display: flex;
    align-items: flex-start;
    /* height: auto; */
}

.ai-message {
    flex-direction: row-reverse;
}

.user-message {
    flex-direction: row;
    justify-content: flex-start;
}


.bubble {
    padding: 14px 18px;
    font-size: 14px;
    max-width: 75%;
    line-height: 1.4;
    word-wrap: break-word;
    border: 1px solid #fafafa42;
}

.bubble p {
    margin: 0 0 4px 0;
    text-align: start;
}

@media (max-width: 480px) {
    .bubble {
        padding: 12px 14px;
        font-size: 13px;
        max-width: 70%;
    }
}

.ai {
    /* background: linear-gradient(to right, #483d42 40%, #171717 90%); */
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0) 10%, #b7287954 100%);
    backdrop-filter: blur(6px) saturate(1.2);
    color: #fafafa;
    border-radius: 20px 20px 20px 0px;
}

.ai-img {
    margin: 14px 0; 
    text-align: start; 
    border-radius: 20px;
}

.ai-img img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 4px;
    margin-top: 14px;
}

.user {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
    color: #fafafa;
    border-radius: 20px 20px 0px 20px;
}


@media (max-width: 480px) {
    .input-bar {
        padding: 5px 5px 5px 10px;
    }
}

.send-btn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 100%;
    background-color: #fafafa;
}

.send-btn:active {
    transform: scale(0.95);
}

.snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #125e87;
    color: #fff;
    text-align: center;
    border-radius: 20px;
    border: 1px solid #fafafaa8;
    padding: 16px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.snackbar.show {
    visibility: visible;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
    from {
        bottom: 0;
        opacity: 0;
    }

    to {
        bottom: 30px;
        opacity: 1;
    }
}

@keyframes fadeout {
    from {
        bottom: 30px;
        opacity: 1;
    }

    to {
        bottom: 0;
        opacity: 0;
    }
}

.copyright {
    display: flex;
    width: 100%;
    height: auto;
    color: #fafafa;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    justify-content: center;
}

.purchase-title {
    font-size: 16px;
    font-weight: 600;
    color: #fafafa;
}

#snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #333;
    color: #fafafa;
    text-align: center;
    border-radius: 50px;
    /* border: 1px solid #fafafaa8; */
    padding: 10px 20px;
    position: fixed;
    z-index: 1000;
    bottom: 30px;
    right: 50%;
    transform: translateX(50%);
    font-size: 14px;
}
        
#snackbar.show {
    visibility: visible;
    animation: fadein 0.6s, fadeout 0.6s 3s;
}
        
#snackbar.error {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
}
        
#snackbar.success {
    background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%);
}
        
@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}
        
@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

        .train-header {
            display: flex;
            gap: 5px;
            color: #fafafa;
            align-items: center;
        }

        .main-form {
            padding: 0;
            margin: 0;
        }

        .services-container {
            display: flex;
            flex-direction: column;
            gap: 30px;
            width: 100%;
        }

        .service-card {
            border: 2px solid #fafafa;
            border-radius: 20px;
            padding: 20px;
            background: rgba(255, 255, 255, 0.05);
        }

        .service-header {
            width: 100%;
            height: 40px;
            border: 1px solid #fafafaa8;
            border-radius: 100px;
            display: flex;
            justify-content: center;
            align-items: center;
            color: #fafafa;
        }

        .service-header input::placeholder {
            color: #fafafaa8;
        }

        .packages-style {
            width: 100%;
            border: none !important;
            outline: none !important;
            font-size: 12px;
            padding: 2px 6px;
            background: transparent;
            resize: none;
            text-align: right;
            overflow-y: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
            color: #fafafa;
        }

        .service-name-input {
            width: 100%;
            border: none;
            outline: none;
            font-size: 12px;
            padding: 12px 14px;
            background: transparent;
            resize: none;
            text-align: right;
            overflow-y: hidden;
            scrollbar-width: none;
            -ms-overflow-style: none;
            color: #fafafa;
        }

        .delete-package-btn {
            padding: 6px 14px;
            border: none !important;
            cursor: pointer;
            display: flex !important;
            align-items: center;
            text-align: center;
            display: flex;
            justify-content: center;
        }
        
        .delete-package-btn span{
            text-align: center;
            color: #171717;
            font-size: 12px;
        }

        .delete-package-btn:hover {
            color: #fafafa !important;
            background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%) !important;
            border: 1px solid #fafafaa8 !important;
        }

        .delete-package-btn:hover span {
            background: none !important;
            color: #fafafa !important;
        }

        .delete-service-btn {
            padding: 6px 14px;
            border: none !important;
            cursor: pointer;
            display: flex !important;
            align-items: center;
            text-align: center;
            display: flex;
            justify-content: center;
        }
        
        .delete-service-btn span {
            text-align: center;
            color: #171717;
            font-size: 12px;
        }

        .delete-service-btn:hover {
            color: #fafafa !important;
            background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%) !important;
            border: 1px solid #fafafaa8 !important;
        }

        .delete-service-btn:hover span {
            background: none !important;
            color: #fafafa !important;
        }

        .packages-container {
            margin-top: 15px;
        }

        .package-card {
            border-radius: 20px;
            padding: 12px;
            margin-bottom: 20px;
            margin-top: 10px;
            border: 1px solid #fafafaa8;
            position: relative;
            width: 100%;
            background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.1) 10%, #5a27b24e 100%);
            backdrop-filter: blur(6px) saturate(1.2);
        }

        .package-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
            margin-bottom: 15px;
        }

        .package-field {
            display: flex;
            flex-direction: column;
        }

        .package-field label {
            font-size: 12px;
            color: #fafafa;
            font-weight: 500;
        }

        .package-field input,
        .package-field textarea {
            font-size: 12px;
        }

        .package-field textarea {
            border: 1px solid #fafafaa8 !important;
            border-radius: 14px;
            padding: 10px;
            min-height: 80px;
        }

        .package-field textarea::placeholder {
            color: #fafafaa8;
        }

        .full-width {
            grid-column: span 2;
        }

        .add-package-btn {
            border: none;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            cursor: pointer;
            display: flex !important;
            align-items: center;
            text-align: center;
            display: flex;
            justify-content: center;
            width: 100% !important;
        }

        .add-service-btn {
            border: none;
            padding: 8px 20px;
            border-radius: 50px;
            font-size: 14px;
            cursor: pointer;
            display: flex !important;
            align-items: center;
            text-align: center;
            display: flex;
            justify-content: center;
            width: 100% !important;
        }

        .submit-btn {
            position: fixed;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: linear-gradient(to right, #B7287A 10%, #5b27b2 80%) !important;
            color: #fafafa !important;
            border: none;
            padding: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            margin-top: 20px;
            width: 150px !important;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 5px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .submit-btn:hover {
            background: #fafafa !important;
            color: #171717 !important;
        }

        .loading {
            opacity: 0.6;
            pointer-events: none;
        }

    .image-modal {
        display: none;
        position: fixed;
        z-index: 9999;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.1);
        backdrop-filter: blur(5px);
    }
    
    .image-modal-content {
        position: relative;
        margin: auto;
        width: 20%;
        max-width: 700px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .image-modal-content img {
        width: 100%;
        height: auto;
        border-radius: 14px;
    }
    
    .image-modal-close {
        position: absolute;
        top: -50px;
        right: 0;
        color: #fafafa;
        font-size: 35px;
        font-weight: bold;
        cursor: pointer;
        transition: 0.3s;
        z-index: 10000;
    }
    
    .image-modal-close:hover {
        color: #e74c3c;
    }
    
    .image-modal-caption {
        text-align: center;
        color: #171717;
        font-size: 14px;
        font-weight: bold;
        background: #fafafa;
        padding: 10px;
        border-radius: 50px;
    }
    
    @media (max-width: 768px) {
        .image-modal-content {
            width: 75%;
        }
        
        .image-modal-close {
            font-size: 30px;
        }
    }

    .enamad-holder {
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .enamad {
        height: 40px;
        width: auto;
    }

    .enamad img {
        height: 60px;
        width: auto;
    }