﻿/* Import Font */
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/Vazirmatn-font-face.css');

:root {
    /* Palette */
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #AA7C11;
    --gold-glow: rgba(212, 175, 55, 0.3);
    --bg-dark: #050505;
    --bg-card: rgba(21, 21, 24, 0.7); /* شیشه‌ای تیره */
    --bg-card-hover: rgba(30, 30, 35, 0.9);
    --text-main: #F8F9FA;
    --text-muted: #B0B0B0;
    --border-color: rgba(255, 255, 255, 0.08);
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    /* --- اضافه کردن این دو خط برای حل مشکل کارت --- */
    --dark-card: var(--bg-card);
    --dark-border: var(--border-color);
}
.text-secondary-custom {
    color: #A0A0AB !important; /* رنگی که کمی روشن‌تر از خاکستری معمولی است */
}
body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at top right, rgba(212, 175, 55, 0.05), transparent 40%), radial-gradient(circle at bottom left, rgba(212, 175, 55, 0.03), transparent 40%);
    background-attachment: fixed;
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    /* تغییر مهم: استفاده از min-height به جای height */
    min-height: 100vh;
    min-height: 100dvh; /* برای موبایل‌های جدید که نوار آدرس بالا پایین می‌رود */

    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Navbar Glassmorphism */
.navbar-custom {
    background: rgba(11, 11, 12, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand-gold {
    color: var(--gold) !important;
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link-custom {
    color: var(--text-muted) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: var(--transition);
    position: relative;
}

    .nav-link-custom:hover, .nav-link-custom.active {
        color: var(--gold) !important;
        background: rgba(212, 175, 55, 0.08);
    }

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #000 !important;
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px var(--gold-glow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
}

    .btn-gold:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
        filter: brightness(1.1);
    }

    .btn-gold::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
        transition: 0.5s;
    }

    .btn-gold:hover::after {
        left: 100%;
    }

.btn-outline-gold {
    background: transparent;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    font-weight: 600;
    transition: var(--transition);
}

    .btn-outline-gold:hover {
        background: var(--gold);
        color: #000 !important;
        box-shadow: 0 0 15px var(--gold-glow);
        transform: translateY(-2px);
    }

/* Hero Section */
.home-hero {
    padding: 80px 0 40px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    background: linear-gradient(to left, var(--text-main), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    line-height: 1.8;
    max-width: 600px;
}

/* Card & Feature Icon Styles (اصلاح شده برای نمایش صحیح آیکن) */
.card-gold {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px 20px;
    transition: all 0.3s ease;
    height: 84%;
    /* اصلاح چیدمان: استفاده از فلکس برای قرارگیری عمودی آیکن و متن */
    display: flex;
    flex-direction: column;
    align-items: center; /* آیکن و متن در مرکز افقی */
    text-align: center; /* متن‌ها تراز وسط */
    background: rgba(21, 21, 24, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dropdown-menu {
    z-index: 1050; /* اطمینان از اینکه منو روی همه چیز باز می‌شود */
   
}
    .card-gold:hover {
        transform: translateY(-5px);
        border-color: var(--gold);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

/* استایل مخصوص آیکن داخل کارت */
.feature-icon {
    width: 70px;
    height: 70px;
    /* گرادینت طلایی برای دیده شدن روی زمینه تیره */
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    /* رنگ آیکن مشکی برای کنتراست با زمینه طلایی */
    color: #000000;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--gold-glow);
    flex-shrink: 0;
}

/* Quick Links */
.quick-link-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: var(--transition);
    height: 100%;
    min-height: 140px;
}

    .quick-link-box i {
        font-size: 2rem;
        color: var(--gold);
        transition: var(--transition);
    }

    .quick-link-box:hover {
        border-color: var(--gold);
        background: rgba(212, 175, 55, 0.05);
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    }

        .quick-link-box:hover i {
            transform: scale(1.15);
            color: var(--gold-light);
        }

/* User Welcome Box */
.user-welcome-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
}

/* Hero Panel */
.hero-panel {
    background: linear-gradient(145deg, var(--bg-card), rgba(0,0,0,0.5));
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}

    .hero-panel::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
        pointer-events: none;
    }

.hero-panel-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    color: #000;
    background: var(--gold);
    font-size: 2.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px var(--gold-glow);
}

/* Footer */
.footer-custom {
    background: #020203;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* فوتر را به پایین می‌چسباند */
    padding: 30px 0;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text-muted);
    transition: var(--transition);
}

    .social-icon:hover {
        background: var(--gold);
        color: #000;
        transform: translateY(-3px);
        box-shadow: 0 5px 15px var(--gold-glow);
    }

/* Animations */
.fadein {
    animation: fadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #0b0b0c;
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 1rem;
        border: 1px solid var(--border-color);
    }

    .hero-title {
        font-size: 2.5rem;
    }
}
/* کلاس برای المان‌هایی که باید فید شوند */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    /* کلاس فعال که توسط جاوااسکریپت اضافه می‌شود */
    .animate-on-scroll.is-visible {
        opacity: 1;
        transform: translateY(0);
    }




/* اطمینان از اینکه main فضای خالی را پر می‌کند */
main {
    flex: 1; /* این خط حیاتی است: باعث می‌شود main تمام فضای خالی بین هدر و فوتر را پر کند */
    width: 100%;
}

/* استایل‌های اضافی برای منوی کشویی پروفایل */
.dropdown-menu {
    background-color: #1a1a1d; /* رنگ تیره */
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 0.5rem 0;
    margin-top: 0.5rem !important; /* فاصله از دکمه */
    z-index: 1060; /* بالاتر از سایر عناصر */
}

.dropdown-item {
    color: #e0e0e0;
    padding: 0.6rem 1.5rem;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

    .dropdown-item:hover {
        background-color: rgba(212, 175, 55, 0.15);
        color: #D4AF37;
        transform: translateX(-5px); /* حرکت جزئی به چپ برای افکت زیبا */
    }

    .dropdown-item.text-danger:hover {
        background-color: rgba(220, 53, 69, 0.15);
        color: #dc3545;
    }

.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 0.3rem 0;
}

/* دکمه پروفایل */
.btn-gold.dropdown-toggle {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    background: #ffd700;
}
/* اصلاح متغیرهای رنگی برای کارت‌ها */


/* اصلاح استایل کارت */
.card-gold {
    background-color: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 12px;
    padding: 30px 20px;
    transition: var(--transition);
    height: 100%; /* تغییر به 100% برای پر کردن ارتفاع */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* اصلاح استایل آیکن */
.feature-icon {
    width: 70px;
    height: 70px;
    /* گرادینت طلایی برای پس‌زمینه آیکن */
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    /* رنگ آیکن مشکی برای کنتراست با زمینه طلایی */
    color: #000000;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px var(--gold-glow);
    flex-shrink: 0;
}

/* اگر آیکن دیده نمی‌شود، این خط را چک کنید */
/* ممکن است آیکن‌ها سیاه باشند و پس‌زمینه هم تیره باشد، پس حتما باید رنگ آیکن مشخص باشد */
.text-gold {
    color: #D4AF37 !important;
}
/* اگر این کلاس را در site.css ندارید، آن را اضافه کنید */
.btn-outline-gold {
    color: var(--gold) !important;
    border-color: var(--gold);
}

    .btn-outline-gold:hover {
        background-color: var(--gold) !important;
        color: #000 !important;
        border-color: var(--gold);
    }


/* فونت وزیرمتن */
body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #0a0a0a;
    color: #fff;
}

/* رنگ‌های اصلی */
.text-gold {
    color: #ffd700 !important;
}

.bg-gold {
    background-color: #ffd700 !important;
    color: #111 !important;
}

.border-gold {
    border-color: #ffd700 !important;
}

/* کارت‌های مدرن */
.card-custom {
    background: #151515;
    border: 1px solid #333;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .card-custom:hover {
        border-color: #ffd700;
        box-shadow: 0 10px 20px rgba(255, 215, 0, 0.1);
        transform: translateY(-10px);
    }

/* دکمه‌های جذاب */
.btn-gold {
    background: #ffd700;
    color: #000;
    font-weight: 700;
    border-radius: 6px;
    transition: 0.3s;
}

    .btn-gold:hover {
        background: #ffc800;
        transform: scale(1.05);
    }

/* افکت‌های متنی */
.gold-glow {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* اسکرول‌بار سفارشی */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: #ffd700;
    border-radius: 4px;
}

/* ====== استایل‌های بخش‌های صفحه اصلی ====== */

/* کارت‌های شیشه‌ای */
.stat-box,
.testimonial-card {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05), rgba(0, 0, 0, 0.3));
    border: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    border-color: rgba(212, 175, 55, 0.6);
}

/* آیکن شناور */
.icon-float {
    animation: floatIcon 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* آواتار دایره‌ای */
.avatar-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #D4AF37;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

/* گرادیانت طلایی */
.bg-gradient-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #B8860B 100%);
}

.bg-gradient-cta {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%), radial-gradient(circle at top right, rgba(212, 175, 55, 0.3), transparent 50%);
    position: relative;
}

    .bg-gradient-cta::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(212,175,55,0.3)"/></svg>');
        opacity: 0.3;
        pointer-events: none;
    }

/* شمارنده انیمیشنی */
.counter {
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ffffff 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ====== نوار مدیریت درون‌خطی ادمین ====== */
.home-section-wrap {
    position: relative;
}

.hg-admin-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 8px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed rgba(212, 175, 55, 0.45);
    border-radius: 12px;
}

.hg-admin-strip-label {
    color: #d4af37;
    font-size: 0.82rem;
    font-weight: 700;
}

.hg-inline-panel {
    background: #121214;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hg-item-details {
    background: #17171b;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

    .hg-item-details > summary {
        cursor: pointer;
        list-style: none;
    }

        .hg-item-details > summary::-webkit-details-marker {
            display: none;
        }

        .hg-item-details > summary::before {
            content: "\f106";
            font-family: "Font Awesome 6 Free";
            font-weight: 900;
            color: #d4af37;
            margin-inline-end: 8px;
            font-size: .75rem;
        }

.hg-item-admin {
    background: rgba(212, 175, 55, 0.05);
}

/* آیتم مخفی (فقط برای ادمین نمایش داده می‌شود) */
.hg-is-hidden {
    opacity: 0.55;
    border-style: dashed !important;
}

.hg-hidden-badge {
    background: #6b5b1f;
    color: #ffe98a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    text-align: center;
}

/* لایت‌باکس تصویر و سند */
.hg-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

    .hg-lightbox-overlay img {
        max-width: 95vw;
        max-height: 92vh;
        border-radius: 12px;
        box-shadow: 0 0 60px rgba(212, 175, 55, 0.35);
    }

    .hg-lightbox-overlay iframe {
        width: 92vw;
        height: 90vh;
        border: 0;
        border-radius: 12px;
        background: #fff;
    }

.hg-lightbox-close {
    position: absolute;
    top: 14px;
    inset-inline-start: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.5);
    background: rgba(212, 175, 55, 0.15);
    color: #ffd700;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

    .hg-lightbox-close:hover {
        background: #d4af37;
        color: #000;
    }

.section-admin-bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    padding: 6px 10px;
    margin-bottom: -6px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px dashed rgba(212, 175, 55, 0.4);
    border-radius: 10px 10px 0 0;
}

    .section-admin-bar .section-admin-type {
        color: #d4af37;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.5px;
        opacity: 0.8;
    }

    .section-admin-bar:hover {
        border-color: rgba(212, 175, 55, 0.7);
        background: rgba(212, 175, 55, 0.14);
    }

/* هایلایت لینک پلن طلایی */
.card-pricing-popular {
    transform: scale(1.05);
    border: 2px solid #D4AF37 !important;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

    .card-pricing-popular:hover {
        transform: scale(1.08);
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .card-pricing-popular {
        transform: scale(1);
    }
}