/* ==========================================================================
   پوسته سراسری هدر/فوتر طلا حورا — برای همه صفحات به‌جز صفحه اصلی
   (صفحه اصلی نسخه خودش را از front-page.css می‌گیرد؛ این فایل همان طراحی را
   برای صفحات داخلی مثل تماس با ما، درباره ما و... تکرار می‌کند تا هدر و فوتر
   در کل سایت یکسان و ثابت باشند)
   ========================================================================== */

:root {
    --dl-purple-deep: #2e0854;
    --dl-purple-royal: #4c1d95;
    --dl-purple-light: #7c3aed;
    --dl-purple-soft: #a78bfa;
    --dl-gold: #FFD700;
    --dl-gold-deep: #FDB813;
    --dl-black: #120a1f;
    --dl-white: #ffffff;
    --dl-text-dark: #221338;
    --dl-text-muted: #6b6280;
    --dl-gradient-gold: linear-gradient(135deg, #FFD700 0%, #FDB813 100%);
    --dl-gradient-footer: linear-gradient(160deg, #3b0f6e 0%, #1a0733 55%, #120a1f 100%);
    --dl-gutter: clamp(16px, 4vw, 48px);
}

.tala-shell, .tala-shell * { box-sizing: border-box; }
.tala-shell { font-family: 'Vazirmatn', sans-serif; direction: rtl; }

/* ---------- هدر ثابت ---------- */
.dl-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    padding: 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(91, 33, 182, 0.12);
    box-shadow: 0 4px 20px rgba(46, 8, 84, 0.06);
    transition: background-color 0.6s ease, box-shadow 0.3s ease;
}

.dl-header.dl-header--glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    box-shadow: 0 8px 26px rgba(46, 8, 84, 0.1);
}

.dl-header-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px var(--dl-gutter);
}

.dl-header-spacer { width: 100%; }

.dl-logo { display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; order: 2; flex: 1 1 auto; min-width: 0; }

.dl-logo-icon {
    width: clamp(34px, 4vw, 46px);
    height: clamp(34px, 4vw, 46px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dl-logo-icon svg { width: 100%; height: 100%; fill: var(--dl-purple-deep); }
.dl-logo-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.dl-logo-text {
    font-size: clamp(0.95rem, 2vw, 1.3rem);
    font-weight: 900;
    color: var(--dl-purple-deep);
    letter-spacing: 0.3px;
}

/* منوی دسکتاپ داخل هدر ثابت (در موبایل مخفی و به‌جایش منوی کشویی همبرگری) */
.dl-header-nav { display: none; }

.dl-header-menu {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 2.2vw, 34px);
    margin: 0;
    padding: 0;
}

.dl-header-menu a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding: 8px 2px;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--dl-text-dark);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease;
}

.dl-header-menu a::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: -4px;
    height: 2px;
    border-radius: 2px;
    background: var(--dl-gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dl-header-menu a:hover { color: var(--dl-purple-royal); }
.dl-header-menu a:hover::after { transform: scaleX(1); }

/* ---------- نوار فهرست زیر هدر (فقط دسکتاپ، فقط صفحات غیر از صفحه اصلی) ---------- */
.dl-subheader-nav { display: none; }

@media (min-width: 992px) {
    .dl-subheader-nav {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        z-index: 499;
        background: #240b41;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
        transition: top 0.15s ease;
    }

    .dl-subheader-nav-inner {
        max-width: 1220px;
        margin: 0 auto;
        padding: 16px var(--dl-gutter);
    }

    .dl-subheader-menu {
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(20px, 2.4vw, 40px);
        margin: 0;
        padding: 0;
    }

    .dl-subheader-menu a {
        display: inline-flex;
        align-items: center;
        line-height: 1;
        padding: 10px 2px;
        font-size: 0.86rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.85);
        text-decoration: none;
        position: relative;
        transition: color 0.25s ease;
    }

    .dl-subheader-menu a::after {
        content: '';
        position: absolute;
        right: 0;
        left: 0;
        bottom: -4px;
        height: 2px;
        border-radius: 2px;
        background: var(--dl-gradient-gold);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .dl-subheader-menu a:hover { color: var(--dl-gold); }
    .dl-subheader-menu a:hover::after { transform: scaleX(1); }

    /* خط زرد زیر «صفحه اصلی» به‌صورت پیش‌فرض نمایان است، دقیقاً مثل فهرست صفحه اصلی */
    .dl-subheader-menu li:first-child > a {
        color: var(--dl-gold);
    }
    .dl-subheader-menu li:first-child > a::after {
        transform: scaleX(1);
    }
}

/* دکمه همبرگری (فقط موبایل/تبلت) */
.dl-hamburger-btn {
    order: 1;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(91, 33, 182, 0.18);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-hamburger-btn svg { width: 19px; height: 19px; fill: var(--dl-purple-royal); }
.dl-hamburger-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(76, 29, 149, 0.18); }

/* گروه اقدامات هدر: قیمت لحظه‌ای بلافاصله از سمت راست دکمه نصب اپلیکیشن شروع می‌شود */
.dl-header-actions {
    order: 4;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dl-price-widget {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
}

.dl-price-icon-btn {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(91, 33, 182, 0.18);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-price-icon-btn svg { width: 20px; height: 20px; color: var(--dl-purple-royal); }

.dl-price-icon-badge {
    position: absolute;
    top: -3px;
    left: -3px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dl-purple-royal);
    border: 1.5px solid var(--dl-purple-royal);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dl-price-icon-badge .dl-price-dot {
    position: relative;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #F6C000;
    animation: dlBlink 0.9s infinite;
    -webkit-animation: dlBlink 0.9s infinite;
}

.dl-price-icon-badge .dl-price-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #F6C000;
    animation: dlHalo 0.9s infinite;
    -webkit-animation: dlHalo 0.9s infinite;
    will-change: transform, opacity;
}

@keyframes dlBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

@-webkit-keyframes dlBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.15; }
}

@keyframes dlHalo {
    0% { transform: scale(1); opacity: 0.55; }
    50% { transform: scale(2.4); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

@-webkit-keyframes dlHalo {
    0% { -webkit-transform: scale(1); opacity: 0.55; }
    50% { -webkit-transform: scale(2.4); opacity: 0; }
    100% { -webkit-transform: scale(1); opacity: 0; }
}

.dl-price-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.dl-price-main { font-size: 1.05rem; font-weight: 900; color: var(--dl-text-dark); white-space: nowrap; }
.dl-price-main .dl-price-currency { font-size: 0.72rem; font-weight: 700; color: var(--dl-text-muted); margin-right: 4px; }
.dl-price-sub { font-size: 0.7rem; font-weight: 600; color: var(--dl-text-muted); white-space: nowrap; }

.dl-header-cta {
    order: 3;
    font-family: 'Vazirmatn', sans-serif;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(91, 33, 182, 0.18);
    background: #ffffff;
    color: var(--dl-purple-royal);
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-header-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(76, 29, 149, 0.18); }

.dl-header-cta-icon { width: 19px; height: 19px; fill: var(--dl-purple-royal); flex-shrink: 0; }
.dl-header-cta-text { display: none; }

.dl-header-install {
    font-family: 'Vazirmatn', sans-serif;
    display: inline-flex;
    align-items: center;
    height: 40px;
    gap: 5px;
    background: linear-gradient(135deg, var(--dl-purple-royal) 0%, var(--dl-purple-light) 100%);
    color: #ffffff;
    border: none;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.dl-header-install-icon { width: 14px; height: 14px; flex-shrink: 0; fill: #ffffff; }
.dl-header-install-text { display: inline; }
.dl-header-install:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124, 58, 237, 0.5); }

@media (min-width: 992px) {
    .dl-header-inner { padding: 20px var(--dl-gutter); gap: 20px; }
    .dl-logo-icon { width: 54px; height: 54px; }
    .dl-logo-text { font-size: 1.5rem; }
    .dl-logo { order: 0; flex: 0 1 auto; justify-content: flex-start; }
    .dl-header-nav { display: none; }
    .dl-hamburger-btn { display: none; }
    .dl-header-actions { display: contents; }
    .dl-price-widget { order: 1; flex: 1 1 auto; width: auto; justify-content: center; }
    .dl-price-icon-btn { width: 46px; height: 46px; background: #ffffff; }
    .dl-price-icon-btn svg { width: 22px; height: 22px; }
    .dl-price-main { font-size: 1.15rem; }
    .dl-price-main .dl-price-currency { font-size: 0.75rem; }
    .dl-price-sub { font-size: 0.76rem; }
    .dl-header-cta {
        order: 3;
        width: auto;
        height: auto;
        padding: 13px 26px;
        border-radius: 10px;
        border: none;
        background: var(--dl-gradient-gold);
        color: var(--dl-purple-deep);
        font-size: 0.92rem;
        box-shadow: 0 8px 20px rgba(253, 184, 19, 0.35);
    }
    .dl-header-cta:hover { box-shadow: 0 12px 26px rgba(253, 184, 19, 0.5); }
    .dl-header-cta-icon { display: none; }
    .dl-header-cta-text { display: inline; }
    .dl-header-install {
        order: 2;
        width: auto;
        height: auto;
        padding: 13px 22px;
        border-radius: 10px;
        border: none;
        background: linear-gradient(135deg, var(--dl-purple-royal) 0%, var(--dl-purple-light) 100%);
        color: #ffffff;
        font-size: 0.86rem;
        gap: 6px;
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.35);
    }
    .dl-header-install:hover { box-shadow: 0 12px 26px rgba(124, 58, 237, 0.5); }
    .dl-header-install-icon { width: 17px; height: 17px; fill: #ffffff; }
    .dl-header-install-text { display: inline; }
}

/* ---------- منوی همبرگری (موبایل/تبلت) ---------- */
.dl-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: rgba(20, 8, 40, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dl-mobile-menu-overlay.show { opacity: 1; visibility: visible; }

.dl-mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
    box-shadow: -18px 0 40px rgba(46, 8, 84, 0.25);
    padding: 22px 22px 26px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dl-mobile-menu-overlay.show .dl-mobile-menu-panel { transform: translateX(0); }

.dl-mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(91, 33, 182, 0.1);
}

.dl-mobile-menu-close {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(91, 33, 182, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
}

.dl-mobile-menu-close svg { width: 100%; height: 100%; fill: var(--dl-purple-royal); }

.dl-mobile-menu-list { list-style: none; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; }

.dl-mobile-menu-list a {
    display: flex;
    align-items: center;
    padding: 15px 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--dl-purple-deep);
    text-decoration: none;
    border-bottom: 1px solid rgba(91, 33, 182, 0.08);
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.dl-mobile-menu-list a:hover { color: var(--dl-gold-deep); padding-right: 14px; }

.dl-mobile-menu-foot { margin-top: auto; padding-top: 18px; }

.dl-mobile-support {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(255, 215, 0, 0.1));
    border: 1px solid rgba(91, 33, 182, 0.14);
    text-align: right;
}

.dl-mobile-support-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dl-gradient-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: 0 8px 18px rgba(253, 184, 19, 0.35);
}

.dl-mobile-support-icon svg { width: 100%; height: 100%; fill: var(--dl-purple-deep); }

.dl-mobile-support-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dl-mobile-support-label { font-size: 0.78rem; font-weight: 800; color: var(--dl-purple-deep); }

.dl-mobile-support-number {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--dl-purple-royal);
    text-decoration: none;
    direction: ltr;
    justify-content: flex-end;
}

.dl-mobile-support-number:hover { color: var(--dl-gold-deep); }

.dl-mobile-menu-copyright { margin-top: 14px; text-align: center; font-size: 0.68rem; color: var(--dl-text-muted); }

@media (min-width: 992px) {
    .dl-mobile-menu-overlay { display: none !important; }
}

/* ---------- فوتر ---------- */
.dl-footer {
    background: var(--dl-gradient-footer);
    padding: clamp(36px, 6vw, 56px) clamp(18px, 5vw, 40px) clamp(22px, 4vw, 32px);
}

.dl-footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(20px, 4vw, 32px);
    margin-bottom: clamp(20px, 4vw, 30px);
}

.dl-footer-brand .dl-logo-text { font-size: clamp(1rem, 2vw, 1.2rem); color: var(--dl-white); }
.dl-footer-brand p { margin-top: 12px; font-size: 0.85rem; line-height: 1.9; color: rgba(255, 255, 255, 0.7); }

.dl-footer-social { display: flex; gap: 10px; margin-top: 18px; }

.dl-footer-social-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.dl-footer-social-icon svg { width: 100%; height: 100%; fill: rgba(255, 255, 255, 0.85); }

.dl-footer-social-icon:hover { transform: translateY(-3px); background: var(--dl-gradient-gold); border-color: transparent; }
.dl-footer-social-icon:hover svg { fill: var(--dl-purple-deep); }

.dl-footer-trust {
    max-width: 1180px;
    margin: 0 auto clamp(16px, 3vw, 24px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dl-footer-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.dl-footer-trust-badge:hover { opacity: 1; transform: translateY(-2px); }
.dl-footer-trust-badge img { width: 100%; height: 100%; object-fit: contain; }

.dl-footer-trust--grid {
    max-width: none;
    margin: 0;
    padding-top: 0;
    border-top: none;
    display: grid;
    grid-template-columns: repeat(2, 64px);
    gap: 12px;
    justify-content: start;
}

.dl-footer-social--row {
    max-width: 1180px;
    margin: 0 auto clamp(16px, 3vw, 24px);
    justify-content: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
    .dl-footer-trust-badge { width: 46px; height: 46px; border-radius: 10px; }
    .dl-footer-trust--grid { grid-template-columns: repeat(4, 46px); gap: 8px; justify-content: center; }

    /* ترتیب فوتر در موبایل: برند، تماس با ما، مجوزها و نمادها (یک ردیف)، دسترسی سریع */
    .dl-footer-grid > div:nth-child(1) { order: 1; }
    .dl-footer-grid > div:nth-child(2) { order: 2; }
    .dl-footer-grid > .dl-footer-trust-col { order: 3; }
    .dl-footer-grid > div:nth-child(3) { order: 4; }
}

.dl-footer-col h4 { font-size: 0.9rem; font-weight: 800; color: var(--dl-gold); margin-bottom: 12px; }

.dl-footer-col p, .dl-footer-col a {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 2;
    text-decoration: none;
}

.dl-footer-col a:hover { color: var(--dl-gold); }

.dl-footer-contact-item { display: flex !important; align-items: center; gap: 10px; margin-bottom: 4px; }
.dl-footer-contact-item--address { align-items: flex-start; }

.dl-footer-contact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    margin-top: 2px;
}

.dl-footer-contact-icon svg { width: 100%; height: 100%; fill: var(--dl-gold); }

.dl-footer-bottom {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
}

/* ---------- محتوای صفحات داخلی، زیر هدر ثابت ---------- */
.tala-page-shell { padding: 28px 0 56px; background: #f8fafc; min-height: 60vh; }
.tala-page-shell--elementor { padding-top: 0; background: #fff; }
.tala-page-shell__inner { max-width: 1220px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.tala-page-shell__content { background: #fff; border-radius: 24px; box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06); padding: 28px; overflow: hidden; font-family: 'Vazirmatn', sans-serif; }
.tala-page-shell--elementor .tala-page-shell__inner { max-width: none; padding: 0; }
.tala-page-shell--elementor .tala-page-shell__content { padding: 0; border-radius: 0; box-shadow: none; }
.tala-page-title { margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
.tala-page-title h1 { margin: 0; color: #1e1b4b; font-size: clamp(1.4rem, 2.8vw, 2rem); line-height: 1.8; font-family: 'Vazirmatn', sans-serif; }

@media (max-width: 991px) {
    .tala-page-shell__content { padding: 18px; }
}
