/* ==========================================================================
   Victor Trader — بخش‌های صفحه اصلی
   نسخه ۱.۰ — برای قالب آتور
   همه کلاس‌ها با پیشوند vt- تا با استایل‌های قالب تداخل نکنند.
   ========================================================================== */

:root {
    --vt-green: #00b894;
    --vt-green-dark: #027a62;
    --vt-green-light: #2dd4a7;
    --vt-mint: #eff9f1;
    --vt-mint-soft: #f7fbf9;
    --vt-ink: #162320;
    --vt-text: #212529;
    --vt-body: #4a5a56;
    --vt-muted: #5a6b66;
    --vt-faint: #6b7b77;
    --vt-line: #dceae3;
    --vt-line-soft: #edf3f0;
    --vt-gold: #e8b339;
    --vt-up: #16a34a;
    --vt-down: #e5484d;
    --vt-on-green: #ffffff;
    --vt-glow: rgba(0, 184, 148, 0.16);
    --vt-gold: #e8b339;
    --vt-gold-bg: #fff8e8;
    --vt-gold-line: #f2e0b5;
    --vt-gold-text: #8a6a1c;
    --vt-up: #16a34a;
    --vt-up-glow: rgba(22, 163, 74, 0.18);
    --vt-down: #e5484d;
    --vt-down-text: #a03a3d;
    --vt-down-bg: #fdf3f3;
    --vt-down-line: #f4d9d9;
    --vt-ink-soft: #23372f;
    --vt-ink-faint: #8fa79f;

    --vt-radius: 18px;
    --vt-radius-lg: 24px;
    --vt-shadow: 0 8px 28px rgba(22, 35, 32, .08);
}

.vt-section {
    direction: rtl;
    /* اگر فونت قالب ست شده باشد، همان برنده می‌شود؛ وگرنه پشته برند */
    font-family: var(--vt-font-fa, inherit);
    color: var(--vt-text);
    padding: 72px 0;
}

.vt-section--tight { padding: 48px 0; }
.vt-section--mint { background: var(--vt-mint-soft); }

.vt-container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

.vt-section *,
.vt-section *::before,
.vt-section *::after { box-sizing: border-box; }

/* ---------- عنوان بخش ---------- */
.vt-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}
.vt-head__text { display: flex; flex-direction: column; gap: 8px; }
.vt-head h2 {
    margin: 0;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--vt-ink);
}
.vt-head p {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--vt-muted);
}
.vt-head__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 15px;
    font-weight: 700;
    color: var(--vt-green-dark);
    white-space: nowrap;
}

/* ---------- دکمه‌ها ---------- */
.vt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.vt-btn--primary { background: var(--vt-green); color: var(--vt-on-green); }
.vt-btn--primary:hover { background: var(--vt-green-dark); color: var(--vt-on-green, #fff); }
.vt-btn--ghost {
    background: var(--vt-surface, #fff);
    color: var(--vt-ink);
    border: 1px solid var(--vt-line);
}
.vt-btn--ghost:hover { border-color: var(--vt-green); color: var(--vt-green-dark); }
.vt-btn--gold { background: var(--vt-gold); color: #2a1e00; }
.vt-btn--gold:hover { background: #d7a32c; color: #2a1e00; }
.vt-btn--light { background: var(--vt-green-light); color: var(--vt-ink); }
.vt-btn--light:hover { background: #24c096; color: var(--vt-ink); }
.vt-btn--outline-dark {
    background: transparent;
    color: #dceae3;
    border: 1px solid #2e4a42;
}
.vt-btn--outline-dark:hover { border-color: var(--vt-green-light); color: var(--vt-on-ink, #fff); }
.vt-btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; border-radius: 11px; }
.vt-btn--block { width: 100%; }

.vt-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--vt-mint);
    color: var(--vt-green-dark);
    font-size: 13px;
    font-weight: 700;
}

/* ---------- هیرو ---------- */
.vt-hero { background: var(--vt-mint-soft); padding: 72px 0 68px; }
.vt-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}
.vt-hero__copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.vt-hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.38;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--vt-ink);
}
.vt-hero__lead {
    margin: 0;
    font-size: 17px;
    line-height: 2.1;
    color: var(--vt-body);
}
.vt-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 4px; }
.vt-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    padding-top: 12px;
}
.vt-hero__point {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--vt-body);
}
.vt-hero__point svg { flex: 0 0 auto; }

/* کارت چارت */
.vt-chart-card {
    background: var(--vt-surface, #fff);
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-radius-lg);
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vt-chart-card__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vt-chart-card__sym { font-size: 16px; font-weight: 800; color: var(--vt-ink); }
.vt-chart-card__chg { font-size: 13px; font-weight: 700; color: var(--vt-up); }
.vt-chart-card__tag {
    margin-inline-start: auto;
    padding: 5px 11px;
    background: var(--vt-mint);
    color: var(--vt-green-dark);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
}
.vt-chart-card svg { width: 100%; height: auto; display: block; }
.vt-chart-card__stats { display: flex; gap: 10px; }
.vt-stat-mini {
    flex: 1 1 0;
    background: var(--vt-mint-soft);
    border-radius: 12px;
    padding: 11px 14px;
}
.vt-stat-mini__label { font-size: 11.5px; color: var(--vt-faint); }
.vt-stat-mini__value { font-size: 16px; font-weight: 800; color: var(--vt-ink); }
.vt-stat-mini__value--up { color: var(--vt-up); }

/* ---------- نوار آمار ---------- */
.vt-stats {
    border-top: 1px solid var(--vt-line);
    border-bottom: 1px solid var(--vt-line);
    padding: 34px 0;
}
.vt-stats__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.vt-stats__item { display: flex; flex-direction: column; gap: 4px; }
.vt-stats__num { font-size: 30px; font-weight: 800; color: var(--vt-ink); line-height: 1.2; }
.vt-stats__label { font-size: 13.5px; color: var(--vt-muted); }
.vt-stats__sep { width: 1px; align-self: stretch; min-height: 42px; background: var(--vt-line); }

/* ---------- فیلتر دسته ---------- */
.vt-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.vt-chip {
    padding: 9px 18px;
    border-radius: 99px;
    background: var(--vt-mint-soft);
    color: var(--vt-body);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}
.vt-chip:hover { background: var(--vt-mint); color: var(--vt-green-dark); }
.vt-chip.is-active { background: var(--vt-ink); color: var(--vt-on-ink, #fff); }

/* ---------- گرید و کارت دوره ---------- */
.vt-section .vt-grid { display: grid; gap: 24px; width: 100%; }
.vt-section .vt-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vt-section .vt-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* هیچ آیتمی نباید از ستون خودش پهن‌تر شود */
.vt-section .vt-grid > * { min-width: 0; max-width: 100%; }

.vt-card {
    display: flex;
    flex-direction: column;
    background: var(--vt-surface, #fff);
    border: 1px solid var(--vt-line);
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.vt-card:hover { box-shadow: var(--vt-shadow); transform: translateY(-2px); }
.vt-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--vt-mint);
    overflow: hidden;
}
.vt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-card__badge {
    position: absolute;
    top: 14px;
    inset-inline-end: 14px;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--vt-gold);
    color: #2a1e00;
    font-size: 12px;
    font-weight: 800;
}
.vt-card__badge--new { background: var(--vt-surface, #fff); color: var(--vt-ink); }
.vt-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 22px 22px;
    flex: 1 1 auto;
}
.vt-card__cat { font-size: 12.5px; font-weight: 700; color: var(--vt-green-dark); }
.vt-card__title { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.6; }
.vt-card__title a { color: var(--vt-ink); text-decoration: none; }
.vt-card__title a:hover { color: var(--vt-green-dark); }
.vt-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    font-size: 13px;
    color: var(--vt-muted);
}
.vt-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vt-card__spacer { flex: 1 1 auto; }
.vt-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--vt-line-soft);
}
.vt-price { display: flex; flex-direction: column; gap: 2px; }
.vt-price del { font-size: 12.5px; color: #97a5a1; }
.vt-price ins { text-decoration: none; }
.vt-price__now { font-size: 19px; font-weight: 800; color: var(--vt-ink); }
.vt-price__unit { font-size: 13px; font-weight: 600; color: var(--vt-muted); }
.vt-price--free { font-size: 17px; font-weight: 800; color: var(--vt-up); }

/* ---------- بلوک ابزار (تیره) ---------- */
.vt-tool { padding: 72px 0; }
.vt-tool__inner {
    background: var(--vt-ink);
    border-radius: 28px;
    padding: 52px 56px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
}
.vt-tool__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.vt-tool__tag {
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--vt-glow);
    color: var(--vt-green-light);
    font-size: 13px;
    font-weight: 700;
}
.vt-tool h2 { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.55; color: var(--vt-on-ink, #fff); }
.vt-tool p { margin: 0; font-size: 16px; line-height: 2.1; color: #b9cec7; }
.vt-tool__actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }

.vt-panel {
    background: #0c1a16;
    border: 1px solid var(--vt-ink-soft);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.vt-panel__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vt-panel__title { font-size: 14px; font-weight: 700; color: var(--vt-on-ink, #fff); }
.vt-panel__state {
    padding: 5px 11px;
    border-radius: 8px;
    background: var(--vt-up-glow);
    color: var(--vt-green-light);
    font-size: 12px;
    font-weight: 700;
}
.vt-meter { display: flex; flex-direction: column; gap: 9px; }
.vt-meter__row { display: flex; justify-content: space-between; font-size: 13px; color: var(--vt-ink-faint); }
.vt-meter__row b { color: var(--vt-on-ink, #fff); font-weight: 700; }
.vt-meter__track { height: 9px; background: #1b2e28; border-radius: 6px; overflow: hidden; }
.vt-meter__fill { height: 9px; background: var(--vt-green-light); border-radius: 6px; }
.vt-meter__fill--warn { background: var(--vt-gold); }
.vt-panel__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 4px; }
.vt-panel__stat { background: #14241e; border-radius: 12px; padding: 12px 14px; }
.vt-panel__stat span { display: block; font-size: 11.5px; color: var(--vt-ink-faint); }
.vt-panel__stat b { font-size: 16px; font-weight: 800; color: var(--vt-on-ink, #fff); }
.vt-panel__stat b.is-up { color: var(--vt-green-light); }

/* ---------- ویژگی‌ها ---------- */
/* زیر .vt-section محدود شده تا با کارت شاخص وبلاگ (هم‌نام) قاطی نشود */
.vt-section .vt-feature {
    width: auto;
    flex: 0 1 auto;
    background: var(--vt-mint-soft);
    border-radius: var(--vt-radius);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: start;
    gap: 12px;
}
.vt-section .vt-feature h3 { margin: 0; font-size: 17px; font-weight: 800; color: var(--vt-ink); }
.vt-section .vt-feature p { margin: 0; font-size: 14px; line-height: 2; color: var(--vt-body); }
.vt-section .vt-feature svg { color: var(--vt-green); flex: none; }

/* ---------- نظرات ---------- */
.vt-quote {
    margin: 0;
    border: 1px solid var(--vt-line);
    border-radius: var(--vt-radius);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--vt-surface, #fff);
}
.vt-stars { display: flex; gap: 3px; color: var(--vt-gold); }
.vt-stars svg { fill: currentColor; }
.vt-stars .is-empty { color: var(--vt-line); }
.vt-quote p { margin: 0; font-size: 15px; line-height: 2.1; color: #2f3e3a; }
.vt-quote footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--vt-line-soft);
}
.vt-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--vt-mint);
    color: var(--vt-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 800;
    flex: 0 0 auto;
    overflow: hidden;
}
.vt-avatar img { width: 100%; height: 100%; object-fit: cover; }
.vt-quote__who { display: flex; flex-direction: column; gap: 2px; }
.vt-quote__name { font-size: 14px; font-weight: 700; color: var(--vt-ink); }
.vt-quote__role { font-size: 12.5px; color: var(--vt-faint); }

/* ---------- مقالات ---------- */
.vt-post { display: flex; flex-direction: column; gap: 14px; }
.vt-post__media {
    display: block;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    overflow: hidden;
    background: var(--vt-mint);
}
.vt-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-post__meta { font-size: 12.5px; color: var(--vt-faint); }
.vt-post h3 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.7; }
.vt-post h3 a { color: var(--vt-ink); text-decoration: none; }
.vt-post h3 a:hover { color: var(--vt-green-dark); }
.vt-post p { margin: 0; font-size: 14px; line-height: 2; color: var(--vt-muted); }

/* ---------- خبرنامه ---------- */
.vt-newsletter {
    background: var(--vt-mint);
    border-radius: var(--vt-radius-lg);
    padding: 48px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.vt-newsletter__copy { display: flex; flex-direction: column; gap: 10px; flex: 1 1 320px; }
.vt-newsletter h2 { margin: 0; font-size: 28px; font-weight: 800; color: var(--vt-ink); }
.vt-newsletter p { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--vt-body); }
.vt-newsletter form { display: flex; gap: 12px; flex-wrap: wrap; }
.vt-newsletter input[type="email"] {
    width: 300px;
    max-width: 100%;
    height: 54px;
    padding: 0 18px;
    border: 1px solid #c9ded5;
    border-radius: 13px;
    background: var(--vt-surface, #fff);
    font-family: inherit;
    font-size: 15px;
    color: var(--vt-ink);
}
.vt-newsletter input[type="email"]:focus {
    outline: 2px solid var(--vt-green);
    outline-offset: 1px;
}
.vt-newsletter button {
    height: 54px;
    padding: 0 28px;
    background: var(--vt-ink);
    color: var(--vt-on-ink, #fff);
    border: 0;
    border-radius: 13px;
    font-family: inherit;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
}
.vt-newsletter button:hover { background: #0d1a16; }

.vt-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.vt-empty {
    padding: 40px;
    text-align: center;
    color: var(--vt-faint);
    border: 1px dashed var(--vt-line);
    border-radius: var(--vt-radius);
    font-size: 14.5px;
}

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

@media (max-width: 1024px) {
    .vt-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .vt-hero h1 { font-size: 38px; }
    .vt-section .vt-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vt-tool__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 32px; }
    .vt-stats__row { flex-wrap: wrap; justify-content: flex-start; gap: 24px 40px; }
    .vt-stats__sep { display: none; }
}

@media (max-width: 782px) {
    .vt-section { padding: 48px 0; }
    .vt-hero { padding: 40px 0 44px; }
    .vt-hero h1 { font-size: 30px; line-height: 1.5; }
    .vt-hero__lead { font-size: 15px; }
    .vt-btn { width: 100%; }
    .vt-btn--sm { width: auto; }
    .vt-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 24px; }
    .vt-head h2 { font-size: 24px; }
    .vt-section .vt-grid--3,
    .vt-section .vt-grid--4 { grid-template-columns: minmax(0, 1fr); }
    .vt-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
    .vt-chip { white-space: nowrap; }
    .vt-tool__inner { padding: 28px 22px; border-radius: 22px; }
    .vt-tool h2 { font-size: 24px; }
    .vt-newsletter { padding: 26px 22px; gap: 20px; }
    .vt-newsletter h2 { font-size: 21px; }
    .vt-newsletter form { width: 100%; flex-direction: column; }
    .vt-newsletter input[type="email"], .vt-newsletter button { width: 100%; }
    .vt-stats { padding: 22px 0; }
    .vt-stats__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
    .vt-stats__num { font-size: 20px; }
    .vt-stats__label { font-size: 11.5px; }
    .vt-stats__item { align-items: center; text-align: center; }
}

/* حالت شب از inc/modules/vt-dark.php می‌آید: همان توکن‌های رنگی،
   این‌بار زیر html[data-theme="dark"]. این‌جا چیز جداگانه‌ای لازم نیست. */
