@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800;900&display=swap');
:root {
    --purple: #7c3aed;
    --purple-light: #a855f7;
    --blue: #2563eb;
    --blue-light: #38bdf8;
    --white: #ffffff;
    --text: #eef2ff;
    --text-soft: #b9c0df;
    --dark: #070b1a;
    --dark-card: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.16);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Vazirmatn", sans-serif;
    background:
        radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.28), transparent 25%),
        radial-gradient(circle at 85% 25%, rgba(37, 99, 235, 0.22), transparent 25%),
        #070b1a;
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

.background-effects {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 50% 80%, rgba(124, 58, 237, 0.12), transparent 30%);
}

/* ================= HEADER ================= */

.header {
    width: min(1180px, calc(100% - 40px));
    height: 82px;
    margin: 20px auto 0;
    padding: 12px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border);
    border-radius: 24px;

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    position: sticky;
    top: 15px;
    z-index: 100;
}

.brand {
    direction: ltr;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 21px;
    font-weight: 800;
}

.brand-persian {
    direction: rtl;
    font-size: 12px;
    color: var(--text-soft);
}

.nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav a {
    color: var(--text-soft);
    font-size: 14px;
    transition: 0.25s;
}

.nav a:hover {
    color: white;
}

.login-button {
    padding: 10px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white !important;
    box-shadow: 0 10px 30px rgba(91, 69, 220, 0.3);
}

/* ================= HERO ================= */

.hero {
    width: min(1180px, calc(100% - 40px));
    min-height: 670px;
    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 70px;
}

.hero-content {
    animation: fadeUp 0.9s ease;
}

.hero-badge,
.section-title > span,
.section-small-title {
    display: inline-block;
    color: #d9d2ff;
    background: rgba(124, 58, 237, 0.14);
    border: 1px solid rgba(168, 85, 247, 0.25);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 13px;
}

.hero-badge span {
    width: 7px;
    height: 7px;
    display: inline-block;
    border-radius: 50%;
    background: #a855f7;
    margin-left: 7px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 70px);
    line-height: 1.35;
    margin: 24px 0;
    font-weight: 900;
}

.hero h1 span {
    background: linear-gradient(135deg, #d8b4fe, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    color: var(--text-soft);
    line-height: 2.1;
    max-width: 560px;
    font-size: 16px;
}

.hero-buttons {
    margin-top: 35px;
    display: flex;
    gap: 14px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-button {
    background: linear-gradient(135deg, var(--purple), var(--blue));
    color: white;
    box-shadow: 0 12px 35px rgba(99, 72, 225, 0.3);
}

.primary-button:hover {
    transform: translateY(-4px);
}

.secondary-button {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.11);
}

/* ================= HERO VISUAL ================= */

.hero-visual {
    height: 480px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-card {
    width: min(380px, 90%);
    padding: 25px;
    border-radius: 32px;

    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    text-align: center;
    position: relative;
    z-index: 2;

    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);

    animation: floating 5s ease-in-out infinite;
}

.card-top {
    display: flex;
    gap: 7px;
}

.card-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.purple {
    background: #a855f7;
}

.blue {
    background: #38bdf8;
}

.white {
    background: white;
}

.ai-icon {
    width: 120px;
    height: 120px;
    margin: 50px auto 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 60px;

    border-radius: 35px;

    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.45),
        rgba(59, 130, 246, 0.35)
    );

    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-card h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.hero-card p {
    color: var(--text-soft);
    line-height: 1.9;
}

.glass-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.orb-one {
    width: 230px;
    height: 230px;
    background: rgba(124, 58, 237, 0.4);
    top: 20px;
    right: 0;
}

.orb-two {
    width: 180px;
    height: 180px;
    background: rgba(37, 99, 235, 0.35);
    bottom: 10px;
    left: 0;
}

/* ================= GENERAL SECTIONS ================= */

.services,
.why-section,
.steps-section,
.faq-section,
.cta-section {
    width: min(1180px, calc(100% - 40px));
    margin: 120px auto;
}

.section-title {
    text-align: center;
    margin-bottom: 55px;
}

.section-title h2 {
    font-size: clamp(30px, 4vw, 46px);
    margin: 18px 0;
}

.section-title p {
    color: var(--text-soft);
    line-height: 2;
}

/* ================= SERVICES ================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.service-card {
    min-height: 280px;
    padding: 25px 20px;

    display: flex;
    flex-direction: column;

    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 25px;

    backdrop-filter: blur(15px);

    transition: 0.35s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(168, 85, 247, 0.55);
    background: rgba(255, 255, 255, 0.11);
}

.service-icon {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 17px;
    font-size: 27px;

    background: linear-gradient(
        135deg,
        rgba(168, 85, 247, 0.25),
        rgba(37, 99, 235, 0.25)
    );
}

.service-card h3 {
    margin: 25px 0 12px;
    font-size: 18px;
}

.service-card p {
    color: var(--text-soft);
    font-size: 13px;
    line-height: 2;
    flex-grow: 1;
}

.service-card span {
    color: #c4b5fd;
    margin-top: 20px;
    font-size: 13px;
}

/* ================= WHY ================= */

.why-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 70px;
    align-items: center;
}

.why-text h2 {
    font-size: clamp(32px, 4vw, 50px);
    margin: 20px 0;
    line-height: 1.6;
}

.why-text h2 span {
    color: #b9a5ff;
}

.why-text p {
    color: var(--text-soft);
    line-height: 2.2;
    margin-top: 18px;
}

.why-card {
    padding: 35px;
    border-radius: 30px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

.why-card-icon {
    width: 75px;
    height: 75px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 22px;

    font-weight: 900;
    font-size: 22px;

    background: linear-gradient(135deg, var(--purple), var(--blue));
}

.why-line {
    width: 2px;
    height: 25px;
    margin: 15px 0;
    background: linear-gradient(var(--purple), transparent);
}

.why-step {
    padding: 15px 0;
    display: flex;
    gap: 14px;
    align-items: center;
    color: #dce3ff;
}

.why-step span {
    color: #a78bfa;
    font-weight: 800;
}

/* ================= STEPS ================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    padding: 28px;

    border-radius: 25px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.step-number {
    font-size: 38px;
    font-weight: 900;

    background: linear-gradient(135deg, #c084fc, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.step-card h3 {
    margin: 20px 0 10px;
}

.step-card p {
    color: var(--text-soft);
    line-height: 2;
    font-size: 14px;
}

/* ================= FAQ ================= */

.faq-list {
    max-width: 850px;
    margin: auto;
}

.faq-list details {
    margin-bottom: 15px;
    padding: 20px 25px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);

    transition: 0.3s;
}

.faq-list details[open] {
    background: rgba(255, 255, 255, 0.09);
}

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
}

.faq-list p {
    color: var(--text-soft);
    line-height: 2;
    margin-top: 20px;
    font-size: 14px;
}

/* ================= CTA ================= */

.cta-box {
    padding: 45px;
    border-radius: 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.25),
            rgba(37, 99, 235, 0.2)
        );

    border: 1px solid var(--border);
}

.cta-box span {
    color: #a5b4fc;
    font-size: 13px;
}

.cta-box h2 {
    margin-top: 10px;
    font-size: clamp(25px, 3vw, 38px);
}

/* ================= FOOTER ================= */

.footer {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto 25px;

    padding: 40px;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.footer-brand h2 {
    font-size: 22px;
}

.footer-brand p {
    color: var(--text-soft);
    font-size: 13px;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    text-align: center;

    color: #7f87a7;
    font-size: 12px;
}

/* ================= ANIMATIONS ================= */

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* ================= RESPONSIVE ================= */

@media (max-width: 1050px) {

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        gap: 30px;
    }

}

@media (max-width: 850px) {

    .header {
        height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .nav {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 70px 0;
        text-align: center;
    }

    .hero p {
        margin: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .header,
    .hero,
    .services,
    .why-section,
    .steps-section,
    .faq-section,
    .cta-section,
    .footer {
        width: min(100% - 24px, 1180px);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-visual {
        height: 330px;
    }

    .hero-card {
        padding: 20px;
    }

    .cta-box,
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer {
        padding: 25px;
    }

    .footer-links {
        gap: 15px;
    }

}

.photo-order-options {
    margin-top: 20px;
}

.photo-order-options label {
    display: block;
    margin-bottom: 10px;
    color: #eef2ff;
    font-size: 14px;
}

.photo-order-options select {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    margin-bottom: 25px;

    background: rgba(255, 255, 255, 0.08);
    color: white;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;

    outline: none;

    font-family: Vazirmatn, sans-serif;
}

.photo-order-options select option {
    background: #12172b;
    color: white;
}

.reference-section {
    padding: 20px;
    margin-top: 10px;

    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(168, 85, 247, 0.45);
    border-radius: 18px;
}

.optional-text {
    color: #a78bfa;
    font-size: 12px;
}

.reference-description {
    color: #b9c0df;
    font-size: 13px;
    line-height: 2;
    margin-bottom: 15px;
}

.reference-section input[type="file"] {
    width: 100%;
    padding: 12px;
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);
    color: #d8b4fe;
}

#imageCountText {
    margin-top: 12px;
    color: #b9c0df;
    font-size: 12px;
}

.final-price-box {
    margin-top: 25px;
    padding: 20px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 18px;

    background: linear-gradient(
        135deg,
        rgba(124, 58, 237, 0.18),
        rgba(37, 99, 235, 0.15)
    );

    border: 1px solid rgba(255, 255, 255, 0.12);
}

.final-price-box span {
    color: #cbd5ff;
    font-size: 14px;
}

.final-price-box strong {
    color: white;
    font-size: 18px;
}

/* =========================================
   PHOOSH - CHARACTER BUTTONS
   ========================================= */

.character-buttons {
    display: flex;
    gap: 12px;

    margin-top: 15px;
    margin-bottom: 25px;
}


.character-choice {
    flex: 1;

    min-height: 55px;

    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.06);

    color: rgba(255, 255, 255, 0.85);

    font-family: Vazirmatn, sans-serif;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border 0.25s ease,
        box-shadow 0.25s ease;
}


/* حالت هاور */

.character-choice:hover {
    transform: translateY(-3px);

    border-color:
        rgba(168, 85, 247, 0.7);

    background:
        rgba(124, 58, 237, 0.12);

    box-shadow:
        0 10px 30px
        rgba(124, 58, 237, 0.18);
}


/* دکمه انتخاب‌شده */

.character-choice.active {
    color: white;

    border-color:
        rgba(196, 181, 253, 0.8);

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.7),
            rgba(37, 99, 235, 0.65)
        );

    box-shadow:
        0 10px 35px
        rgba(99, 102, 241, 0.35);
}


/* حالت کلیک */

.character-choice:active {
    transform: scale(0.97);
}


/* موبایل */

@media (max-width: 500px) {

    .character-buttons {
        gap: 8px;
    }


    .character-choice {
        min-height: 50px;
        font-size: 14px;
    }

}

/* =========================================
   PHOOSH - GLASS FORM CONTROLS
   استایل شیشه‌ای تمام گزینه‌های فرم
   ========================================= */


/* -------------------------
   SELECT
------------------------- */

#orderModal select,
.photo-order-options select,
.video-order-options select {
    width: 100%;

    min-height: 54px;

    padding: 0 18px;

    appearance: none;
    -webkit-appearance: none;

    background:
        rgba(255, 255, 255, 0.08);

    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 16px;

    outline: none;

    font-family:
        Vazirmatn,
        sans-serif;

    font-size: 14px;

    cursor: pointer;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* هاور SELECT */

#orderModal select:hover,
.photo-order-options select:hover,
.video-order-options select:hover {
    background:
        rgba(124, 58, 237, 0.12);

    border-color:
        rgba(168, 85, 247, 0.7);
}


/* حالت انتخاب */

#orderModal select:focus,
.photo-order-options select:focus,
.video-order-options select:focus {
    border-color:
        rgba(124, 58, 237, 0.9);

    box-shadow:
        0 0 0 3px
        rgba(124, 58, 237, 0.12);
}


/* گزینه‌های داخل SELECT */

#orderModal select option {
    background: #171630;
    color: white;
}


/* -------------------------
   FILE INPUT
------------------------- */

#orderModal input[type="file"],
.reference-section input[type="file"],
.character-section input[type="file"] {
    width: 100%;

    padding: 8px;

    background:
        rgba(255, 255, 255, 0.05);

    color:
        rgba(255, 255, 255, 0.7);

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 16px;

    font-family:
        Vazirmatn,
        sans-serif;

    cursor: pointer;

    box-sizing: border-box;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transition:
        border-color 0.25s ease,
        background 0.25s ease;
}


/* هاور بخش فایل */

#orderModal input[type="file"]:hover,
.reference-section input[type="file"]:hover,
.character-section input[type="file"]:hover {
    background:
        rgba(124, 58, 237, 0.08);

    border-color:
        rgba(168, 85, 247, 0.6);
}


/* -------------------------
   دکمه Choose File
------------------------- */

#orderModal input[type="file"]::file-selector-button,
.reference-section input[type="file"]::file-selector-button,
.character-section input[type="file"]::file-selector-button {
    margin-left: 12px;

    padding:
        11px 20px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.75),
            rgba(37, 99, 235, 0.75)
        );

    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    border-radius: 12px;

    font-family:
        Vazirmatn,
        sans-serif;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}


/* هاور دکمه انتخاب فایل */

#orderModal input[type="file"]::file-selector-button:hover,
.reference-section input[type="file"]::file-selector-button:hover,
.character-section input[type="file"]::file-selector-button:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 8px 25px
        rgba(99, 102, 241, 0.35);
}


/* -------------------------
   FIREFOX SUPPORT
------------------------- */

#orderModal input[type="file"]::-moz-file-upload-button {
    padding:
        11px 20px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    color: white;

    border: none;

    border-radius: 12px;

    font-family:
        Vazirmatn,
        sans-serif;

    cursor: pointer;
}


/* -------------------------
   TEXTAREA
------------------------- */

#orderModal textarea,
.video-order-options textarea {
    width: 100%;

    min-height: 140px;

    padding: 18px;

    box-sizing: border-box;

    resize: vertical;

    background:
        rgba(255, 255, 255, 0.06);

    color: white;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 18px;

    outline: none;

    font-family:
        Vazirmatn,
        sans-serif;

    font-size: 14px;

    line-height: 2;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


#orderModal textarea:focus,
.video-order-options textarea:focus {
    border-color:
        rgba(124, 58, 237, 0.8);

    box-shadow:
        0 0 0 3px
        rgba(124, 58, 237, 0.12);
}


#orderModal textarea::placeholder,
.video-order-options textarea::placeholder {
    color:
        rgba(255, 255, 255, 0.4);
}

/* =========================================
   PHOOSH - SELECTED FILES DESIGN
   ========================================= */

#selectedImagesList,
#selectedCharacterImages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}


/* هر فایل انتخاب‌شده */

.selected-image-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 12px 14px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid
        rgba(255, 255, 255, 0.13);

    border-radius: 16px;

    color:
        rgba(255, 255, 255, 0.85);

    font-family:
        Vazirmatn,
        sans-serif;

    font-size: 13px;

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}


/* افکت هاور */

.selected-image-item:hover {
    transform:
        translateY(-2px);

    background:
        rgba(124, 58, 237, 0.08);

    border-color:
        rgba(139, 92, 246, 0.45);
}


/* نام فایل */

.selected-image-item span {
    flex: 1;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


/* =========================================
   REMOVE BUTTON
   ========================================= */

.remove-image-button,
.remove-character-image {
    min-width: 70px;

    padding: 9px 15px;

    border:
        1px solid
        rgba(248, 113, 113, 0.3);

    border-radius: 12px;

    background:
        rgba(239, 68, 68, 0.10);

    color:
        rgb(252, 165, 165);

    font-family:
        Vazirmatn,
        sans-serif;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* هاور دکمه حذف */

.remove-image-button:hover,
.remove-character-image:hover {
    transform:
        translateY(-2px);

    background:
        rgba(239, 68, 68, 0.2);

    border-color:
        rgba(248, 113, 113, 0.7);

    box-shadow:
        0 8px 25px
        rgba(239, 68, 68, 0.15);
}


/* حالت کلیک */

.remove-image-button:active,
.remove-character-image:active {
    transform:
        scale(0.95);
}


/* موبایل */

@media (max-width: 500px) {

    .selected-image-item {
        gap: 8px;
        padding: 10px;
    }


    .remove-image-button,
    .remove-character-image {
        min-width: 60px;
        padding: 8px 10px;
    }

}

/* =========================================
   PHOOSH - FIX IMAGE PREVIEW SIZE
   ========================================= */


/* کارت هر تصویر */

.selected-image-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 100px;

    padding: 12px;

    box-sizing: border-box;

    overflow: hidden;
}


/* خود تصویر پیش‌نمایش */

.selected-image-item img,
.image-preview img,
.reference-preview img,
.preview-image {
    width: 85px !important;
    height: 85px !important;

    min-width: 85px !important;
    max-width: 85px !important;

    min-height: 85px !important;
    max-height: 85px !important;

    object-fit: cover !important;

    border-radius: 14px;

    display: block;

    border: 1px solid rgba(255, 255, 255, 0.2);

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.2);
}


/* اطلاعات و نام تصویر */

.selected-image-item span,
.selected-image-item .file-name {
    flex: 1;

    min-width: 0;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* دکمه حذف */

.selected-image-item .remove-image-button,
.selected-image-item .remove-character-image {
    flex-shrink: 0;

    position: static !important;

    min-width: 70px;

    padding: 9px 14px;

    margin: 0;

    z-index: 10;
}


/* اگر عکس داخل یک div جدا ساخته شده باشد */

.image-preview,
.reference-preview {
    width: 100%;
    height: auto;

    display: flex;

    align-items: center;

    gap: 12px;

    overflow: hidden;
}


/* موبایل */

@media (max-width: 600px) {

    .selected-image-item img,
    .image-preview img,
    .reference-preview img,
    .preview-image {
        width: 65px !important;
        height: 65px !important;

        min-width: 65px !important;
        max-width: 65px !important;

        min-height: 65px !important;
        max-height: 65px !important;
    }

    .selected-image-item {
        min-height: 85px;
    }

}

/* =========================================
   PHOOSH - PAYMENT & RECEIPT UI
   زیباتر کردن بخش تایید سفارش و رسید پرداخت
========================================= */


/* =========================
   دکمه تایید و ادامه
========================= */

#confirmOrderButton,
.confirm-order-button,
.order-confirm-button {
    background: linear-gradient(
        135deg,
        #7c3aed,
        #2563eb
    ) !important;

    border: 1px solid rgba(255, 255, 255, 0.18) !important;

    border-radius: 16px !important;

    color: white !important;

    font-family: Vazirmatn, sans-serif !important;

    font-size: 15px !important;

    font-weight: 700 !important;

    box-shadow:
        0 10px 30px rgba(99, 72, 225, 0.25),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        filter 0.3s ease !important;
}


#confirmOrderButton:hover,
.confirm-order-button:hover,
.order-confirm-button:hover {
    transform: translateY(-3px);

    filter: brightness(1.08);

    box-shadow:
        0 18px 40px rgba(99, 72, 225, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.18);
}


#confirmOrderButton:active,
.confirm-order-button:active,
.order-confirm-button:active {
    transform: translateY(0);
}


/* =========================
   دکمه بازگشت و ویرایش
========================= */

#backToEditButton,
.back-edit-button,
.edit-order-button {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.08),
            rgba(255, 255, 255, 0.03)
        ) !important;

    border:
        1px solid rgba(255, 255, 255, 0.18) !important;

    border-radius: 16px !important;

    color: #e9edff !important;

    font-family: Vazirmatn, sans-serif !important;

    font-size: 15px !important;

    font-weight: 600 !important;

    backdrop-filter: blur(12px);

    transition:
        transform 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease !important;
}


#backToEditButton:hover,
.back-edit-button:hover,
.edit-order-button:hover {
    transform: translateY(-3px);

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.2),
            rgba(37, 99, 235, 0.12)
        ) !important;

    border-color:
        rgba(168, 85, 247, 0.5) !important;
}


/* =========================================
   بخش آپلود رسید پرداخت
========================================= */

.payment-receipt-section,
.receipt-upload-section {
    margin-top: 25px;

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.12),
            rgba(37, 99, 235, 0.08)
        );

    border:
        1px dashed rgba(168, 85, 247, 0.55);

    border-radius: 22px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06);

    transition: 0.3s ease;
}


.payment-receipt-section:hover,
.receipt-upload-section:hover {
    border-color:
        rgba(96, 165, 250, 0.7);

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.16),
            rgba(37, 99, 235, 0.12)
        );
}


/* عنوان رسید */

.payment-receipt-section label,
.receipt-upload-section label {
    display: block;

    margin-bottom: 10px;

    color: #f1f3ff;

    font-size: 16px;

    font-weight: 700;
}


/* توضیح رسید */

.payment-receipt-section p,
.receipt-upload-section p {
    color: #b9c0df;

    font-size: 13px;

    line-height: 2;

    margin-bottom: 18px;
}


/* =========================
   استایل فایل آپلود
========================= */

#paymentReceipt,
#receiptUpload,
input[type="file"].receipt-input {
    width: 100%;

    padding: 8px;

    background:
        rgba(255, 255, 255, 0.06);

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius: 16px;

    color: #dbe4ff;

    font-family: Vazirmatn, sans-serif;

    cursor: pointer;

    transition: 0.3s ease;
}


#paymentReceipt:hover,
#receiptUpload:hover,
input[type="file"].receipt-input:hover {
    border-color:
        rgba(168, 85, 247, 0.55);

    background:
        rgba(124, 58, 237, 0.1);
}


/* =========================
   دکمه Choose File
========================= */

#paymentReceipt::file-selector-button,
#receiptUpload::file-selector-button,
input[type="file"].receipt-input::file-selector-button {
    margin-left: 12px;

    padding: 12px 20px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    color: white;

    font-family: Vazirmatn, sans-serif;

    font-weight: 600;

    cursor: pointer;

    transition: 0.3s ease;
}


#paymentReceipt::file-selector-button:hover,
#receiptUpload::file-selector-button:hover,
input[type="file"].receipt-input::file-selector-button:hover {
    filter: brightness(1.12);

    box-shadow:
        0 8px 20px rgba(99, 72, 225, 0.4);
}


/* =========================
   باکس وضعیت فایل
========================= */

#receiptStatus,
.receipt-status {
    min-height: 70px;

    margin-top: 15px;

    padding: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.05);

    border:
        1px solid rgba(255, 255, 255, 0.08);

    color: #aeb8dc;

    font-size: 13px;

    transition: 0.3s ease;
}


/* وقتی رسید انتخاب شد */

.receipt-uploaded,
#receiptStatus.has-file {
    color: #d8b4fe;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.16),
            rgba(37, 99, 235, 0.1)
        );

    border-color:
        rgba(168, 85, 247, 0.35);
}


/* =========================
   ریسپانسیو موبایل
========================= */

@media (max-width: 600px) {

    .payment-receipt-section,
    .receipt-upload-section {
        padding: 18px;
        border-radius: 18px;
    }

    #paymentReceipt,
    #receiptUpload,
    input[type="file"].receipt-input {
        font-size: 12px;
    }

}

/* =========================================
   PHOOSH - CUSTOM SUCCESS MESSAGE
========================================= */

#phooshCustomMessage {
    position: fixed;

    inset: 0;

    z-index: 99999;
}


.phoosh-message-overlay {
    width: 100%;
    height: 100%;

    padding: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        rgba(3, 6, 20, 0.75);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    animation:
        phooshMessageFade 0.3s ease;
}


.phoosh-message-box {
    width: min(100%, 420px);

    padding: 35px;

    text-align: center;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            rgba(124, 58, 237, 0.3),
            rgba(37, 99, 235, 0.2)
        );

    border:
        1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, 0.5);

    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);

    animation:
        phooshMessageAppear 0.35s ease;
}


.phoosh-message-icon {
    width: 65px;
    height: 65px;

    margin:
        0 auto 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.2);

    box-shadow:
        0 10px 35px
        rgba(124, 58, 237, 0.4);

    color: white;

    font-size: 30px;

    font-weight: bold;
}


.phoosh-message-box h3 {
    margin-bottom: 15px;

    color: white;

    font-size: 25px;
}


.phoosh-message-box p {
    margin-bottom: 25px;

    color: #cbd5ff;

    font-size: 14px;

    line-height: 2.1;
}


#closePhooshMessage {
    width: 100%;
    height: 54px;

    border: none;
    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #7c3aed,
            #2563eb
        );

    color: white;

    font-family:
        Vazirmatn, sans-serif;

    font-size: 15px;

    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}


#closePhooshMessage:hover {
    transform:
        translateY(-3px);

    box-shadow:
        0 15px 35px
        rgba(99, 72, 225, 0.4);
}


@keyframes phooshMessageFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}


@keyframes phooshMessageAppear {

    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(0.95);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }

}

