/* ============================================================
   COMPONENTS.CSS — توشله  (نسخه ۲)
   هدر شیشه‌ای پیشرفته + فوتر شیشه‌ای + همه کامپوننت‌های مشترک
   ============================================================ */


/* ══════════════════════════════════════
   HEADER — DESKTOP
══════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height);        /* حالا 84px */

    /* ─── Glass خاکستری تیره ─── */
    background: rgba(22, 24, 32, 0.45); /* خاکستری شیشه‌ای (نه سورمای‌ای) */
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);

    /* خط بالا: گرادیان رنگی محو */
    border-top: 1px solid rgba(13, 144, 205, 0.22);
    /* خط پایین: سفید محو */
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 8px 32px rgba(0, 0, 0, 0.28);

    transition: background var(--ease-normal),
                box-shadow var(--ease-normal),
                border-color var(--ease-normal);
}

/* نوار رنگی بالای هدر (بدون تغییر) */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent             0%,
        var(--color-blue)      20%,
        var(--color-gold)      50%,
        var(--color-red)       80%,
        transparent            100%
    );
    opacity: 0.55;
    pointer-events: none;
}

.site-header.scrolled {
    background: rgba(18, 20, 28, 0.55); /* اسکرول تیره‌تر با تناژ خاکستری */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 4px 40px rgba(0, 0, 0, 0.55);
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* ─── header-inner: Flexbox چپ و راست ─── */
.header-inner {
    max-width: var(--container-max);
    width: 100%;
    height: 100%;
    margin-inline: auto;
    padding-inline: var(--container-pad-desk);

    display: flex;
    align-items: center;
    justify-content: space-between;   /* لوگو+منو راست | جستجو+ورود چپ */
}

/* گروه سمت راست (لوگو + ناوبری) */
.header-group-right {
    display: flex;
    align-items: center;
    gap: 48px;   /* فاصله خوب بین لوگو و منوها */
}

/* ── Logo ── */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    transition: transform var(--ease-normal);
}

.header-logo:hover img {
    transform: rotate(-8deg) scale(1.08);
}

.header-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

.header-logo-text span {
    color: var(--color-blue);
}

/* ── Nav ── */
.header-nav-wrap {
    /* بدون تغییر خاص */
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-nav > li {
    position: relative;
}

.header-nav > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    transition: color var(--ease-fast), background var(--ease-fast);
    white-space: nowrap;
}

.header-nav > li > a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.header-nav > li > a.active {
    color: var(--color-blue);
    background: var(--color-blue-subtle);
}

.nav-arrow {
    transition: transform var(--ease-fast);
    color: var(--color-blue);
    flex-shrink: 0;
    opacity: 0.7;
}

.header-nav > li:hover .nav-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* ── Dropdown (بدون تغییر) ── */
.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 270px;
    background: rgba(22, 24, 36, 0.95); /* کمی تیره‌تر */
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-md);
    padding: 8px;
    box-shadow:
        var(--shadow-md),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--ease-fast),
                visibility var(--ease-fast),
                transform var(--ease-fast);
    z-index: 10;
}

.header-nav > li:hover .nav-dropdown,
.header-nav > li:focus-within .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-sm);
    transition: background var(--ease-fast), color var(--ease-fast);
}

.nav-dropdown li a:hover {
    background: var(--color-blue-subtle);
    color: var(--color-blue);
}

.nav-dropdown li a img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item-name {
    font-weight: 500;
    color: var(--text-primary);
    font-size: var(--fs-sm);
}

.dropdown-item-sub {
    font-size: var(--fs-xs);
    color: var(--text-muted);
    font-weight: 300;
}

.dropdown-view-all {
    border-top: 1px solid var(--border-subtle);
    margin-top: 6px;
    padding-top: 6px;
}

.dropdown-all-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between !important;
    color: var(--color-blue) !important;
    font-weight: 500 !important;
}

.dropdown-all-link:hover {
    color: var(--color-blue-light) !important;
}

/* ── Actions (چپ) ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search */
.header-search {
    position: relative;
}

.header-search input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-sm);
    padding: 8px 16px 8px 40px;
    width: 185px;
    outline: none;
    transition: width var(--ease-normal),
                border-color var(--ease-fast),
                background var(--ease-fast);
}

.header-search input::placeholder {
    color: var(--text-muted);
}

.header-search input:focus {
    width: 250px;
    border-color: var(--color-blue);
    background: var(--color-blue-subtle);
}

.search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color var(--ease-fast);
}

.header-search input:focus ~ .search-icon {
    color: var(--color-blue);
}

/* Login Button */
.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border-radius: var(--radius-pill);
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    white-space: nowrap;
    transition: transform var(--ease-fast),
                box-shadow var(--ease-fast);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    color: var(--text-white);
}


/* ══════════════════════════════════════
   HEADER — MOBILE
══════════════════════════════════════ */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    height: var(--header-height-mobile);

    background: rgba(14, 16, 28, 0.65);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 4px 24px rgba(0, 0, 0, 0.30);

    padding-inline: var(--container-pad-mob);
    align-items: center;
    gap: 10px;
}

/* نوار رنگی بالا — موبایل */
.mobile-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent        0%,
        var(--color-blue) 25%,
        var(--color-gold) 50%,
        var(--color-red)  75%,
        transparent       100%
    );
    opacity: 0.5;
}

.mobile-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    line-height: 0;
}

.mobile-logo img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.mobile-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text-primary);
}

.mobile-search {
    flex: 1;
    position: relative;
}

.mobile-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-xs);
    padding: 7px 12px 7px 34px;
    outline: none;
    transition: border-color var(--ease-fast), background var(--ease-fast);
}

.mobile-search input::placeholder {
    color: var(--text-muted);
}

.mobile-search input:focus {
    border-color: var(--color-blue);
    background: var(--color-blue-subtle);
}

.mobile-search .search-icon {
    left: 10px;
}

/* Toggle Button */
.mobile-menu-toggle {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color var(--ease-fast),
                background var(--ease-fast),
                color var(--ease-fast);
    position: relative;
    overflow: hidden;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle.open {
    border-color: var(--color-blue);
    background: var(--color-blue-subtle);
    color: var(--color-blue);
}

/* آیکون‌های hamburger / close */
.toggle-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--ease-fast), transform var(--ease-fast);
}

.toggle-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.7);
}

.mobile-menu-toggle.open .toggle-icon--menu {
    opacity: 0;
    transform: rotate(90deg) scale(0.7);
}

.mobile-menu-toggle.open .toggle-icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}


/* ── Overlay ── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--ease-normal);
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: all;
}


/* ── Mobile Drawer ── */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 340px);
    background: rgba(15, 17, 30, 0.96);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.50);
    z-index: 999;
    padding: 0 0 32px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--ease-normal);
    direction: rtl;
    display: flex;
    flex-direction: column;
}

.mobile-drawer.open {
    transform: translateX(0);
}

/* هدر drawer */
.drawer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.drawer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-md);
    color: var(--text-primary);
}

.drawer-brand span {
    color: var(--color-blue);
}

/* بخش‌های drawer */
.drawer-section {
    padding: 16px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-section-head {
    margin-bottom: 10px;
}

.drawer-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-decoration: none;
    padding: 6px 4px;
    transition: color var(--ease-fast);
}

.drawer-section-title:hover {
    color: var(--color-blue);
}

.drawer-section-title svg {
    color: var(--color-blue);
    flex-shrink: 0;
}

/* لیست بازی‌ها */
.drawer-games-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-inline-start: 8px;
}

.drawer-game-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--ease-fast);
}

.drawer-game-item:hover {
    background: var(--color-blue-subtle);
}

.drawer-game-item img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-xs);
    object-fit: cover;
    flex-shrink: 0;
}

.drawer-game-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.drawer-game-name {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    line-height: 1.2;
}

.drawer-game-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-xs);
    color: var(--text-muted);
}

/* لینک "همه بازی‌ها" */
.drawer-all-games {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 7px 10px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-xs);
    color: var(--color-blue);
    border: 1px solid rgba(13, 144, 205, 0.25);
    border-radius: var(--radius-pill);
    transition: background var(--ease-fast), border-color var(--ease-fast);
    text-decoration: none;
}

.drawer-all-games:hover {
    background: var(--color-blue-subtle);
    border-color: var(--color-blue);
}

/* ناوبری سایر لینک‌ها */
.drawer-nav {
    padding: 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.drawer-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: color var(--ease-fast), background var(--ease-fast);
}

.drawer-nav li a:hover {
    color: var(--color-blue);
    background: var(--color-blue-subtle);
}

.drawer-nav li a svg {
    flex-shrink: 0;
    color: var(--text-muted);
}

.drawer-nav li a:hover svg {
    color: var(--color-blue);
}

/* دکمه ورود */
.drawer-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 16px 0;
    padding: 13px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border-radius: var(--radius-pill);
    color: var(--text-white);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: box-shadow var(--ease-fast), transform var(--ease-fast);
}

.drawer-btn-login:hover {
    box-shadow: var(--shadow-blue);
    transform: translateY(-2px);
    color: var(--text-white);
}

/* فوتر drawer */
.drawer-footer {
    margin-top: 20px;
    padding: 14px 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-footer p {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    text-align: center;
}

/* ── Responsive هدر ── */
@media (max-width: 991px) {
    .site-header {
        display: none !important;
    }

    .mobile-header {
        display: flex;
    }
}

@media (min-width: 992px) {
    .mobile-header,
    .mobile-drawer,
    .drawer-overlay {
        display: none !important;
    }
}

/* فشرده کردن navbar در تبلت */
@media (max-width: 1200px) {
    .header-nav > li > a {
        padding: 9px 11px;
        font-size: 12.5px;
    }

    .header-search input {
        width: 155px;
    }

    .header-search input:focus {
        width: 210px;
    }

    .btn-login {
        padding: 9px 14px;
    }
}

/* ══════════════════════════════════════
   FOOTER (هماهنگ کامل با هدر)
══════════════════════════════════════ */

.site-footer {
    position: relative;
    background: rgba(22, 24, 32, 0.65);  /* دقیقاً مثل هدر */
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-top: 1px solid rgba(13, 144, 205, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    padding: 72px 0 0;
    margin-top: 0;
}

.footer-glow-line {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-blue) 20%, var(--color-gold) 50%, var(--color-red) 80%, transparent);
    opacity: 0.55;
}

/* Grid اصلی */
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.5fr;
    gap: 48px 32px;
    padding-bottom: 56px;
    align-items: stretch;
}

.footer-col {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* ── برند ── */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.footer-logo img {
    width: 48px; height: 48px;
    object-fit: contain;
    transition: transform 0.3s;
}
.footer-logo:hover img { transform: rotate(-8deg) scale(1.06); }
.footer-logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: var(--fs-lg);
    color: var(--text-primary);
}
.footer-logo-text span { color: var(--color-blue); }

.footer-brand-desc {
    font-weight: 300;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 2;
    max-width: 100%;           /* حذف محدودیت عرض */
    text-align: justify;      /* تراز وسط از دو طرف */
    margin: 12px 0 16px;
}

.footer-social {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}
.footer-social-icon {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.footer-social-icon:hover {
    background: var(--color-blue-subtle);
    border-color: rgba(13,144,205,0.35);
    color: var(--color-blue);
    transform: translateY(-3px);
}

/* ── عناوین ستون‌ها ── */
.footer-col-title {
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text-primary);
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: relative;
}
.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: -1px; right: 0;
    width: 32px; height: 2px;
    background: var(--color-blue);
    border-radius: 2px;
}

/* ── بازی‌ها ── */
.footer-games-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.footer-game-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s;
}
.footer-game-item:hover { background: rgba(255,255,255,0.04); }
.footer-game-item img { width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }
.footer-game-name { font-weight: 500; font-size: var(--fs-sm); color: var(--text-secondary); transition: color 0.2s; }
.footer-game-item:hover .footer-game-name { color: var(--text-primary); }

/* لینک همه بازی‌ها (ساده، بدون کادر) */
.footer-all-games {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-blue);
    font-weight: 500;
    font-size: var(--fs-sm);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s;
}
.footer-all-games:hover {
    color: var(--color-blue-light);
    background: none;  /* حذف هرگونه پس‌زمینه */
    border: none;
}
.footer-all-games svg {
    transition: transform 0.2s;
}
.footer-all-games:hover svg {
    transform: translateX(-3px);
}

/* ── لینک‌های سریع ── */
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.footer-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 6px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 300;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.footer-link:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}
.footer-link svg { color: var(--text-muted); }
.footer-link:hover svg { color: var(--color-blue); }

/* ── ارتباط با ما ── */
.footer-contact-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    font-weight: 300;
    color: var(--text-secondary);
    text-decoration: none;
}
.footer-contact-item:hover { color: var(--color-blue); }
.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-xs);
    color: var(--text-muted);
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}
.footer-contact-item:hover .footer-contact-icon {
    background: var(--color-blue-subtle);
    color: var(--color-blue);
}

/* دکمه دانلود رایگان */
.footer-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border-radius: var(--radius-pill);
    color: #fff;
    font-weight: 500;
    font-size: var(--fs-sm);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: auto;
}
.footer-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
    color: #fff;
}


/* ── همکاران ── */
.footer-partners {
    padding-bottom: 48px;
    margin-top: 20px;
}
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.partner-card {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #1a1b1f;
    border: 1px solid rgba(255,255,255,0.06);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.partner-card:hover {
    border-color: rgba(255,255,255,0.15);
    box-shadow: 0 0 0 4px rgba(13,144,205,0.1);
}
.partner-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Bottom Bar */
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 20px 0;
    background: rgba(0,0,0,0.2);
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copy { font-weight: 300; font-size: var(--fs-xs); color: #b0b3b8; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal-link { font-weight: 300; font-size: var(--fs-xs); color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-legal-link:hover { color: var(--color-blue); }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */

@media (max-width: 1199px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-col--brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 32px; }
    .footer-brand-desc { max-width: 100%; }
    .feedback-inline { flex-wrap: wrap; }
    .feedback-email, .feedback-msg { flex: 1 1 100%; }
}

@media (max-width: 991px) {
    .site-footer { padding-top: 56px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
    .footer-col--brand { grid-column: 1 / -1; flex-direction: column; gap: 18px; }
    .feedback-inline { flex-direction: column; }
    .footer-submit-btn { width: 100%; }
}

@media (max-width: 575px) {
    .site-footer { padding-top: 44px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
    .footer-col--brand,
    .footer-col--contact { grid-column: 1 / -1; }
    .partners-grid { gap: 12px; }
    .partner-card { width: 60px; height: 60px; }
    .footer-bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
    .footer-legal { justify-content: center; }
}

/* ══════════════════════════════════════
   AUTH MODAL (Glassmorphism قوی)
══════════════════════════════════════ */

.auth-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.auth-modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    background: rgba(16, 18, 26, 0.35);  /* شفاف‌تر */
    backdrop-filter: blur(35px) saturate(180%);
    -webkit-backdrop-filter: blur(35px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 420px;
    padding: 36px 28px 32px;
    box-shadow: 0 30px 50px rgba(0,0,0,0.6), 0 0 45px rgba(13,144,205,0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    position: relative;
}

.auth-modal-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    z-index: 2;
}

.auth-close-btn:hover {
    background: var(--color-red-subtle);
    color: var(--color-red);
    border-color: var(--color-red);
}

.auth-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 28px;
}

/* تب‌ها */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    border-radius: var(--radius-pill);
    background: rgba(255,255,255,0.04);
    padding: 3px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-weight: 500;
    font-size: var(--fs-sm);
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: 0.2s;
}

.auth-tab.active {
    background: var(--color-blue);
    color: white;
    box-shadow: 0 4px 12px rgba(13,144,205,0.4);
}

/* فرم‌ها */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: opacity 0.2s;
}

.auth-form.hidden {
    display: none;
}

.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
    align-items: center;
}

.auth-input {
    width: 100%;
    padding: 12px 44px 12px 16px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    outline: none;
    transition: 0.2s;
}

.auth-input:focus {
    border-color: var(--color-blue);
    background: var(--color-blue-subtle);
}

.auth-input.success {
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46,204,113,0.2);
}

.auth-input.error {
    border-color: var(--color-red);
    box-shadow: 0 0 0 3px rgba(184,14,19,0.2);
}

.auth-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    font-weight: 600;
    font-size: var(--fs-base);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 8px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

.auth-link {
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-link button {
    background: none;
    border: none;
    color: var(--color-blue);
    cursor: pointer;
    font-weight: 500;
    font-size: inherit;
    text-decoration: underline;
}

.auth-link button:hover {
    color: var(--color-blue-light);
}

/* OTP */
.otp-group {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-modal {
        padding: 28px 20px 24px;
    }
}

/* راست‌چین کردن فیلد شماره تماس در ثبت‌نام */
#regPhone {
    direction: rtl;
    text-align: right;
}

/* ══════════════════════════════════════
   BACK TO TOP BUTTON
══════════════════════════════════════ */

.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;                 /* در RTL، right = سمت راست */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 22, 32, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    box-shadow: 0 12px 30px rgba(184, 14, 19, 0.3);   /* سایه قرمز جایگزین آبی */
    border-color: rgba(184, 14, 19, 0.5);              /* حاشیه قرمز جایگزین آبی */
}

/* دایره چرخان با خط‌چین قرمز */
.back-to-top-btn::before {
    content: '';
    position: absolute;
    inset: -6px;                 /* کمی بزرگ‌تر از دکمه */
    border-radius: 50%;
    border: 2px dashed var(--color-red);
    opacity: 0.7;
    animation: spin 12s linear infinite;
    pointer-events: none;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* مخفی در موبایل (و تبلت‌های کوچک) */
@media (max-width: 991px) {
    .back-to-top-btn {
        display: none !important;
    }
}

/* ══════════════════════════════════════
   CUSTOM CURSOR (توپ قرمز شیشه‌ای)
══════════════════════════════════════ */

.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(184, 14, 19, 0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1.5px solid rgba(184, 14, 19, 0.7);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5),   /* سایه برای عمق */
                0 0 12px rgba(184, 14, 19, 0.6);  /* درخشش قرمز */
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, border-width 0.2s ease;
    will-change: left, top;
    display: none;               /* پیش‌فرض مخفی (در موبایل) */
}

/* فعال‌سازی فقط در دسکتاپ */
body.desktop-cursor .custom-cursor {
    display: block;
}

/* حالت hover روی عناصر */
body.desktop-cursor .custom-cursor--hover {
    width: 40px;
    height: 40px;
    background: rgba(184, 14, 19, 0.5);
    border-width: 2.5px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(184, 14, 19, 0.8);
}

/* مخفی در موبایل */
@media (max-width: 991px) {
    .custom-cursor {
        display: none !important;
    }
}

/* ===== OTP Inputs ===== */
.otp-group {
    direction: ltr !important;
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

.otp-input {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    direction: ltr !important;
}

.otp-input:focus {
    border-color: var(--color-blue) !important;
    box-shadow: 0 0 0 3px rgba(13, 144, 205, 0.3) !important;
    outline: none;
    background: rgba(13, 144, 205, 0.05);
}


