/* =========================================================================
   Victor Trader — فوتر سایت
   رنگ‌ها از «تنظیمات آتور ← استایل و رنگ» و «فوتر» می‌آیند.
   ====================================================================== */

.vt-foot {
    --vt-foot-bg: #162320;
    --vt-foot-deep: #0f1a17;
    --vt-foot-fg: #ffffff;
    --vt-foot-soft: #b9c7c2;
    --vt-foot-faint: #8b9c96;
    --vt-foot-hair: rgba(255, 255, 255, .13);
    --vt-foot-tile: rgba(255, 255, 255, .07);

    margin-top: 60px;
    background: var(--vt-foot-bg);
    color: var(--vt-foot-fg);
    font-size: 13px;
    line-height: 2;
    overflow-x: clip;
}

.vt-foot__in {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
    box-sizing: border-box;
}

.vt-foot a { color: inherit; text-decoration: none; }
.vt-foot li { margin: 0; padding: 0; list-style: none; }
.vt-foot li::before, .vt-foot li::marker { content: none; }
.vt-foot a:hover { color: var(--vt-green, #00b894); }
.vt-foot ul { list-style: none; margin: 0; padding: 0; }
.vt-foot .vt-i { flex-shrink: 0; }

/* ==========================================================================
   خبرنامه
   ========================================================================== */

.vt-foot__news {
    background: var(--vt-foot-deep);
    position: relative;
    overflow: hidden;
}
.vt-foot__news-in {
    position: relative;
    padding-block: 30px;
    display: flex;
    align-items: center;
    gap: 34px;
    flex-wrap: wrap;
}
.vt-foot__news-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--vt-glow, rgba(0, 184, 148, .14));
    color: var(--vt-green, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vt-foot__news-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.vt-foot .vt-foot__news-title { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.7; color: var(--vt-foot-fg); }
.vt-foot .vt-foot__news-sub { margin: 0; font-size: 12.5px; color: var(--vt-foot-soft); line-height: 1.9; }
.vt-foot__news-note { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; }
.vt-foot__news-note.is-ok { color: var(--vt-up, #16a34a); }
.vt-foot__news-note.is-bad { color: var(--vt-down, #e5484d); }

.vt-foot__news-form {
    position: relative;
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.vt-foot .vt-foot__news-input {
    width: 300px;
    max-width: 100%;
    height: 52px;
    box-sizing: border-box;
    border-radius: 14px;
    background: var(--vt-foot-tile);
    border: 1px solid var(--vt-foot-hair);
    padding: 0 16px;
    font: inherit;
    font-size: 13.5px;
    color: var(--vt-foot-fg);
}
.vt-foot .vt-foot__news-input::placeholder { color: var(--vt-foot-faint); }
.vt-foot .vt-foot__news-input:focus {
    outline: none;
    border-color: var(--vt-green, #00b894);
    box-shadow: 0 0 0 3px var(--vt-glow, rgba(0, 184, 148, .16));
}
.vt-foot .vt-foot__news-btn {
    height: 52px;
    padding: 0 26px;
    border: 0;
    border-radius: 14px;
    background: var(--vt-gold, #e8b339);
    color: var(--vt-gold-text, #2a1e00);
    font: inherit;
    font-size: 14.5px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: filter .18s ease, transform .18s ease;
}
.vt-foot .vt-foot__news-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
/* دور از چشم، ولی بدون ساختن فضای اسکرول اضافه.
   نسخه‌ی قبلی left:-9999px بود که در صفحه‌ی راست‌چین یک ناحیه‌ی خالی
   ۱۰ هزار پیکسلی می‌ساخت و در موبایل صفحه سفید و اسکرول‌شدنی می‌شد. */
.vt-foot__hp {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    border: 0;
    overflow: hidden;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}
/* فرم‌های خبرنامه‌ی وبلاگ و شورت‌کد هم همین فیلدهای پنهان را دارند */
.vt-blog__cta form input[type="hidden"],
.vt-newsletter form input[type="hidden"] { display: none; }

/* ==========================================================================
   بدنه
   ========================================================================== */

.vt-foot__body { padding-block: 44px 32px; }

.vt-foot__grid {
    display: grid;
    grid-template-columns: repeat(var(--vt-foot-cols, 4), minmax(0, 1fr));
    gap: 40px;
    align-items: start;
}
.vt-foot__grid--1 { --vt-foot-cols: 1; }
.vt-foot__grid--2 { --vt-foot-cols: 2; }
.vt-foot__grid--3 { --vt-foot-cols: 3; }
.vt-foot__grid--4 { --vt-foot-cols: 4; }
.vt-foot__grid--5 { --vt-foot-cols: 5; }

.vt-foot__cell { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.vt-foot__widget { min-width: 0; }

/* ابزارک‌های عمومی وردپرس هم باید با فوتر هم‌رنگ باشند */
.vt-foot__widget ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
/* فقط لینک‌های متنی؛ دکمه‌ها و آیکون‌ها رنگ خودشان را دارند */
.vt-foot .vt-foot__widget a:not(.vt-foot__ticket):not(.vt-foot__social-a):not(.vt-foot__badge):not(.vt-foot__logo):not(.vt-foot__row) {
    color: var(--vt-foot-soft);
}
.vt-foot .vt-foot__widget a:not(.vt-foot__ticket):not(.vt-foot__social-a):not(.vt-foot__badge):not(.vt-foot__logo):not(.vt-foot__row):hover {
    color: var(--vt-green, #00b894);
}
.vt-foot__widget p { margin: 0 0 10px; color: var(--vt-foot-soft); font-size: 13px; line-height: 2; }
.vt-foot__widget p:last-child { margin-bottom: 0; }

.vt-foot__brand { display: flex; flex-direction: column; gap: 17px; min-width: 0; }
.vt-foot__logo { display: inline-flex; align-items: center; gap: 11px; }
.vt-foot__logo img { max-height: 48px; width: auto; }
.vt-foot__mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--vt-green, #00b894);
    color: var(--vt-on-green, #062b23);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vt-foot__names { display: flex; flex-direction: column; line-height: 1.5; }
.vt-foot .vt-foot__name { font-size: 17px; font-weight: 900; color: var(--vt-foot-fg); }
.vt-foot__latin { font-size: 10.5px; letter-spacing: 1.6px; color: var(--vt-foot-faint); }
.vt-foot .vt-foot__about { margin: 0; font-size: 12.5px; line-height: 2.1; color: var(--vt-foot-soft); }

.vt-foot__social { display: flex; gap: 9px; flex-wrap: wrap; }
.vt-foot__social-a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--vt-foot-tile);
    border: 1px solid var(--vt-foot-hair);
    color: var(--vt-foot-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .18s ease, border-color .18s ease;
}
.vt-foot__social-a:hover { color: var(--vt-green, #00b894); border-color: var(--vt-green, #00b894); }
/* لوگوی برند: فونت‌آوسام یا تصویر آپلودشده */
.vt-foot__social-a i { font-size: 18px; line-height: 1; }
.vt-foot__social-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    display: block;
}

/* ستون منو */
.vt-foot__col { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.vt-foot .vt-foot__col-title { margin: 0 0 3px; font-size: 14px; font-weight: 800; color: var(--vt-foot-fg); }
.vt-foot__links { display: flex; flex-direction: column; gap: 11px; }
.vt-foot__links li { margin: 0; }
.vt-foot .vt-foot__links a { font-size: 13px; color: var(--vt-foot-soft); line-height: 1.8; }

.vt-foot__acc { display: none; }

/* تماس */
.vt-foot__contact { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.vt-foot__row { display: flex; align-items: center; gap: 10px; }
.vt-foot__row-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--vt-foot-tile);
    color: var(--vt-green, #00b894);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vt-foot__row-text { display: flex; flex-direction: column; line-height: 1.6; min-width: 0; }
.vt-foot__row-note { font-size: 11px; color: var(--vt-foot-faint); }
.vt-foot .vt-foot__row-main { font-size: 13.5px; font-weight: 800; color: var(--vt-foot-fg); overflow-wrap: anywhere; }
.vt-foot__row-main.is-ltr { direction: ltr; text-align: right; }

.vt-foot .vt-foot__ticket {
    height: 46px;
    border-radius: 13px;
    border: 1.5px solid var(--vt-green, #00b894);
    color: var(--vt-green, #00b894);
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    transition: background .18s ease, color .18s ease;
}
.vt-foot .vt-foot__ticket,
.vt-foot .vt-foot__widget .vt-foot__ticket { color: var(--vt-green, #00b894); }

.vt-foot .vt-foot__ticket:hover,
.vt-foot .vt-foot__widget .vt-foot__ticket:hover {
    background: var(--vt-green, #00b894);
    color: var(--vt-on-green, #fff);
}
.vt-foot .vt-foot__ticket:hover .vt-i,
.vt-foot .vt-foot__widget .vt-foot__ticket:hover .vt-i { color: inherit; }

/* هاور لینک‌ها — وزن برابر با قاعده‌های بالا */
.vt-foot .vt-foot__links a:hover,
.vt-foot .vt-foot__bottom-menu a:hover { color: var(--vt-green, #00b894); }

/* ==========================================================================
   نمادها و تضمین‌ها
   ========================================================================== */

.vt-foot__line { height: 1px; background: var(--vt-foot-hair); margin: 32px 0 24px; }

.vt-foot__trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.vt-foot__badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vt-foot__badge {
    width: 92px;
    height: 92px;
    border-radius: 16px;
    background: var(--vt-surface, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
}
.vt-foot__badge img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.vt-foot__badge--code > * { max-width: 100%; }
.vt-foot__badge--code img { max-height: 76px; }

.vt-foot .vt-foot__promises {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}
.vt-foot__promise {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    color: var(--vt-foot-soft);
}
.vt-foot__promise .vt-i { color: var(--vt-green, #00b894); }

/* داخل ستون ابزارک، تضمین‌ها و نمادها عمودی و جمع‌وجور می‌شوند */
.vt-foot .vt-foot__widget .vt-foot__promises {
    margin-inline-start: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}
.vt-foot__widget .vt-foot__badges { gap: 10px; }
.vt-foot__widget .vt-foot__badge { width: 78px; height: 78px; border-radius: 14px; }
.vt-foot__widget .vt-foot__badge--code { width: auto; height: auto; min-width: 78px; }

/* ردیف نمادها و تضمین‌ها: ابزارک‌ها کنار هم، نه زیر هم */
.vt-foot__trust > .vt-foot__widget { min-width: 0; }
.vt-foot .vt-foot__trust .vt-foot__promises {
    margin-inline-start: 0;
    flex-direction: row;
    align-items: center;
    gap: 26px;
}
.vt-foot__trust .vt-foot__badge { width: 92px; height: 92px; border-radius: 16px; }

/* ==========================================================================
   نوار پایین
   ========================================================================== */

.vt-foot__bottom { background: var(--vt-foot-deep); }
.vt-foot__bottom-in {
    min-height: 64px;
    padding-block: 12px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.vt-foot__copy { font-size: 12.5px; color: var(--vt-foot-faint); }
.vt-foot__bottom-side {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.vt-foot__bottom-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}
.vt-foot__bottom-menu li { margin: 0; }
.vt-foot .vt-foot__bottom-menu a { font-size: 12.5px; color: var(--vt-foot-soft); }
.vt-foot__sep { width: 1px; height: 16px; background: var(--vt-foot-hair); }
.vt-foot__risk { font-size: 12px; color: var(--vt-foot-faint); }

/* ==========================================================================
   بازگشت به بالا
   ========================================================================== */

.vt-totop {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--vt-green, #00b894);
    color: var(--vt-on-green, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--vt-shadow, 0 8px 22px rgba(0, 0, 0, .18));
    transition: transform .18s ease;
}
.vt-totop:hover { transform: translateY(-2px); }

/* ==========================================================================
   تبلت
   ========================================================================== */

@media (max-width: 1100px) {
    .vt-foot__grid { --vt-foot-cols: 2; gap: 34px; }
    .vt-foot__news-form { margin-inline-start: 0; width: 100%; }
    .vt-foot__news-input { flex-grow: 1; width: auto; }
}

/* ==========================================================================
   موبایل
   ========================================================================== */

@media (max-width: 782px) {
    .vt-foot { margin-top: 40px; }
    .vt-foot__in { padding-inline: 18px; }

    .vt-foot__news-in {
        padding-block: 22px;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 14px 12px;
    }
    .vt-foot__news-icon { width: 44px; height: 44px; border-radius: 13px; }
    .vt-foot__news-title { font-size: 15px; }
    .vt-foot__news-form { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 10px; }
    /* در موبایل کادر ایمیل باید راحت لمس و خوانده شود */
    .vt-foot .vt-foot__news-input {
        width: 100%;
        height: 56px;
        padding: 0 18px;
        font-size: 15px;
        border-radius: 15px;
    }
    .vt-foot .vt-foot__news-input::placeholder { font-size: 14px; }
    .vt-foot .vt-foot__news-btn { height: 54px; justify-content: center; font-size: 15px; }

    .vt-foot__body { padding-block: 26px 22px; }
    .vt-foot__grid { --vt-foot-cols: 1; gap: 20px; }
    .vt-foot__cell { gap: 18px; }

    .vt-foot__widget .vt-foot__col { display: none; }
    .vt-foot__widget .vt-foot__acc { display: block; }

    .vt-foot__acc { border-bottom: 1px solid var(--vt-foot-hair); }
    .vt-foot__acc-head {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 15px 0;
        color: var(--vt-foot-faint);
    }
    .vt-foot__acc-head::-webkit-details-marker { display: none; }
    .vt-foot__acc[open] .vt-foot__acc-head .vt-i { transform: rotate(180deg); }
    .vt-foot__acc .vt-foot__links { padding: 2px 0 16px; gap: 13px; }

    .vt-foot__line { margin: 20px 0 18px; }
    .vt-foot__trust { flex-direction: column; align-items: stretch; gap: 18px; }
    .vt-foot__badges { justify-content: space-between; gap: 10px; }
    .vt-foot__badge { flex-grow: 1; width: auto; height: 84px; border-radius: 15px; }
    .vt-foot .vt-foot__promises { margin-inline-start: 0; flex-direction: column; align-items: flex-start; gap: 12px; }

    .vt-foot__bottom-in { flex-direction: column; align-items: center; text-align: center; gap: 10px; padding-block: 16px 20px; }
    .vt-foot__bottom-side { margin-inline-start: 0; justify-content: center; }
    .vt-foot__sep { display: none; }
    .vt-foot__risk { font-size: 11px; }

    .vt-totop { inset-inline-end: 14px; bottom: 14px; width: 42px; height: 42px; }
}
