@font-face {
    font-family: 'tanha';
    src: url('../fonts/my-fonts/Tanha-FD.eot');
    src: url('../fonts/my-fonts/Tanha-FD.eot?#iefix') format('FontName-opentype'),
        url('../fonts/my-fonts/Tanha-FD.woff') format('woff'),
        url('../fonts/my-fonts/Tanha-FD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'kalameh-normal';
    src: url('../fonts/Kalameh/KalamehWeb-Regular.woff2') format('woff2'),
        url('../fonts/Kalameh/KalamehWeb-Medium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'kalameh-bold';
    src: url('../fonts/Kalameh/KalamehWeb-Bold.woff2') format('woff2'),
        url('../fonts/Kalameh/KalamehWeb-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

:root {
    --body-color: #ab7f5a !important;
    /* #ab7f5a */
    --body-color-light: #f4f5f9 !important;
    --body-text-color: #FFF !important;
    --my-hover-color: #1dc1f8;
    --text-color-price: #6fc341;
}

body,
html {
    padding: 0;
    margin: 0;
    font-size: 13px;
    direction: rtl;
    counter-reset: section my-number;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'tanha';
    box-sizing: border-box;
}

pre {
    text-wrap: wrap !important;
    font-family: 'tanha';
    font-size: 1.2rem !important;
}

ul {
    padding: 0;
    margin: 0;
}

input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.my-focus:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

embed {
    max-width: 100%;
}

video {
    max-width: 100%;
    border-radius: 0.5rem;
}

/*----------------------my search index---------------------------*/
#search-card {
    width: 100%;
    max-height: 250px;
    overflow: auto;
}

#search-card .img-search-card img {
    width: 50px;
    height: 50px;
    border-radius: 0.5rem;
    object-fit: cover;
}

#search-card a.search-item {
    border-radius: 0.5rem;
}

#search-card a.search-item:hover {
    background-color: #ececec;
}

/*----------------------my video player---------------------------*/
.my-video-player embed {
    width: 100%;
    height: 470px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/*----------------------Ai Text style---------------------------*/
/* ===== استایل‌های چت ===== */
.conversation-item {
    transition: all 0.2s;
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.conversation-item.active {
    background: #e7f1ff;
    border-color: #0d6efd;
}

.conversation-item.active a {
    color: #0d6efd !important;
}

.delete-conv-form {
    opacity: 0;
    transition: opacity 0.2s;
}

.conversation-item:hover .delete-conv-form {
    opacity: 1;
}

/* ===== پیام‌ها ===== */
.message-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: #e7f1ff;
    color: #0d6efd;
}

.assistant-message .message-avatar {
    background: #d1f4e0;
    color: #10a37f;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    position: relative;
}

.user-message .message-content {
    background: #0d6efd;
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message .message-content {
    background: #f1f3f5;
    color: #212529;
    border-bottom-left-radius: 4px;
}

.message-text {
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 12px;
}

.message-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s;
}

.message-item:hover .message-actions {
    opacity: 1;
}

.btn-action {
    background: none;
    border: none;
    padding: 4px 8px;
    cursor: pointer;
    color: #6c757d;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-action:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #212529;
}

/* ===== لودینگ تایپ ===== */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/*----------------------Ai style---------------------------*/
/* --- استایل هدر و کانتینر اصلی --- */
.main-content {
    transition: all 0.3s;
}

/* --- بخش آپلود تصویر (جدید) --- */
.upload-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.file-upload-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 20px;
    background-color: #f3f4f6;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px dashed #cbd5e1;
}

.file-upload-wrapper:hover {
    border-color: var(--body-color);
    background-color: rgba(146, 114, 79, 0.05);
}

/* مخفی کردن اینپوت واقعی */
#ref-image-input {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.upload-icon {
    font-size: 3rem;
    color: var(--body-color);
    z-index: 1;
    transition: transform 0.3s ease;
}

/* متن راهنما کنار اینپوت */
.file-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- بخش تولید تصویر (شبیه Bing) --- */
.generator-container {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.05);
}

.prompt-input-area {
    position: relative;
    background-color: #f3f4f6;
    border-radius: 20px;
    padding: 10px;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.prompt-input-area:focus-within {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(146, 114, 79, 0.2);
}

#ai-prompt {
    border: none;
    background: rgba(146, 114, 79, 0.2);
    border-radius: 20px;
    width: 100%;
    padding: 15px;
    padding-left: 85px;
    /* فضای خالی برای دکمه */
    font-size: 1.1rem;
    outline: none;
}

#generate-btn {
    position: absolute;
    left: 20px;
    border-radius: 12px;
    padding: 8px 24px;
    background-color: var(--body-color);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

#generate-btn:hover {
    background-color: var(--body-color);
    transform: scale(1.05);
}

/* فقط استایل برای وضعیت غیرفعال دکمه */
#generate-btn[disabled] {
    background-color: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

/* --- کارت‌های تصویر (استایل قبلی) --- */
.card {
    overflow: hidden;
}

.img-card {
    width: 100%;
    height: 180px;
    object-fit: cover;
    overflow: hidden;
}

.card-img-top {
    transition: all 0.3s ease-in-out;
    display: block !important;
}

.card:hover .card-img-top {
    scale: 1.1;
}

/*----------------------my style---------------------------*/
.no-select {
    -webkit-user-select: none;
    /* Safari و Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge قدیمی */
    user-select: none;
    /* استاندارد اصلی */
}

.my-spinner {
    width: 25px;
    height: 25px;
    border: 3px solid var(--body-color);
    border-top-color: transparent;
    border-radius: 50%;
    animation: my-spinner 0.7s linear infinite;
}

@keyframes my-spinner {
    from {}

    to {
        transform: rotate(360deg);
    }

}

.my-rotate-360-1 {
    animation: rotaion-360-1 0.5s linear infinite;
}

.my-rotate-360-2 {
    animation: rotaion-360-2 0.5s linear infinite;
}

@keyframes rotaion-360-1 {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotaion-360-2 {
    0% {
        transform: rotate(360deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

i.i-hover {
    transition: 0.2s ease-in;
    scale: 1;
    cursor: pointer;
}

i.i-hover:hover {
    scale: 1.1;
}

.cursor-point {
    cursor: pointer !important;
}

i {
    display: inline-flex;
    position: relative;
}

i.icon-hover {
    font-size: 2rem;
    transition: all 0.2s ease;
}

i.icon-hover:hover {
    font-size: 2.25rem;
}

.top-3 {
    top: 3px !important;
}

.top-5 {
    top: 5px !important;
}

.top-7 {
    top: 7px !important;
}

.top-8 {
    top: 8px !important;
}

.top-10 {
    top: 10px !important;
}

.tanha-bold {
    font-family: 'tanha';
    font-weight: 700;
}

.icon-box {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.color-body-1 {
    background-color: var(--body-color) !important;
    color: var(--body-text-color) !important;
}

.border-color-body {
    border-color: var(--body-color) !important;
}

.color-body {
    color: var(--body-color) !important;
}

.bg-body-light {
    background-color: #f4f5f9;
}

.btn-success-2 {
    color: #FFF !important;
    background-color: #6fc341 !important;
}

.btn-success-2:hover {
    background-color: #549e2a !important;
}

.text-bg-light-1 {
    color: #444 !important;
    background-color: #f5f5f5 !important;
}

.border-b1 {
    border-bottom: 1px solid #eee !important;
}

.h-45px {
    height: 45px !important;
}

.my-hover a {
    color: #666 !important;
    transition: all 0.3s ease !important;
}

.my-hover a:hover {
    color: var(--my-hover-color) !important;
}

.my-hover a.active {
    color: var(--my-hover-color) !important;
}

.shadow-1 {
    box-shadow: rgba(67, 71, 85, 0.27) 0px 0px 0.25em, rgba(90, 125, 188, 0.05) 0px 0.25em 1em !important;
}

.shadow-2 {
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px !important;
}

.shadow-3 {
    box-shadow: rgba(17, 17, 26, 0.05) 0px 1px 0px, rgba(17, 17, 26, 0.1) 0px 0px 8px !important;
}

.shadow-4 {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px !important;
}

.shadow-5 {
    box-shadow: rgba(0, 0, 0, 0.6) 0px 0px 15px !important;
}

.counter-reset {
    counter-reset: section;
}

.border-dashed {
    margin: 0.5rem auto;
    border-radius: 0.25rem;
    padding: 1rem;
    border: 1px dashed #ddd;
}

.btn-outline-body {
    --bs-btn-color: var(--body-color);
    --bs-btn-border-color: var(--body-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--body-color);
    --bs-btn-hover-border-color: var(--body-color);
    --bs-btn-focus-shadow-rgb: 13, 110, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--body-color);
    --bs-btn-active-border-color: var(--body-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--body-color);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--body-color);
    --bs-gradient: none;
}

.btn-white-green {
    background-color: #fff;
    color: #666;
}

.btn-white-green:hover {
    color: #fff;
    background-color: var(--text-color-price);
}

.my-img-hover img {
    transition: all 0.3s ease;
}

.my-img-hover img:hover {
    scale: 1.03;
}

/* Red border */
hr.new1 {
    border-top: 1px solid #555555;
}

hr.new1-2 {
    border-top: 2px solid #555555;
}

/* Dashed red border */
hr.new2 {
    border-top: 1px dashed #555555;
}

hr.new2-2 {
    border-top: 2px dashed #555555;
}

/* Dotted red border */
hr.new3 {
    border-top: 1px dotted #555555;
}

hr.new3-2 {
    border-top: 2px dotted #555555;
}

/* Thick red border */
hr.new4 {
    border: 1px solid #555555;
}

hr.new4-2 {
    border: 2px solid #555555;
}

/* Large rounded green border */
hr.new5 {
    border: 5px solid #555555;
    border-radius: 5px;
}

hr.new5-2 {
    border: 10px solid #555555;
    border-radius: 5px;
}

.unlist_style ul {
    list-style: none !important;
}

.bg-dark-2 {
    background-color: #f6f9fa !important;
}

.quest-cart {
    margin: auto;
    width: 100%;
    transition: all 0.3s ease;
}

.quest-cart:hover {
    width: 98%;
}

.quest-avatar img {
    min-width: 80px;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #c8c8c8;
}

.payment .my-check {
    font-size: 10rem;
}

.user-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #eee;
    border-radius: 50%;
}

.user-avatar-d {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border: 2px solid #eee;
    border-radius: 50%;
}

.contact-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 1rem;
}

.contact-banner img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

iframe {
    width: 100%;
    border-radius: 1rem;
}

.font-kalameh-normal {
    font-family: 'kalameh-normal';
}

.font-kalameh-bold {
    font-family: 'kalameh-bold';
}

.white-space-pre-line {
    white-space: pre-line !important;
}

/* ----------------------   Image Editor Ai Style  ------------------------ */
/* استفاده مستقیم از متغیرهای قالب شما */
.upload-box {
    background: var(--body-color-light);
    border: 2px dashed var(--body-color);
    transition: all 0.25s ease;
    overflow: hidden;
}

.upload-box:hover,
.upload-box.drag-active {
    border-style: solid;
    border-color: var(--body-color);
}

.upload-icon {
    width: 64px;
    height: 64px;
    background: rgba(171, 127, 90, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--body-color);
}

/* نمایش دکمه‌ها روی تصویر */
.preview-wrapper:hover .preview-controls {
    opacity: 1 !important;
}

/* دکمه‌های سفارشی با رنگ سازمانی */
.btn-outline-custom {
    color: var(--body-color);
    border-color: var(--body-color);
}

.btn-outline-custom:hover {
    background: var(--body-color);
    color: var(--body-text-color);
}

/* منوی کشویی موبایل */
.mobile-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--body-color-light);
    border-radius: 1.5rem 1.5rem 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
}

.mobile-sheet.active {
    transform: translateY(0);
}

.mobile-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.mobile-sheet-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: #ccc;
    border-radius: 2px;
    margin: 0 auto 1rem;
}

/* موبایل: دکمه‌ها همیشه روی تصویر نمایان باشند */
@media (max-width: 767px) {
    .upload-box {
        min-height: 200px !important;
    }

    .preview-wrapper .preview-controls {
        opacity: 1 !important;
        background: rgba(0, 0, 0, 0.35) !important;
    }
}

/* ===== ناحیه آپلود چند تصویر ===== */
#preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    padding: 12px;
    align-content: start;
    background: var(--body-color-light);
}

.preview-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    background: #fff;
}

.preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.preview-remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    border: none;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s;
    z-index: 2;
}

.preview-remove-btn:hover {
    transform: scale(1.15);
    background: #dc3545;
}

.upload-box.drag-active {
    border: 2px dashed var(--bs-primary) !important;
    background: rgba(var(--bs-primary-rgb), 0.05);
}

/* ===== کلاژ تصاویر ورودی در کارت گالری ===== */
.collage-grid {
    display: grid;
    gap: 2px;
    width: 100%;
    height: 100%;
    align-items: center;
}

.collage-grid.cols-1 {
    grid-template-columns: 1fr;
}

.collage-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.collage-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
}

.collage-grid.cols-4,
.collage-grid.cols-many {
    grid-template-columns: repeat(2, 1fr);
}

.collage-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.collage-cell {
    position: relative;
    overflow: hidden;
}

.collage-more {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

/* ===== اسلایدر مقایسه ===== */
.aic-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.aic-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}

.aic-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.aic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aic-image-before {
    clip-path: inset(0 calc(100% - var(--aic-pos, 50%)) 0 0);
    z-index: 2;
    background-color: #1b1b1b;
}

.aic-image-before img {
    object-fit: contain;
    border-radius: 0.5rem;
    height: auto;
}

.aic-image-after {
    z-index: 1;
}

.aic-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--aic-pos, 50%);
    width: 2px;
    background: #fff;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.aic-slider-handle {
    position: absolute;
    top: 50%;
    left: var(--aic-pos, 50%);
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 4;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aic-slider-handle svg {
    width: 20px;
    height: 20px;
    fill: #333;
}

.aic-label {
    position: absolute;
    bottom: 10px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    border-radius: 4px;
    z-index: 5;
    letter-spacing: 1px;
}

.aic-label-before {
    left: 10px;
}

.aic-label-after {
    right: 10px;
}


/* ----------------------   Image Compare Slider  ------------------------ */
/* ریست فقط برای این کامپوننت */
.aic-wrapper * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.aic-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    /* پس‌زمینه تیره مدرن */
    font-family: system-ui, -apple-system, sans-serif;
}

/* کانتینر اصلی */
.aic-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    max-width: 800px;
    overflow: hidden;
    box-shadow: 0 5px 10px 0px rgba(0, 0, 0, 0.2);
    /* متغیر اصلی که موقعیت اسلایدر را کنترل می‌کند */
    --aic-pos: 50%;
    cursor: ew-resize;
    /* aspect-ratio: 16 / 9; */
    /* نسبت تصویر ثابت (اختیاری) */
}

/* استایل مشترک تصاویر برای قفل شدن دقیق روی هم */
.aic-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    display: block;
}

/* تصویر پس‌زمینه (بعد/ویرایش شده) */
.aic-image-after {
    z-index: 1;
}

/* تصویر رویی (قبل/اصلی) که برش می‌خورد */
.aic-image-before {
    z-index: 2;
    /* برش هوشمند: فقط بخشی از تصویر را نشان می‌دهد بدون تغییر سایز */
    clip-path: polygon(0 0, var(--aic-pos) 0, var(--aic-pos) 100%, 0 100%);
    will-change: clip-path;
    /* بهینه‌سازی عملکرد برای انیمیشن روان */
}

/* خط اسلایدر */
.aic-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--aic-pos);
    width: 3px;
    background: #ffffff;
    z-index: 4;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
    pointer-events: none;
    /* کلیک از روی خط عبور می‌کند */
}

/* دکمه دایره‌ای وسط اسلایدر */
.aic-slider-handle {
    position: absolute;
    top: 50%;
    left: var(--aic-pos);
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #ffffff;
    border-radius: 50%;
    z-index: 5;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
}

.aic-slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* آیکون فلش‌های داخل دکمه */
.aic-slider-handle svg {
    width: 20px;
    height: 20px;
    fill: #0f172a;
}

/* برچسب‌های مینیمال گوشه تصویر */
.aic-label {
    position: absolute;
    bottom: 20px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 20px;
    z-index: 5;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.aic-label-before {
    left: 20px;
}

.aic-label-after {
    right: 20px;
}

/* ----------------------   Preloader Demo-19  ------------------------ https://bootsnipp.com/snippets/GaeVl */
.loader19 {
    width: 160px;
    height: 160px;
    margin: 20px auto;
    position: relative
}

.loader19 .loader-inner {
    position: absolute;
    top: 75%;
    left: 100%
}

.loader19 .l19-box-2 {
    left: 2px;
    top: 2px;
    -webkit-animation-name: loading-19;
    animation-name: loading-19
}

.loader19 .l19-box-1 {
    width: 74px;
    height: 74px;
    border-radius: 4px;
    -webkit-animation-name: loading-192;
    animation-name: loading-192;
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-timing-function: steps(4);
    animation-timing-function: steps(4)
}

.loader19 .l19-box-2 {
    -webkit-animation-duration: .5s;
    animation-duration: .5s
}

.l19-box-1 {
    position: absolute;
    color: #e3b23c;
    border: 2px solid;
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

.l19-box-2,
.loader19 .l19-box-1:after,
.loader19 .l19-box-1:before {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--body-color)
}

.loader19 .l19-box-1:after,
.loader19 .l19-box-1:before {
    bottom: 2px;
    content: ""
}

.loader19 .l19-box-1:before {
    left: 2px
}

.loader19 .l19-box-1:after {
    right: 2px
}

.l19-box-2 {
    -webkit-animation-timing-function: ease-in-out;
    animation-timing-function: ease-in-out;
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite
}

@-webkit-keyframes loading-19 {
    33% {
        left: 2px
    }

    100%,
    67% {
        left: 36px
    }
}

@keyframes loading-19 {
    33% {
        left: 2px
    }

    100%,
    67% {
        left: 36px
    }
}

@-webkit-keyframes loading-192 {
    to {
        -webkit-transform: translate(-50%, -50%) rotate(-405deg);
        transform: translate(-50%, -50%) rotate(-405deg)
    }
}

@keyframes loading-192 {
    to {
        -webkit-transform: translate(-50%, -50%) rotate(-405deg);
        transform: translate(-50%, -50%) rotate(-405deg)
    }
}



@keyframes show-hide {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.text-fade {
    color: #000;
    animation: show-hide 1s ease-in-out infinite;
}

/* ----------------------CSS Animation------------------------ */
.loader1 {
    background: linear-gradient(269deg, #a04df2, #4dd4f2, #de60fb);
    background-size: 600% 600%;

    -webkit-animation: bg-animate 2s ease infinite;
    -moz-animation: bg-animate 2s ease infinite;
    -o-animation: bg-animate 2s ease infinite;
    animation: bg-animate 2s ease infinite;
}

@-webkit-keyframes bg-animate {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes bg-animate {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@-o-keyframes bg-animate {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

@keyframes bg-animate {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* HTML: <div class="loader"></div> */
.loader2 {
    width: fit-content;
    font-weight: bold;
    font-family: Tahoma, sans-serif;
    font-size: 30px;
    direction: rtl;

    /* شروع از سمت راست */
    background: linear-gradient(90deg, #000 50%, #0000 0) right/200% 100%;
    animation: l21 2s infinite linear;
}

.loader2::before {
    content: "...لطفا دقایقی صبر کنید";
    color: #0000;
    padding: 0 5px;
    background: inherit;
    background-image: linear-gradient(90deg, #fff 50%, #000 0);
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes l21 {
    100% {
        /* پایان در سمت چپ */
        background-position: left;
    }
}

/* HTML: <div class="loader"></div> */
.loader3 {
    height: 15px;
    aspect-ratio: 5;
    -webkit-mask: linear-gradient(90deg, #0000, #000 20% 80%, #0000);
    background: radial-gradient(closest-side at 37.5% 50%, #000 94%, #0000) 0/calc(80%/3) 100%;
    animation: l48 .75s infinite linear;
}

@keyframes l48 {
    100% {
        background-position: 36.36%
    }
}

.loader4 {
    width: 48px;
    height: 48px;
    display: inline-block;
    position: relative;
    transform: rotate(45deg);
}

.loader4::before {
    content: '';
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    position: absolute;
    left: 0;
    top: -24px;
    animation: animloader 4s ease infinite;
}

.loader4::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--body-color);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    animation: animloader2 2s ease infinite;
}

@keyframes animloader {
    0% {
        box-shadow: 0 24px rgba(255, 255, 255, 0), 24px 24px rgba(255, 255, 255, 0), 24px 48px rgba(255, 255, 255, 0), 0px 48px rgba(255, 255, 255, 0);
    }

    12% {
        box-shadow: 0 24px #ab7f5a, 24px 24px rgba(255, 255, 255, 0), 24px 48px rgba(255, 255, 255, 0), 0px 48px rgba(255, 255, 255, 0);
    }

    25% {
        box-shadow: 0 24px #ab7f5a, 24px 24px #ab7f5a, 24px 48px rgba(255, 255, 255, 0), 0px 48px rgba(255, 255, 255, 0);
    }

    37% {
        box-shadow: 0 24px #ab7f5a, 24px 24px #ab7f5a, 24px 48px #ab7f5a, 0px 48px rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 24px #ab7f5a, 24px 24px #ab7f5a, 24px 48px #ab7f5a, 0px 48px #ab7f5a;
    }

    62% {
        box-shadow: 0 24px rgba(255, 255, 255, 0), 24px 24px #ab7f5a, 24px 48px #ab7f5a, 0px 48px #ab7f5a;
    }

    75% {
        box-shadow: 0 24px rgba(255, 255, 255, 0), 24px 24px rgba(255, 255, 255, 0), 24px 48px #ab7f5a, 0px 48px #ab7f5a;
    }

    87% {
        box-shadow: 0 24px rgba(255, 255, 255, 0), 24px 24px rgba(255, 255, 255, 0), 24px 48px rgba(255, 255, 255, 0), 0px 48px #ab7f5a;
    }

    100% {
        box-shadow: 0 24px rgba(255, 255, 255, 0), 24px 24px rgba(255, 255, 255, 0), 24px 48px rgba(255, 255, 255, 0), 0px 48px rgba(255, 255, 255, 0);
    }
}

@keyframes animloader2 {
    0% {
        transform: translate(0, 0) rotateX(0) rotateY(0);
    }

    25% {
        transform: translate(100%, 0) rotateX(0) rotateY(180deg);
    }

    50% {
        transform: translate(100%, 100%) rotateX(-180deg) rotateY(180deg);
    }

    75% {
        transform: translate(0, 100%) rotateX(-180deg) rotateY(360deg);
    }

    100% {
        transform: translate(0, 0) rotateX(0) rotateY(360deg);
    }
}


/* ----------------------teacher Page------------------------ */
.main-height-page {
    height: 850px;
}

.main-title {
    font-size: 80px;
    font-weight: 1000;
}

.teacher-page-item {
    display: flex;
    gap: .5rem;
}

.teacher-page-item .circle-i {
    width: 40px;
    height: 40px;
    position: relative;
    border-radius: 50%;
    background-color: var(--body-color);
}

.teacher-page-item .circle-i i {
    font-size: 26px;
    position: absolute;
    margin: auto;
    text-align: center;
    top: 7px;
    right: 7px;
    color: var(--body-text-color);
    transition: all 0.2s ease;
}

.teacher-page-item .circle-i:hover i {
    font-size: 28px;
    top: 6px;
    right: 6px;
}

.teacher-avatar {
    margin: auto;
    width: 70%;
    height: 600px;
    border-radius: 20rem;
    background-color: gray;
    text-align: center;
    overflow: hidden;
    position: relative;
    animation: teacher_avatar 5s linear infinite;
}

.teacher-title {
    font-size: 38px;
    padding-bottom: 15px;
    display: inline-block;
    position: relative;
}

.teacher-title::before {
    content: '';
    display: block;
    width: 150px;
    height: 25px;
    border-bottom: 8px solid var(--body-color);
    position: absolute;
    bottom: 0;
}

@keyframes teacher_avatar {
    0% {
        top: 0;
    }

    50% {
        top: 30px;
    }

    100% {
        top: 0;
    }
}

.teacher-avatar img {
    margin: auto;
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.bio-teacher-avatar img {
    border-radius: 30px;
}

.teacher-bg-center {
    position: relative;
    width: 100%;
}

.teacher-bg-center::before {
    content: '';
    margin: auto;
    left: 0;
    right: 0;
    height: 100px;
    bottom: 0;
    border-radius: 100rem 100rem 0 0;
    background-color: var(--body-color);
    position: absolute;
    z-index: -1;
}

.teacher-certificate .teacher-cert-img {
    width: 100%;
    height: 275px;
    overflow: hidden;
}

/* ----------------------my heading------------------------ */
h3.heading {
    position: relative;
}

span.line {
    display: inline-block;
    background-color: var(--body-color);
    height: 5px;
    border-radius: 40px;
}

span.line.lw80 {
    width: 80px;
}

span.line.lw25 {
    width: 25px;
}

span.line.lw10 {
    width: 10px;
}

.w-10 {
    width: 10% !important;
}

.w-20 {
    width: 20% !important;
}

.w-30 {
    width: 30% !important;
}

.w-40 {
    width: 40% !important;
}

.w-60 {
    width: 60% !important;
}

.w-70 {
    width: 70% !important;
}

.w-80 {
    width: 80% !important;
}

.w-90 {
    width: 90% !important;
}

/* ----------------------my color------------------------ */
.text-bg-price {
    color: #fff !important;
    background-color: var(--text-color-price) !important;
}

.text-color-price {
    color: var(--text-color-price) !important;
}

.bg-color-price {
    color: #fff !important;
    background-color: var(--text-color-price) !important;
    transition: all 0.3s ease;
}

.bg-color-price:hover {
    opacity: 0.9;
}

.my-img-rounded img {
    border-radius: 0.5rem;
    margin: 0.5rem auto;
    object-fit: cover;
}

/* -----------------------------AI image generation Style-------------------------------- */
/* کانتینر اصلی هر آیتم */
.checkbox-item {
    cursor: pointer;
    position: relative;
    font-size: 11px;
    text-align: center;
}

/* مخفی کردن چک‌باکس پیش‌فرض مرورگر */
.checkbox-item input[type="checkbox"] {
    display: none;
}

/* استایل کارت تصویر */
.p-image-card {
    width: 60px;
    /* سایز درخواستی ۴۰ پیکسل */
    height: 60px;
    /* سایز درخواستی ۴۰ پیکسل */
    border-radius: 0.5rem;
    /* لبه‌های نرم و کمی گرد */
    overflow: hidden;
    border: 2px solid transparent;
    /* کادر پیش‌فرض شفاف */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* استایل تصویر داخل کارت */
.p-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* انیمیشن نرم هاور (بزرگ‌نمایی تصویر) */
.checkbox-item:hover .p-image-card img {
    transform: scale(1.2);
}

/* استایل حالت انتخاب شده (تیک خورده) */
.checkbox-item input[type="checkbox"]:checked+.p-image-card {
    border: 2px solid #4CAF50;
    /* کادر سبز رنگ دور تصویر */
}

/* استایل آیکون تیک زیبا */
.checkmark {
    position: absolute;
    top: 0px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* انیمیشن فنری و زیبا */
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.4);
}

.checkmark svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: white;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* نمایش آیکون تیک هنگام انتخاب شدن */
.checkbox-item input[type="checkbox"]:checked~.checkmark {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* کانتینر اصلی هر آیتم */
.style-item {
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    user-select: none;
}

/* مخفی کردن چک‌باکس اصلی */
.style-item input[type="checkbox"] {
    display: none;
}

/* بخش بصری (اسلایدر + تصویر) */
.item-visuals {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- بخش اسلایدر جمع‌وجور --- */
.compact-slider {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 10px;
    gap: 2px;
}

/* نمایش اسلایدر فقط وقتی چک‌باکس تیک خورده */
.style-item input[type="checkbox"]:checked~.item-visuals .compact-slider {
    display: flex;
}

/* استایل عدد شمارنده */
.weight-value {
    font-size: 11px;
    font-weight: 800;
    color: #0d6efd;
    height: 14px;
    line-height: 14px;
    font-family: 'Courier New', Courier, monospace;
    direction: ltr;
}

/* جعبه نگهدارنده برای چرخش دقیق اسلایدر */
.slider-rotate-box {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* خود اسلایدر - با direction: ltr جهت درست می‌شود */
.v-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 45px;
    height: 3px;
    background: #e9ecef;
    border-radius: 2px;
    transform: rotate(-90deg);
    cursor: pointer;
    outline: none;
    transition: background 0.1s;
    direction: ltr;
    /* اصلاح جهت اسلایدر */
}

/* دستگیره (Thumb) اسلایدر در کروم/سافاری/اج */
.v-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.1s;
}

.v-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* دستگیره اسلایدر در فایرفاکس */
.v-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d6efd;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    cursor: pointer;
}

/* --- استایل جعبه تصویر (شامل تصویر، لیبل و چک‌آیکون) --- */
.p-img-box {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.p-img-box img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #f1f3f5;
    transition: all 0.2s ease;
    display: block;
}

.p-img-box:hover img {
    scale: 1.1;
}

/* افکت فعال شدن تصویر */
.style-item input[type="checkbox"]:checked~.item-visuals .p-img-box img {
    border-color: #0d6efd;
    box-shadow: 0 3px 10px rgba(13, 110, 253, 0.15);
}

/* برچسب متنی زیر تصویر (داخل p-img-box) */
.item-label {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
    margin-top: 3px;
    text-align: center;
    white-space: nowrap;
}

/* آیکون تیک (چک‌مارک) - حالا داخل p-img-box قرار دارد */
.check-icon {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    background: #0d6efd;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.check-icon svg {
    width: 10px;
    height: 10px;
    stroke: #fff;
    stroke-width: 3.5;
    fill: none;
}

/* سلکتور به‌روزرسانی شده برای نمایش چک‌آیکون */
.style-item input[type="checkbox"]:checked~.item-visuals .p-img-box .check-icon {
    display: flex;
}

.seed-value {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.seed-value:hover {
    background-color: #0d6efd !important;
    transform: scale(1.05);
}

.seed-value:active {
    transform: scale(0.95);
}

/* افکت چشمک‌زن برای input فرم وقتی مقدار کپی می‌شود */
.seed-input.flash {
    animation: seedFlash 0.8s ease;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.4) !important;
    border-color: #0d6efd !important;
}

@keyframes seedFlash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: #cfe2ff;
    }

    100% {
        background-color: #fff;
    }
}

/* استایل span دانه (کلیک‌پذیر - فقط seed) */
.seed-value {
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.seed-value:hover {
    filter: brightness(1.15);
    transform: scale(1.05);
}

.seed-value:active {
    transform: scale(0.95);
}

/* استایل آیکون کپی تنظیمات (prompt + seed + width + height) */
.copy-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.copy-settings-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.copy-settings-btn:active {
    transform: translateY(0) scale(0.95);
}

.copy-settings-btn i {
    font-size: 16px;
}

/* افکت موفقیت کپی */
.copy-settings-btn.success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    box-shadow: 0 2px 8px rgba(56, 239, 125, 0.4) !important;
}

.seed-value.success {
    background-color: #198754 !important;
}

/* افکت چشمک‌زن برای input فرم */
.flash {
    animation: seedFlash 0.8s ease;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.4) !important;
    border-color: #0d6efd !important;
}

@keyframes seedFlash {
    0% {
        background-color: #fff;
    }

    50% {
        background-color: #cfe2ff;
    }

    100% {
        background-color: #fff;
    }
}

/* -----------------------------AI Card Style-------------------------------- */
/* استایل کلی کارت‌ها */
.ai-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* حرکت نرم و کمی فنری */
    background: white;
    height: 100%;
}

.ai-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(63, 81, 181, 0.2);
    /* سایه آبی هنگام هاور */
}

.card-img-top {
    height: 180px;
    object-fit: contain;
    transition: transform 0.5s ease;
    background-color: #181d22;
}

/* افکت زوم روی عکس با هاور */
.ai-card:hover .card-img-top {
    transform: scale(1.1);
}

.card-body {
    padding: 2rem 1.5rem;
}

.icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* لیست ویژگی‌ها */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    border-right: 3px solid #e9ecef;
    margin-right: 10px;
}

.feature-list li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
}

.feature-list li i {
    margin-left: 8px;
    font-size: 0.8rem;
}

/* استایل دکمه‌ها */
.btn-custom {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    background: linear-gradient(45deg, #6f42c1, #4e73df);
    color: white;
    border: none;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-custom:hover {
    background: linear-gradient(45deg, #563d9c, #3e6bcf);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
}

/* رنگ‌بندی اختصاصی برای هر کارت */
.card-ai-text .icon-box {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.card-ai-image .icon-box {
    background-color: #fff3cd;
    color: #ffc107;
}

.card-ai-edit .icon-box {
    background-color: #d4edda;
    color: #198754;
}

/* افکت سه بعدی جاوا اسکریپت */
.tilt-card-wrapper {
    perspective: 1000px;
}


/* -----------------------------Flex Style-------------------------------- */
.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-grow-2 {
    flex-grow: 2 !important;
}

.flex-grow-3 {
    flex-grow: 3 !important;
}

.flex-grow-4 {
    flex-grow: 4 !important;
}

/* -----------------------------Top Menu--------------------------- */
.my-shadow-z {
    box-shadow: 0 0 15px #0000001e;
    z-index: 50;
}

.p-8rem {
    padding: 0 8rem;
}

.my-top-banner {
    height: 60px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.title-word {
    animation: color-animation 0.5s linear infinite;
}

@keyframes color-animation {
    0% {
        /*scale: 1;*/
        opacity: 0.5;
    }

    50% {
        /*scale: 1.1;*/
        opacity: 1;
    }

    100% {
        /*scale: 1;*/
        opacity: 0.5;
    }
}

.navbar ul {
    list-style: none;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    padding: 0.5rem 1rem !important;
    font-size: 1rem;
}

.navbar ul>li:hover>ul {
    visibility: visible;
    opacity: 1;
}

.navbar ul li ul {
    position: absolute;
    border-radius: 0.5rem;
    background-color: #eee;
    visibility: hidden;
    opacity: 0;
    min-width: 140px;
    transition: all 0.3s ease;
    z-index: 9999;
}

.navbar ul li ul li a {
    display: block;
    border-bottom: 1px solid #dddddd41;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.navbar ul>li>ul>li:hover {
    border-radius: 0.5rem;
    background-color: #ddd;
}

.navbar ul li ul li ul {
    position: absolute;
    top: 0;
    right: 100%;
    border-radius: 0.5rem;
    background-color: #eee;
    visibility: hidden;
    opacity: 0;
}

.navbar-brand {
    width: 200px;
    text-align: center;
}

.navbar-brand img {
    display: block;
    object-fit: contain;
    margin: 0 auto;
    max-height: 70px;
}

.user-basket-top-menu {
    font-size: 2rem;
}

.user-basket-top-menu .my-basket {
    position: relative;
    display: flex;
    align-items: center;
}

.user-basket-top-menu .my-basket i {
    display: flex !important;
    align-items: center;
    color: #888;
}

.user-basket-top-menu .my-basket:hover div {
    scale: 1.1;
    top: 0;
}

.user-basket-top-menu .my-basket div {
    position: absolute;
    top: -5px;
    right: 8%;
    width: 20px;
    height: 20px;
    font-size: 1.5rem;
    line-height: 22px;
    border-radius: 50%;
    background-color: var(--body-color);
    color: #fff;
    transition: all 0.3s ease;
}

.user-basket-top-menu .my-basket:hover i {
    color: var(--my-hover-color);
}

.user-basket-top-menu .my-user {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    display: flex;
    gap: 5px;
    align-items: center;
}

.user-basket-top-menu .my-user:hover span {
    color: var(--my-hover-color);
}

.user-basket-top-menu .my-user i {
    font-size: 2rem;
    display: flex !important;
    color: #888;
}

.user-basket-top-menu .my-user:hover i {
    color: var(--my-hover-color);
}

.username-top-menu {
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

/*-------------------------Web Story---------------------*/
#my-search {
    background: #f4f5f9 url("../img/site-img/site/patterns.webp");
    text-align: center;
    border-radius: 0 0 50px 50px;
    line-height: 2;
}

.my-web-story {
    margin: 1rem auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.my-web-story .story-group-item {
    padding: 1rem 0;
    display: block;
    text-align: center;
    width: 150px;
}

.my-web-story .story-item {
    width: 75px;
    height: 75px;
    margin: 0 auto;
    overflow: hidden;
    background-color: #fff;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.my-web-story .story-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    text-align: center;
    margin: auto;
    transition: all 0.3s ease;
}

.my-web-story .story-item img:hover {
    scale: 1.1;
}

.my-web-story .story-group-item span {
    white-space: nowrap;
    max-width: 145px;
    font-size: 1.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 auto;
}

.slick-prev::before,
.slick-next::before {
    font-family: 'slick';
    font-size: 2rem;
    line-height: 1;
    opacity: .75;
    color: #999;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/*------------------------search header section------------------*/
.header-search .my-search-border {
    border: 7px solid #00000050;
    border-radius: 5rem;
}

.header-search form {
    position: relative;
    display: grid;
}

.header-search input {
    width: 100%;
    height: 45px;
    border: none;
    border-radius: 5rem;
    padding: 0.5rem 1rem 0.5rem 4rem;
    font-size: 1.5rem;
    color: #666;
}

.header-search button i {
    position: absolute;
    padding-left: 1rem;
    top: 0;
    left: 0;
    color: #515151;
    font-size: 2rem;
    line-height: 2;
    transition: all 0.3s ease;
}

.header-search button:hover i {
    scale: 1.1;
}

.my-img-search {
    object-fit: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
}

/*----------------------category index-----------------------------*/
#my-category {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

#my-category .cat-group {
    width: 140px;
    height: 140px;
    padding: 1rem;
    text-align: center;
    /*background-color: var(--body-color);*/
    border-radius: 0.5rem;
}

#my-category .cat-group a {
    margin: auto;
}

#my-category .cat-group span {
    display: block;
    margin: auto;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #555;
    transition: all 0.3s ease;
}

#my-category .cat-group:hover span {
    color: var(--my-hover-color);
}

#my-category .cat-group .cat-item {
    width: 100px;
    height: 100px;
    background-color: #e6e6e6;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

#my-category .cat-group .cat-item img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    margin: auto;
    transition: all 0.3s ease;
}

#my-category .cat-group:hover .cat-item img {
    scale: 1.1;
}

/* -----------------------Slider swiper----------------------- */
.offer-products .slick-prev,
.offer-products .slick-next {
    top: 100px !important;
}

.swiper {
    width: 100%;
    height: 100%;
}

/* -----------------------Offer index----------------------- */
.offer-products {
    border-radius: 0 0 1rem 1rem;
    padding: 1rem;
    display: flex;
    gap: 0.2rem;
    justify-content: center;
    align-items: center;
}

.offer-products .offer-group {
    width: 180px;
    height: 200px;
    display: block;
    background-color: #fff;
    text-align: center;
    border-radius: .5rem;
}

.offer-products .offer-group .offer-item {
    display: block;
    padding-top: 1rem;
}

.offer-products .offer-group .offer-item img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: auto;
    text-align: center;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    padding: 0.5rem;
}

.offer-title .border-offer-title {
    display: block;
    margin: auto;
    width: 200px;
    border-bottom: 1px solid #eeeeee78;
    padding-bottom: 0.3rem;
    border-radius: 20px;
}

/* -----------------------product----------------------- */
.my-product {
    width: 100%;
    display: block;
    border: none;
    overflow: hidden;
}

.my-product .product-img {
    display: block;
    width: 100%;
    max-height: 200px;
    overflow: hidden;
}

.my-product img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    margin: auto;
    transition: all 0.3s ease;
}

.my-product img:hover {
    scale: 1.03;
}

.my-product h5 {
    width: 100%;
    display: block;
    margin-bottom: 1rem;
    line-height: 1.6;
    height: 50px;
    overflow: hidden;
}

.my-product .card-meta {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
}

.my-product .card-meta .right-item {
    color: #888;
    font-size: 1.2rem;
}

.my-product .card-meta .left-item {
    color: var(--my-hover-color);
    font-size: 1.2rem;
}

.my-product .product-price .off-price {
    color: orange;
    font-size: 1.2rem;
    font-family: 'tanha';
    font-weight: 700;
}

.my-product .product-price .price {
    color: var(--text-color-price);
    font-size: 1.2rem;
    font-family: 'tanha';
    font-weight: 700;
}

/* -----------------------offer label---------------------- */
.card {
    position: relative;
}

.offer-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 105px;
    height: 30px;
    line-height: 30px;
    padding: 0 0.5rem;
    background-color: tomato;
    text-align: right;
    font-size: 1.25rem;
    border-radius: 0 0 20px 0;
    color: #fff;
    transition: all 0.3s ease;
    z-index: 4;
}

/* -----------------------index teacher---------------------- */
.index-teacher-img {
    display: block;
    width: 150px;
    height: 150px;
    text-align: center;
    margin: auto;
    background-color: #eee;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

.index-teacher-title {
    color: #666;
    transition: all 0.3s ease;
}

.index-teacher-title:hover {
    color: var(--my-hover-color);
}

.index-teacher .index-teacher-img img {
    transition: all 0.3s ease;
}

.index-teacher:hover img {
    scale: 1.05;
}

/* -----------------------blog----------------------- */
#blog-index a {
    color: #666;
}

#blog-index a:hover {
    color: var(--my-hover-color);
}

#blog-index .index-blog-img {
    overflow: hidden;
}

#blog-index .card img {
    transition: all 0.3s ease;
}

#blog-index .card:hover img {
    scale: 1.03;
}

/* -----------------------comment index----------------------- */
.comment-index {
    width: 100%;
    padding: 1.5rem;
    padding-bottom: 0;
    text-align: center;
    display: block;
}

.comment-index img {
    min-width: 100px;
    min-height: 100px;
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin: auto;
    background-color: #eee;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

#comment-index .card-text {
    width: 100%;
    height: 165px;
    overflow: auto;
}

/* -----------------------footer----------------------- */
#my-footer {
    background: #212529 url('../img/site-img/footer/1.webp');
    background-size: contain;
    background-repeat: round;
}

#my-footer .footer-title {
    color: #aaa;
    font-weight: 700;
    position: relative;
    margin-bottom: 1.2rem;
}

.border-b-dashed {
    border-bottom: 1px dashed #666 !important;
}

#my-footer ul {
    list-style: none;
    line-height: 2;
}

#my-footer ul li {
    position: relative;
}

#my-footer ul li::before {
    font-family: 'bootstrap-icons';
    content: '\F12C';
    font-size: 1.25rem;
    color: #999;
    position: absolute;
    right: 0;
    top: 0;
}

#my-footer ul li a {
    display: block;
    padding-right: 1.5rem;
    padding-top: 0.1rem;
}

#my-footer ul li:hover a {
    padding-right: 2rem;
}

.footer-logo img {
    width: 200px;
    object-fit: contain;
    margin: auto;
    padding-bottom: 1rem;
}

/* ----------------------- single product ----------------------- */
#my-content {
    font-size: 1.3rem;
    color: #666;
    line-height: 2.6;
}

.content-text {
    margin: 2rem auto;
    padding: 1rem;
}

.content-text img {
    border-radius: 0.5rem;
    margin: 1rem auto;
}

.content-text blockquote {
    display: block;
    border-right: 4px solid grey;
    border-left: 4px solid grey;
    padding: 0 1rem;
    border-radius: 1rem;
    text-align: justify;
    box-shadow: 0 0 5px #00000020;
}

.my-tags a {
    background-color: #f5f5f5;
    padding: 0.5rem;
    border-radius: 0.5rem;
    display: inline-block;
    margin-bottom: 0.25rem;
    transition: all 0.3s ease;
}

.my-tags span::before {
    content: '#';
}

.accordion-button::after {
    flex-shrink: 1;
    margin-right: 1rem !important;
}

.pre-needed li {
    color: #777;
}

.pre-li-number li::before {
    counter-increment: section;
    content: '' counter(section) ' ';
    border: 1px solid var(--text-color-price);
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    border-radius: 50%;
    color: var(--text-color-price);
    vertical-align: middle;
    text-align: center;
    margin-left: 0.5rem;
}

.pre-li-number li::marker {
    content: '';
}

.video-group .my-num::after {
    counter-increment: my-number;
    content: '' counter(my-number) '';
    display: inline-block;
    position: absolute;
    right: -0.8rem;
    top: 1.8rem;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
    border-radius: 50%;
    border: 1px solid var(--text-color-price);
    color: var(--text-color-price);
    background-color: #fff;
}

.info-product-top button {
    width: 90%;
}

.top-info-product h5 {
    font-size: 1.4rem;
    font-weight: 700;
}

.top-info-product .top-price {
    font-size: 1.25rem;
    font-weight: 700;
}

.bg-body-color {
    background-color: var(--body-color) !important;
    color: var(--body-text-color) !important;
    border-color: var(--body-text-color) !important;
}

.text-body-color {
    color: var(--body-color) !important;
}

.input-color {
    color: #191919 !important;
}

/* ------------------------widget----------------------- */
.my-widget {
    line-height: 2;
}

/* -----------------------archive----------------------- */
.top-archive-widget img {
    min-height: 200px;
}

.pagination {
    background-color: #f4f5f9;
    width: fit-content;
    padding: 0 2rem;
    z-index: 2;
}

.my-line-v::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #ddd;
    z-index: 1;
}

/* ----------------------- Article ----------------------- */
.blog-index-search {
    z-index: 2;
    width: 100%;
    margin: auto;
    border: 6px solid var(--body-color);
    border-radius: 5rem;
}

.blog-item {
    margin: auto;
    background-color: #fff;
    border-radius: 1rem;
}

.blog-item .blog-item-img {
    width: 100%;
    height: 180px;
    overflow: hidden;
    text-align: center;
    border-radius: 0.25rem;
}

.blog-item .blog-item-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin: auto;
    border-radius: 0.25rem;
}

.blog-item .blog-item-img {
    position: relative;
    text-align: center;
}

.blog-item .blog-text {
    padding: 0 1rem;
    width: 100%;
}

.blog-item .author-blog {
    background-color: rgba(255, 255, 255, 0.62);
    padding: 0.5rem;
    border-radius: 3rem;
    width: fit-content;
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    right: 0;
    margin: auto;
}

.blog-item .author-blog img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-item .author-blog span {
    color: #000;
    font-weight: bolder;
    margin-left: 0.5rem;
}

.blog-item .blog-excerpt {
    width: 100%;
    height: 80px;
    overflow: hidden;
}

.article-detail-img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    object-fit: contain;
}

.article-detail-search {
    position: absolute;
    left: 0;
    width: 50px;
    height: 47px;
    border: none;
}

#article-detail-search {
    padding-left: 5rem;
}

.article-img-slider {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: 200px;
}

.article-img-slider img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-img-slider .slider-text-article {
    position: absolute;
    width: 250px;
    padding: 1rem;
    margin: auto;
    align-self: center;
    justify-self: center;
    border-radius: 0.5rem;
    left: 0;
    right: 0;
    background-color: #ffffff50;
    color: #000;
}

/* ----------------------- comments ----------------------- */
.comments .avatar-comment {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    text-align: center;
    overflow: hidden;
}

.comments .avatar-comment img {
    object-fit: cover;
    scale: 1;
    transition: all 0.3s ease;
}

#comments .avatar-comment:hover img {
    scale: 1.1;
}

/* -----------------------Dashboard----------------------- */
.dashboard-item {
    padding: 1rem;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 1rem;
    transition: all 0.2s ease;
    color: #202529BF !important;
}

.dashboard-item:hover {
    background-color: #eee;
}

.dashboard-item.active {
    background-color: #ab7f5a;
    color: #fff !important;
}

.dashboard-item span {
    transition: all 0.3s ease;
    margin-right: 0;
    font-size: 1.6rem;
}

.dashboard-item:hover span {
    margin-right: 0.3rem;
}

.dashboard-item .circle-i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 1rem;
    background-color: var(--body-color);
    text-align: center;
}

.dashboard-item .circle-i i {
    font-size: 2rem;
    margin: auto;
    right: 0;
    left: 0;
    color: #fff;
}

/* ----------------------- loading border----------------------- */
.loading-border {
    width: 100%;
    height: 10px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.loading-border:before {
    content: '';
    position: absolute;
    left: -50px;
    width: 25%;
    height: 100%;
    border-radius: 50px;
    background-color: var(--body-color);
    animation: move 0.8s infinite linear;
}

@keyframes move {
    0% {
        left: -25%;
    }

    100% {
        left: 100%;
    }
}

/* -----------------------single post----------------------- */
.sidebar-blog-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 1rem;
}

.my-right-hover .my-right-text-hover {
    padding-right: 0;
    transition: all 0.3s ease;
}

.my-right-hover:hover .my-right-text-hover {
    padding-right: 0.5rem;
}

/*==========================================================*/
.ul-r-1rem ul {
    padding-right: 2rem !important;
}

.alert-error {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* ----------------------- Media ----------------------- */
@media (max-width: 1400px) {}

@media (max-width: 1200px) {
    .p-8rem {
        padding: 0 4rem;
    }
}

@media (max-width: 992px) {
    .p-8rem {
        padding: 0 3rem;
    }

    .navbar ul li ul {
        position: relative;
        margin-right: 1.5rem;
        border-radius: 0.5rem;
        background-color: inherit;
        visibility: visible;
        opacity: 1;
        min-width: 140px;
        transition: all 0.3s ease;
        z-index: 9999;
    }

    .dashboard-item {
        display: block;
        text-align: center;
        margin: auto 1rem;
        background-color: antiquewhite;
    }

    .dashboard-item .circle-i {
        width: 40px;
        height: 40px;
        padding: 0.5rem;
        margin: auto;
    }

    .dashboard-item .circle-i i {
        font-size: 1.8rem;
        top: 3px;
    }

    .dashboard-item span {
        font-size: 1.25rem;
        flex-wrap: wrap;
    }

    .message-content {
        max-width: 85%;
    }
}

@media (max-width: 769px) {
    .p-8rem {
        padding: 0 2rem;
    }

    .info-product-top button {
        width: 90%;
    }

    .top-info-product h5 {
        font-size: 1.5rem;
        font-weight: normal;
    }

    .top-info-product .top-price {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .my-top-banner {
        font-size: 1.25rem;
    }

    .blog-index-search {
        width: 90%;
    }

    .main-content {
        padding: 15px;
    }

    .message-content {
        max-width: 90%;
    }

}

@media (max-width: 577px) {
    .p-8rem {
        padding: 1rem;
    }

    .my-top-banner {
        font-size: 1rem;
    }

    .navbar-brand {
        width: 130px;
        text-align: center;
    }
}