/* =================================================================== */
/* ۱. استایل‌های عمومی (سایت کامل) */
/* =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&display=swap');

html, body {
    height: auto;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa; 
    color: #212529;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* محتوای اصلی و فوتر را به یک لایه بالاتر می‌آوریم */
.main-content-area, footer {
    position: relative;
    z-index: 2;
}

footer {
    background-color: #1c1e21;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid #3a3d40;
    /* ✅ تغییر: افزایش فاصله داخلی برای ظاهر بهتر */
    padding: 4rem 1rem;
}

footer h5 { color: #ffffff; font-weight: bold; margin-bottom: 1rem; }
footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color 0.2s ease-in-out; }
footer a:hover { color: #ffffff; }


/* =================================================================== */
/* ۲. استایل‌های صفحه اصلی (با بک‌گراند حبابی) */
/* =================================================================== */

body.homepage-body {
    background: linear-gradient(40deg, rgb(108, 0, 162), rgb(0, 17, 82));
    text-align: center;
}

/* ✅ افزودن: ایجاد فاصله بین محتوای اصلی و فوتر در صفحه خانه */
body.homepage-body .main-content-area {
    padding-bottom: 6rem; /* تقریبا معادل 96 پیکسل */
}

/* --- کدهای انیمیشن --- */
:root {
    --color-bg1: rgb(108, 0, 162); --color-bg2: rgb(0, 17, 82);
    --color1: 18, 113, 255; --color2: 221, 74, 255; --color3: 100, 220, 255;
    --color4: 200, 50, 50; --color5: 180, 180, 50; --color-interactive: 140, 100, 255;
    --circle-size: 80%; --blending: hard-light;
}
@keyframes moveInCircle { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes moveVertical { 0% { transform: translateY(-50%); } 50% { transform: translateY(50%); } 100% { transform: translateY(-50%); } }
@keyframes moveHorizontal { 0% { transform: translateX(-50%) translateY(-10%); } 50% { transform: translateX(50%) translateY(10%); } 100% { transform: translateX(-50%) translateY(-10%); } }

.gradient-bg {
    width: 100vw; height: 100vh; position: fixed;
    overflow: hidden;
    background: linear-gradient(40deg, var(--color-bg1), var(--color-bg2));
    top: 0; left: 0;
    z-index: 1; /* انیمیشن را به لایه زیرین می‌برد */
}
.gradient-bg svg { display: none; }
.gradient-bg .gradients-container { filter: url(#goo) blur(40px); width: 100%; height: 100%; }
.gradient-bg .g1, .gradient-bg .g2, .gradient-bg .g3, .gradient-bg .g4, .gradient-bg .g5, .gradient-bg .interactive { position: absolute; mix-blend-mode: var(--blending); }
.gradient-bg .g1 { background: radial-gradient(circle at center, rgba(var(--color1), 0.8) 0, rgba(var(--color1), 0) 50%) no-repeat; width: var(--circle-size); height: var(--circle-size); top: calc(50% - var(--circle-size) / 2); left: calc(50% - var(--circle-size) / 2); transform-origin: center center; animation: moveVertical 30s ease infinite; opacity: 1; }
.gradient-bg .g2 { background: radial-gradient(circle at center, rgba(var(--color2), 0.8) 0, rgba(var(--color2), 0) 50%) no-repeat; width: var(--circle-size); height: var(--circle-size); top: calc(50% - var(--circle-size) / 2); left: calc(50% - var(--circle-size) / 2); transform-origin: calc(50% - 400px); animation: moveInCircle 20s reverse infinite; opacity: 1; }
.gradient-bg .g3 { background: radial-gradient(circle at center, rgba(var(--color3), 0.8) 0, rgba(var(--color3), 0) 50%) no-repeat; width: var(--circle-size); height: var(--circle-size); top: calc(50% - var(--circle-size) / 2 + 200px); left: calc(50% - var(--circle-size) / 2 - 500px); transform-origin: calc(50% + 400px); animation: moveInCircle 40s linear infinite; opacity: 1; }
.gradient-bg .g4 { background: radial-gradient(circle at center, rgba(var(--color4), 0.8) 0, rgba(var(--color4), 0) 50%) no-repeat; width: var(--circle-size); height: var(--circle-size); top: calc(50% - var(--circle-size) / 2); left: calc(50% - var(--circle-size) / 2); transform-origin: calc(50% - 200px); animation: moveHorizontal 40s ease infinite; opacity: 0.7; }
.gradient-bg .g5 { background: radial-gradient(circle at center, rgba(var(--color5), 0.8) 0, rgba(var(--color5), 0) 50%) no-repeat; width: calc(var(--circle-size) * 2); height: calc(var(--circle-size) * 2); top: calc(50% - var(--circle-size)); left: calc(50% - var(--circle-size)); transform-origin: calc(50% - 800px) calc(50% + 200px); animation: moveInCircle 20s ease infinite; opacity: 1; }
.gradient-bg .interactive { background: radial-gradient(circle at center, rgba(var(--color-interactive), 0.8) 0, rgba(var(--color-interactive), 0) 50%) no-repeat; width: 100%; height: 100%; top: -50%; left: -50%; opacity: 0.7; }

/* --- بخش Hero --- */
.hero-section {
    padding: 100px 20px;
    background: transparent;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    max-width: 1200px;
}

/* --- کارت‌های قیمت‌گذاری --- */
.pricing-card {
    border-radius: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #f0f0f0;
    height: 100%;
}

.pricing-card .card-title {
    color: #ffffff;
}
.price {
    color: #38bdf8;
}
.price-unit {
    color: #cccccc;
}
.features p {
    color: #e0e0e0;
}

.subscription-form-container {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #f0f0f0;
}
.form-label {
    color: #f0f0f0;
}


/* =================================================================== */
/* ۳. استایل‌های صفحات دیگر */
/* =================================================================== */


/*  استایل‌های نهایی صفحه درباره ما (با افکت شمع) */

/* --- استایل کلی و پس‌زمینه --- */
body.about-page-body {
    background: linear-gradient(135deg, #fdfcfb, #e2d1c3); /* پس‌زمینه زیبای خامه‌ای */
    color: #3a3a3a;
    cursor: none; /* مخفی کردن ماوس پیش‌فرض */
}

/* --- استایل‌های افکت شمع --- */
#spotlight-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 1);
    -webkit-mask-image: radial-gradient(
        circle var(--r, 110px) at var(--x, 50%) var(--y, 50%),
        transparent 0%,
        transparent 60%,
        black 100%
    );
    mask-image: radial-gradient(
        circle var(--r, 110px) at var(--x, 50%) var(--y, 50%),
        transparent 0%,
        transparent 60%,
        black 100%
    );
    pointer-events: none;
    z-index: 999;
}

#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1000; /* بالاتر از همه عناصر قرار می‌گیرد */
}


/* --- استایل کارت‌ها و متن‌ها (بدون تغییر) --- */
.about-page-body h1,
.about-page-body h2 {
    color: #1c1c1c !important;
    font-weight: 400;
}
.about-page-body .lead {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.7;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(100, 100, 100, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px 0 rgba(100, 100, 100, 0.2);
}

.feature-card .feature-icon {
    color: #ff7e5f;
    margin-bottom: 1rem;
}
.feature-card .card-title {
    color: #1c1c1c;
    font-weight: 700;
}
.feature-card .card-text {
    color: #4a4a4a;
    line-height: 1.8;
}

/* --- استایل دکمه‌ها (بدون تغییر) --- */
.cta-button {
    padding: 0.9rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cta-button i {
    margin-left: 8px;
}
.cta-button.primary {
    background-color: #ff7e5f;
    color: white;
}
.cta-button.primary:hover {
    background-color: #e66a4f;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.4);
}
.cta-button.secondary {
    background-color: transparent;
    border-color: #ff7e5f;
    color: #ff7e5f;
}
.cta-button.secondary:hover {
    background-color: #ff7e5f;
    color: white;
}


/* استایل کنترلر شعاع نور */

#spotlight-controls {
    position: fixed; /* در گوشه صفحه ثابت می‌ماند */
    right: 20px;
    top: 20px;
    background: rgba(30, 30, 30, 0.7);
    color: #eee;
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001; /* بالاتر از همه چیز، حتی کرسر */
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

#spotlight-controls input[type="range"] {
    vertical-align: middle;
    margin-left: 8px; /* فاصله بین اسلایدر و متن */
}

/* استایل نهایی کنترلرها (نسخه جدا) */

/* استایل پایه برای هر دو جعبه کنترلر */
.control-box {
    position: fixed;
    top: 20px;
    background: rgba(30, 30, 30, 0.7);
    color: #eee;
    padding: 10px 15px;
    border-radius: 12px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1001;
    font-size: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
}

/* موقعیت‌دهی جعبه سمت راست (شعاع نور) */
#spotlight-controls-radius {
    right: 20px;
}

/* موقعیت‌دهی جعبه سمت چپ (حالت عادی) */
#spotlight-controls-toggle {
    left: 20px;
}

/* استایل اسلایدر شعاع نور */
#spotlight-controls-radius input[type="range"] {
    vertical-align: middle;
    margin-right: 8px; /* فاصله از متن "شعاع نور" */
}

/* استایل کلی دکمه تاگل */
.toggle-switch {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* استایل بخش اسلایدر دکame */
.toggle-switch .slider {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
    background-color: #555;
    border-radius: 22px;
    transition: background-color 0.3s;
    margin-left: 8px;
}

/* استایل دایره داخلی اسلایدر */
.toggle-switch .slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

/* حالت روشن دکمه */
.toggle-switch input:checked + .slider {
    background-color: #ff7e5f;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(18px);
}

/* کلاس جدید برای مخفی کردن ماسک */
#spotlight-overlay.mask-hidden {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* --- صفحه موفقیت --- */
/* SVG تمام‌صفحه: تاریکی + ماسک مخروط روشن */
.fl-overlay{
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
}

/* چراغ نمایشی */
.fl-flashlight{
  position: fixed;
  height: 100px;
  width: 20px;
  top: 50%;
  left: 50%;
  transform-origin: 50% 0%;
  background: #000;
  border-radius: 6px;
  border: 1px solid #fff;
  pointer-events: none;
  z-index: 9999;
  will-change: transform, left, top; /* کمک به رندر نرم */
}
.fl-flashlight::before,
.fl-flashlight::after{
  content:"";
  position:absolute;
  left:50%;
  transform: translate(-50%, -50%);
  display:block;
}
.fl-flashlight::before{
  width:40px; height:40px; top:0;
  border-radius:0 0 50% 50%;
  background:#000; border:1px solid #fff;
}
.fl-flashlight::after{
  width:40px; height:10px; top:-25px;
  border-radius:100%;
  background: goldenrod;
  transform: translateX(-50%);
}
.fl-flashlight .fl-light,
.fl-flashlight .fl-light::before,
.fl-flashlight .fl-light::after{
  position:absolute; height:20px; width:5px; top:0; left:0;
  border-radius:3px; background: goldenrod; content:""; display:block;
}
.fl-flashlight .fl-light{ top:-50px; left:50%; transform: translateX(-50%); }
.fl-flashlight .fl-light::before{ transform: translateX(-400%) rotate(-30deg); }
.fl-flashlight .fl-light::after { transform: translateX(400%) rotate(30deg); }

@media (prefers-reduced-motion: reduce){
  .fl-overlay, .fl-flashlight{ display:none; }
}


/* --- صفحه 404 --- */
body.error-page-body {
    background: #ffffff !important;
    color: #333;
}
.page_404 {
    padding: 40px 0;
    background: #fff;
    font-family: 'Vazirmatn', sans-serif;
}
.four_zero_four_bg {
    background-image: url(https://cdn.dribbble.com/users/285475/screenshots/2083086/dribbble_1.gif);
    height: 400px;
    background-position: center;
    background-repeat: no-repeat;
}
.four_zero_four_bg h1 {
    font-size: 80px;
    color: #333;
    font-weight: 900;
}
.contant_box_404 { margin-top: -50px; }
.contant_box_404 h3, .contant_box_404 p { color: #333; }
.link_404 {
    color: #fff !important;
    padding: 10px 20px;
    background: #39ac31;
    margin: 20px 0;
    display: inline-block;
    border-radius: 5px;
}

/* =================================================================== */
/* ۴. استایل‌های فرم تکمیل اطلاعات (نسخه بهبود یافته) */
/* =================================================================== */

/* --- استایل کانتینر اصلی فرم --- */
.subscription-form-container {
    padding: 2.5rem; /* افزایش فاصله داخلی برای زیبایی بیشتر */
    border-radius: 1.25rem; /* گرد کردن لبه‌های کادر اصلی */
    border: 1px solid rgba(255, 255, 255, 0.2); /* یک حاشیه شیشه‌ای ظریف */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3); /* سایه عمیق‌تر برای برجستگی */
}

/* --- استایل لیبل‌ها (عناوین فیلدها) --- */
.subscription-form-container .form-label {
    color: #f0f0f0;
    margin-bottom: 0.5rem;
    font-weight: 500; /* کمی ضخامت بیشتر برای خوانایی */
}

/* --- استایل فیلدهای ورودی (input) --- */
.subscription-form-container .form-control {
    background-color: rgba(0, 0, 0, 0.25); /* پس‌زمینه تیره‌تر و شفاف */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem; /* گرد کردن لبه‌های فیلدها */
    padding: 0.8rem 1rem;
    color: #ffffff; /* رنگ متن ورودی سفید */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* رنگ متن راهنما (placeholder) داخل فیلدها */
.subscription-form-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* افکت درخشان هنگام کلیک روی فیلدها */
.subscription-form-container .form-control:focus {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: #38bdf8; /* رنگ آبی روشن مشابه قیمت پلن‌ها */
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35); /* افکت درخشش (glow) */
    outline: none; /* حذف حاشیه پیش‌فرض مرورگر */
}

/* --- استایل دکمه سوییچ (برای هدیه) --- */
.subscription-form-container .form-check-input {
    background-color: rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.3);
}
.subscription-form-container .form-check-input:checked {
    background-color: #16a34a; /* رنگ سبز هماهنگ با دکمه */
    border-color: #16a34a;
}
.subscription-form-container .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.4); /* افکت درخشش سبز */
}


/* --- استایل دکمه ثبت و پرداخت --- */
.subscription-form-container .btn-success {
    background-color: #16a34a; /* رنگ سبز کمی مدرن‌تر */
    border: none;
    border-radius: 0.75rem;
    padding: 0.9rem 1.5rem;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.subscription-form-container .btn-success:hover {
    background-color: #15803d; /* سبز تیره‌تر هنگام هاور */
    transform: translateY(-2px); /* افکت شناور شدن دکمه */
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

/* =================================================================== */
/* ۵. استایل‌های افکت تایپینگ (بدون مکان‌نما) */
/* =================================================================== */

.typewriter-text {
    /* این خط باعث می‌شود عنصر عرض را قبول کند و انیمیشن کار کند */
    display: inline-block; 
    vertical-align: middle;
    
    white-space: nowrap; 
    overflow: hidden; 
    width: 0; 

    /* فقط انیمیشن تایپ باقی مانده است */
    animation: typing 3.5s steps(24, end) forwards;
    animation-delay: 1s;
}

/* انیمیشن اصلی تایپ شدن متن */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

/* =================================================================== */
/* ۶. استایل‌های کارت قیمت‌گذاری (حالت انتخاب‌شده) */
/* =================================================================== */

.pricing-card.selected {
    border-color: #38bdf8; /* حاشیه آبی روشن برای تمایز */
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.7), /* سایه درخشان آبی */
                0 4px 15px rgba(0, 0, 0, 0.3); /* حفظ سایه اصلی برای عمق */
    transform: translateY(-5px); /* کمی کارت را بالا می‌آورد */
    transition: all 0.3s ease-in-out; /* انیمیشن نرم برای انتقال حالت */
}

/* برای دکمه‌های فعال‌سازی نیز می‌توان حالت selected را ایجاد کرد تا واضح‌تر باشد */
.activate-button.selected {
    background-color: #38bdf8 !important; /* رنگ دکمه به آبی تغییر کند */
    border-color: #38bdf8 !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* =================================================================== */
/* ۷. اصلاحات رنگ عناوین بخش‌ها */
/* =================================================================== */

/* این کد هر دو عنوان را هدف قرار داده و رنگشان را سفید می‌کند 
*/
.container.text-center h2,
#subscription-form-section h2 {
    color: #ffffff;
}