@font-face{font-family:'Vazirmatn';src:url('/assets/fonts/Vazir-Bold.woff2') format('woff2');font-weight:700;font-style:normal;font-display:swap}*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}html{overflow-x:hidden;scroll-behavior:smooth}body{font-family:'Vazirmatn',Arial,sans-serif;background:linear-gradient(135deg,#f8fafc 0%,#e2e8f0 100%);min-height:100vh;font-size:16px;line-height:1.6;overflow-x:hidden}*{scrollbar-width:thin;scrollbar-color:#1E355F transparent}::-webkit-scrollbar{width:8px;background:transparent}::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#1E355F,#2a4a7a);border-radius:10px;transition:background 0.3s ease}::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#163048,#1f3d66)}.container{max-width:1200px;margin:0 auto;padding:0 20px}
@font-face {
    font-family: 'Vazir';
    src: url('/assets/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-text {
    animation: fadeInUp 1s ease-out;
}
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-title .highlight {
    color: #1E355F;
    position: relative;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: #64748b !important;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.cta-buttons {
    justify-content: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}
.btn-primary {
    background: linear-gradient(135deg, #1E355F 0%, #163048 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(30, 53, 95, 0.2);
    position: relative;
    overflow: hidden;
}
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 53, 95, 0.4);
}
.btn-primary:hover::before {
    left: 100%;
}
.btn-primary.large {
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
}
.btn-secondary {
    background: transparent;
    color: #475569;
    padding: 1rem 2rem;
    border: 2px solid #cbd5e1;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}
.btn-secondary:hover {
    border-color: #1E355F;
    color: #1E355F;
    transform: translateY(-2px);
}
.trust-indicators {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}
.trust-icon {
    width: 20px;
    height: 20px;
    color: #A8E10C;
}
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 1s ease-out;
}
.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
    will-change: transform;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 1.5rem;
    padding: 1rem;
    position: relative;
    overflow: hidden;
}
.chat-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    background: #a6ce39;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    animation: pulse 2s infinite;
}

.chat-info h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.chat-status {
    font-size: 0.8rem;
    color: #A8E10C;
}

.chat-messages {
    height: 400px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.chat-messages::-webkit-scrollbar {
    display: none;
}

.message {
    margin-bottom: 1rem;
    animation: messageSlideIn 0.5s ease-out;
	font-family: 'Vazir', sans-serif;
	font-weight: normal;
}

.message.bot {
    text-align: right;
}

.message.user {
    text-align: left;
}

.message-bubble {
    display: inline-block;
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.message.bot .message-bubble {
    background: #e2e8f0;
    color: #334155;
}

.message.user .message-bubble {
    background: #1E355F;
    color: white;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #e2e8f0;
    border-radius: 1rem;
    max-width: fit-content;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
}

.dot {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typingDots 1.4s infinite;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ===============================================
   المان‌های شناور
   =============================================== */
.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    animation: float 4s ease-in-out infinite;
    will-change: transform;
}

.floating-element:nth-child(1) {
    top: 10%;
    right: -10%;
    animation-delay: -1s;
}

.floating-element:nth-child(2) {
    bottom: 20%;
    left: -15%;
    animation-delay: -2s;
}

.floating-stats {
    position: absolute;
    z-index: 10;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    animation: floatUpDown 3s ease-in-out infinite;
    will-change: transform;
}

.stat-card.card1 {
    position: absolute;
    top: 50px;
    left: -50px;
    animation-delay: 0s;
}

.stat-card.card2 {
    position: absolute;
    bottom: 100px;
    right: -80px;
    animation-delay: 1.5s;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E355F;
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.success-metrics {
    position: absolute;
    top: 20%;
    left: -100px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    animation: slideInLeft 1s ease-out 1s both;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.metric-icon {
    width: 20px;
    height: 20px;
    color: #A8E10C;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: #64748b;
    text-align: center;
    animation: bounce 2s infinite;
}

/* ===============================================
   هدرهای بخش‌ها
   =============================================== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    color: #1e293b;
    text-align: center;
    margin-bottom: 1rem;
}

.section-title .highlight {
    color: #1E355F;
    position: relative;
}

.section-title .highlight::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background: #1E355F;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.section-title .highlight:hover::after {
    transform: scaleX(1);
}

.section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* ===============================================
   بخش ویژگی‌ها
   =============================================== */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.features-page {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    text-align: center;
    will-change: transform;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1E355F;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #475569;
    line-height: 1.6;
}

/* ===============================================
   بخش نظرات
   =============================================== */
.success-stories {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1E355F 0%, #2a4a7a 100%);
    color: white;
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonials-section {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    padding-top: 6rem;
}

.carousel-container {
    display: flex;
    overflow: hidden;
    position: relative;
    height: 400px;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    align-items: center;
}

.carousel-track {
    display: flex;
    gap: 20px;
    animation: infiniteScroll 25s linear infinite;
    will-change: transform;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.testimonial-card {
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: right;
    will-change: transform;
}

.testimonial-card:hover {
    border-color: transparent;
    box-shadow: 0 0 0 3px transparent, 0 0 8px 3px rgba(30, 53, 95, 0.7), 0 0 15px 3px rgba(168, 225, 12, 0.4), 0 0 25px 3px rgba(30, 53, 95, 0.3);
    transform: scale(1.05);
}

.testimonial-card.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.testimonial-card.carousel-card {
    display: block;
    flex: 0 0 300px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: right;
}

.testimonial-card.carousel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E355F, #2a4a7a);
}

.testimonial-card.carousel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.quote-icon {
    font-size: 2rem;
    color: black;
    margin-bottom: 0.5rem;
}

.testimonial-content p {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.testimonial-text {
    font-family: 'Vazirmatn', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
    font-style: italic;
}

/* ===============================================
   اطلاعات کاربر
   =============================================== */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, rgba(30, 53, 95, 0.2), rgba(30, 53, 95, 0.3));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.author-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-info span {
    opacity: 0.8;
    font-size: 0.9rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: flex-end;
    flex-direction: row-reverse;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #1E355F, #2a4a7a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    overflow: hidden;
    font-size: 1.2rem;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.user-details {
    text-align: right;
}

.user-name {
    text-align: right;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 2px;
}

.user-role {
    font-size: 0.9rem;
    color: #64748b;
}

.rating {
    display: flex;
    gap: 2px;
    margin-bottom: 1rem;
    justify-content: flex-end;
}

.star {
    color: #fbbf24;
    font-size: 1.2rem;
}

/* ===============================================
   آمارها و ناوبری
   =============================================== */
.testimonial-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.navigation-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.navigation-dots .dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navigation-dots .dot.active {
    background: white;
    transform: scale(1.2);
}

.pricing-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.pricing-toggle {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 50px;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: inherit;
}

.toggle-btn.active {
    background: #1E355F;
    color: white;
}

.discount {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    font-size: 0.7rem;
    margin-right: 0.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border: 2px solid #1E355F;
    transform: scale(1.05);
}

.plan-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: #A8E10C;
    color: #1E355F;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.featured-badge {
    background: linear-gradient(45deg, #1E355F, #2a4a7a);
}

.pricing-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-align: center;
}

.price {
    text-align: center;
    margin-bottom: 2rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1E355F;
}

.currency, .period {
    font-size: 1rem;
    color: #64748b;
}

.hidden {
    display: none;
}

.features-list {
    list-style: none;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-list li::before {
    content: '✓';
    color: #A8E10C;
    font-weight: bold;
}

.plan-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: #1E355F;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-family: inherit;
    font-size: 1rem;
}

.plan-btn:hover {
    background: #163048;
    transform: translateY(-2px);
}

.featured-btn {
    background: linear-gradient(45deg, #1E355F, #2a4a7a);
}
.feature-comparison {
    margin: 4rem 0;
    text-align: center;
}

.comparison-boxes {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.before-box, .after-box {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 1rem;
    width: 300px;
    min-height: 200px;
}

.before-box h3, .after-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.before-box ul, .after-box ul {
    list-style: disc inside;
    text-align: right;
    color: #475569;
    line-height: 1.6;
}

.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.9;
}

.check {
    color: #A8E10C;
    font-weight: bold;
}
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    will-change: transform;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(30, 53, 95, 0.3);
    border-radius: 50%;
    animation: particleFloat 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes messageSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes typingDots {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes infiniteScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(+50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* بهینه‌سازی برای چاپ */
@media print {
    .hero-visual,
    .floating-element,
    .particles {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-title,
    .hero-title {
        color: black;
    }
}
#backToTop {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(30, 53, 150, 0.15); /* شفاف با رنگ آبی ملایم */
  backdrop-filter: blur(15px) saturate(180%);
  -webkit-backdrop-filter: blur(15px) saturate(180%);
  color: #fff;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  box-shadow:
    0 8px 20px rgba(0, 50, 150, 0.2),   /* سایه نرم سه‌بعدی */
    inset 0 0 10px rgba(255, 255, 255, 0.3); /* انعکاس داخلی */
  transition: all 0.35s ease;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

#backToTop::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 70%);
  opacity: 0.7;
  pointer-events: none;
}

#backToTop:hover {
  transform: translateX(-50%) scale(1.15);
  background: rgba(30, 53, 150, 0.25); /* کمی برجسته تر هنگام هاور */
  box-shadow:
    0 10px 25px rgba(0, 50, 150, 0.35),
    inset 0 0 15px rgba(255, 255, 255, 0.5);
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  animation: fadeUp 0.5s ease forwards;
}

@keyframes fadeUp {
  from {
    transform: translate(-50%, 30px);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}
.chat-popup-notification {
   position: fixed;
   bottom: 100px;
   right: 90px;
   width: 320px;
   background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
   backdrop-filter: blur(20px);
   border-radius: 20px;
   padding: 20px;
   box-shadow: 
       0 25px 50px rgba(30, 53, 95, 0.15),
       inset 0 1px 0 rgba(255, 255, 255, 0.8);
   border: 2px solid #A8E10C;
   z-index: 9998;
   transform: translateX(100%);
   opacity: 0;
   transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
   animation: slideInPopup 0.8s ease-out 2s forwards;
}

.chat-popup-notification.show {
   transform: translateX(0);
   opacity: 1;
}

.popup-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 15px;
}

.popup-title {
   font-size: 18px;
   font-weight: 700;
   color: #1E355F;
   display: flex;
   align-items: center;
   gap: 8px;
}

.popup-close {
   background: none;
   border: none;
   font-size: 20px;
   color: #64748b;
   cursor: pointer;
   width: 30px;
   height: 30px;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s ease;
}

.popup-close:hover {
   background: rgba(231, 66, 102, 0.1);
   color: #e74266;
   transform: rotate(90deg);
}

.popup-content {
   margin-bottom: 20px;
}

.popup-text {
   color: #475569;
   line-height: 1.6;
   font-size: 15px;
   margin-bottom: 15px;
}

.popup-highlight {
   background: linear-gradient(135deg, #A8E10C, #95ca0b);
   color: #1E355F;
   padding: 12px 16px;
   border-radius: 12px;
   font-weight: 600;
   font-size: 16px;
   text-align: center;
   margin-bottom: 15px;
   animation: pulse 2s infinite;
}

.popup-actions {
   display: flex;
   gap: 10px;
   flex-direction: column;
}

.popup-btn {
   padding: 12px 20px;
   border: none;
   border-radius: 12px;
   font-weight: 600;
   font-size: 14px;
   cursor: pointer;
   transition: all 0.3s ease;
   font-family: inherit;
}

.popup-btn-primary {
   background: linear-gradient(145deg, #1E355F, #162a4c);
   color: white;
   box-shadow: 0 4px 15px rgba(30, 53, 95, 0.3);
}

.popup-btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 6px 20px rgba(30, 53, 95, 0.4);
}

.popup-btn-secondary {
   background: transparent;
   color: #1E355F;
   border: 2px solid #e2e8f0;
}

.popup-btn-secondary:hover {
   border-color: #A8E10C;
   background: rgba(168, 225, 12, 0.1);
}

/* انیمیشن‌ها */
@keyframes slideInPopup {
   0% {
       transform: translateX(100%);
       opacity: 0;
   }
   100% {
       transform: translateX(0);
       opacity: 1;
   }
}

@keyframes pulse {
   0%, 100% {
       transform: scale(1);
   }
   50% {
       transform: scale(1.02);
   }
}

/* برای موبایل */
@media (max-width: 768px) {
   .chat-popup-notification {
       width: calc(100vw - 40px);
       right: 20px;
       bottom: 80px;
   }
}

/* حالت تاریک */
@media (prefers-color-scheme: dark) {
   .chat-popup-notification {
       background: linear-gradient(145deg, rgba(30, 40, 75, 0.95), rgba(30, 53, 95, 0.9));
       border-color: rgba(168, 225, 12, 0.6);
   }
   
   .popup-title {
       color: #ffffff;
   }
   
   .popup-text {
       color: #e2e8f0;
   }
}