/* ============================================================
   Structure IND Indicators — استایل صفحه‌ی اندیکاتورها
   مستقل از Tailwind (حتی اگر Tailwind کامپایل شود، چیزی خراب نمی‌شود).
   رنگ‌های تم تیره پیش‌فرض‌اند؛ تم روشن از متغیرهای --l-* قالب می‌آید.
   ============================================================ */

.sind-indi {
    --i-surface: rgba(15, 23, 42, 0.6);
    --i-surface-2: rgba(255, 255, 255, 0.03);
    --i-border: rgba(255, 255, 255, 0.08);
    --i-border-hover: rgba(16, 185, 129, 0.4);
    --i-heading: #f8fafc;
    --i-text: #cbd5e1;
    --i-muted: #94a3b8;
    --i-brand: #10b981;
    --i-brand-text: #34d399;
    --i-brand-tint: rgba(16, 185, 129, 0.1);
    --i-on-brand: #060a14;
    --i-chip: rgba(255, 255, 255, 0.06);
    --i-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.7);
    --i-media-bg: linear-gradient(135deg, #0b1222 0%, #0f1b2d 100%);
    --i-dot: rgba(148, 163, 184, 0.14);
    --i-li: rgba(255, 255, 255, 0.03);
    --ph-up: #10b981;
    --ph-dn: #fb7185;
    --ph-ref: #cbd5e1;
    --ph-zone: 0.24;
    position: relative;
    color: var(--i-text);
}

html.sind-light .sind-indi {
    --i-surface: #ffffff;
    --i-surface-2: #f8fafc;
    --i-border: #dfe6ee;
    --i-border-hover: rgba(5, 150, 105, 0.55);
    --i-heading: #0b1222;
    --i-text: #334155;
    --i-muted: #56667a;
    --i-brand: #059669;
    --i-brand-text: #047857;
    --i-brand-tint: rgba(5, 150, 105, 0.09);
    --i-on-brand: #ffffff;
    --i-chip: #eef2f7;
    --i-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 24px 60px -28px rgba(15, 23, 42, 0.3);
    --i-media-bg: linear-gradient(135deg, #ecfdf5 0%, #f1f5f9 100%);
    --i-dot: rgba(15, 23, 42, 0.07);
    --i-li: #ffffff;
    --ph-up: #059669;
    --ph-dn: #e11d48;
    --ph-ref: #475569;
    --ph-zone: 0.2;
}

.sind-indi-wrap {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ---------- هیرو ---------- */
.sind-indi-hero {
    position: relative;
    padding: 8rem 0 2.5rem;
    overflow: hidden;
    isolation: isolate;
}
.sind-indi-hero::before {
    content: "";
    position: absolute;
    top: -6rem;
    right: 12%;
    width: 30rem;
    height: 30rem;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.12), transparent);
    pointer-events: none;
    z-index: -1;
}
html.sind-light .sind-indi-hero::before {
    background: radial-gradient(closest-side, rgba(5, 150, 105, 0.08), transparent);
}

.sind-indi-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    font-size: 0.875rem;
    color: var(--i-muted);
}
.sind-indi-crumb a { transition: color 0.2s; }
.sind-indi-crumb a:hover { color: var(--i-brand-text); }
.sind-indi-crumb span { color: var(--i-text); }
.sind-indi-crumb .sind-indi-ic { width: 0.9rem; height: 0.9rem; }

.sind-indi-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }

.sind-indi-pill {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 999px;
    background: var(--i-brand-tint);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--i-brand-text);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.7;
}
.sind-indi-pill--muted {
    background: var(--i-chip);
    border-color: var(--i-border);
    color: var(--i-muted);
    font-weight: 600;
}
.sind-indi-hero > .sind-indi-wrap > .sind-indi-pill { margin-bottom: 1.1rem; }

.sind-indi-h1 {
    margin: 0 0 1.1rem;
    font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem);
    font-weight: 900;
    line-height: 1.25;
    color: var(--i-heading);
    text-wrap: balance;
}
.sind-indi-lead {
    margin: 0 0 1.75rem;
    max-width: 44rem;
    font-size: 1.1rem;
    line-height: 2;
    color: var(--i-muted);
}

/* ---------- دکمه‌ها ---------- */
.sind-indi-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.sind-indi-actions--stack { flex-direction: column; margin-top: 1.25rem; }
.sind-indi-actions--stack .sind-indi-btn { width: 100%; }

.sind-indi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s, border-color 0.2s;
}
.sind-indi-btn .sind-indi-ic { width: 1.05rem; height: 1.05rem; flex: none; }

.sind-indi-btn--primary {
    background: linear-gradient(to left, #10b981, #059669);
    color: #060a14;
    box-shadow: 0 10px 28px -12px rgba(16, 185, 129, 0.55);
}
.sind-indi-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -12px rgba(16, 185, 129, 0.75);
}
html.sind-light .sind-indi-btn--primary {
    background: linear-gradient(to left, #059669, #047857);
    color: #ffffff;
    box-shadow: 0 10px 26px -12px rgba(4, 120, 87, 0.55);
}

.sind-indi-btn--ghost {
    border: 1px solid var(--i-border);
    background: transparent;
    color: var(--i-heading);
}
.sind-indi-btn--ghost:hover {
    border-color: var(--i-border-hover);
    background: var(--i-brand-tint);
    color: var(--i-brand-text);
}

.sind-indi-soon {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border-radius: 0.8rem;
    border: 1px dashed var(--i-border);
    color: var(--i-muted);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- بخش‌ها ---------- */
.sind-indi-section { padding: 1.5rem 0 3rem; }
.sind-indi-section--tight { padding-top: 0.5rem; padding-bottom: 2rem; }

.sind-indi-h2 {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--i-heading);
}
.sind-indi-h3 {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--i-heading);
}

.sind-indi-panel {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: var(--i-surface);
    border: 1px solid var(--i-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
html.sind-light .sind-indi-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: var(--l-shadow, 0 10px 28px -14px rgba(15, 23, 42, 0.14));
}

.sind-indi-note {
    margin: 0;
    font-size: 0.85rem;
    line-height: 2;
    color: var(--i-muted);
    text-align: justify;
}
.sind-indi-note strong { color: var(--i-heading); }

/* ---------- شبکه‌ی کارت‌ها ---------- */
.sind-indi-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr));
}

.sind-indi-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--i-surface);
    border: 1px solid var(--i-border);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.sind-indi-card:hover {
    transform: translateY(-4px);
    border-color: var(--i-border-hover);
    box-shadow: var(--i-shadow);
}
html.sind-light .sind-indi-card { box-shadow: var(--l-shadow, 0 10px 28px -14px rgba(15, 23, 42, 0.14)); }

.sind-indi-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--i-media-bg);
    border-bottom: 1px solid var(--i-border);
}
.sind-indi-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--i-dot) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}
.sind-indi-card__media img,
.sind-indi-card__media .sind-indi-ph {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sind-indi-badge {
    position: absolute;
    top: 0.8rem;
    inset-inline-start: 0.8rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(6, 10, 20, 0.78);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
    font-size: 0.72rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
html.sind-light .sind-indi-badge {
    background: rgba(255, 255, 255, 0.92);
    color: var(--l-brand-deep, #047857);
    border-color: rgba(5, 150, 105, 0.4);
}

.sind-indi-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem 1.4rem 1.5rem;
}
.sind-indi-card__title {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.5;
    color: var(--i-heading);
}
.sind-indi-card__title a { transition: color 0.2s; }
.sind-indi-card__title a:hover { color: var(--i-brand-text); }
.sind-indi-card__text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.95;
    color: var(--i-muted);
}
.sind-indi-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: auto 0 1.1rem;
    padding: 0;
    list-style: none;
}
.sind-indi-chips li {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: var(--i-chip);
    color: var(--i-muted);
    font-size: 0.75rem;
    font-weight: 600;
}
.sind-indi-card__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sind-indi-card__actions .sind-indi-btn { padding: 0.65rem 1.1rem; font-size: 0.875rem; }
.sind-indi-card__actions .sind-indi-btn--primary { flex: 1 1 auto; }

/* ---------- حالت خالی ---------- */
.sind-indi-empty { text-align: center; padding: 3rem 1.5rem; }
.sind-indi-empty .sind-indi-ph { width: 100%; max-width: 18rem; height: auto; margin: 0 auto 1.5rem; }
.sind-indi-empty h2 { margin: 0 0 0.5rem; font-size: 1.3rem; font-weight: 800; color: var(--i-heading); }
.sind-indi-empty p { margin: 0; color: var(--i-muted); }

/* ---------- معرفی محصول اصلی ---------- */
.sind-indi-promo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.07) 0%, var(--i-surface) 100%);
    border: 1px solid var(--i-border);
}
.sind-indi-promo > div { max-width: 40rem; }
.sind-indi-promo .sind-indi-pill { margin-bottom: 0.75rem; }
.sind-indi-promo h2 {
    margin: 0 0 0.5rem;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--i-heading);
}
.sind-indi-promo p { margin: 0; line-height: 2; color: var(--i-muted); }

/* ---------- صفحه‌ی تکی ---------- */
.sind-indi-layout {
    display: grid;
    gap: 2rem;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}
@media (min-width: 1024px) {
    .sind-indi-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; }
    .sind-indi-aside .sind-indi-spec { position: sticky; top: 6.5rem; }
    .admin-bar .sind-indi-aside .sind-indi-spec { top: calc(6.5rem + 32px); }
}

.sind-indi-main > * + * { margin-top: 2.25rem; }

.sind-indi-shot {
    margin: 0;
    overflow: hidden;
    border-radius: 1.25rem;
    background: var(--i-surface);
    border: 1px solid var(--i-border);
    box-shadow: var(--i-shadow);
}
.sind-indi-shot__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--i-border);
    font-size: 0.78rem;
    color: var(--i-muted);
}
.sind-indi-shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.sind-indi-points {
    display: grid;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.sind-indi-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1.1rem;
    border-radius: 0.875rem;
    background: var(--i-li);
    border: 1px solid var(--i-border);
    color: var(--i-text);
    font-size: 0.95rem;
    line-height: 1.8;
    transition: border-color 0.2s, background-color 0.2s;
}
.sind-indi-points li:hover {
    border-color: var(--i-border-hover);
    background: var(--i-brand-tint);
}
.sind-indi-ic--check { width: 1.15rem; height: 1.15rem; flex: none; margin-top: 0.35rem; color: var(--i-brand-text); }

.sind-indi-steps {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: sind-step;
}
.sind-indi-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    counter-increment: sind-step;
    line-height: 1.9;
    color: var(--i-text);
}
.sind-indi-steps li::before {
    content: counter(sind-step, persian);
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--i-brand-tint);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--i-brand-text);
    font-size: 0.85rem;
    font-weight: 800;
}

/* ---------- کارت مشخصات ---------- */
.sind-indi-dl { margin: 0; }
.sind-indi-dl > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px dashed var(--i-border);
    font-size: 0.875rem;
}
.sind-indi-dl > div:last-child { border-bottom: 0; }
.sind-indi-dl dt { color: var(--i-muted); }
.sind-indi-dl dd { margin: 0; color: var(--i-heading); font-weight: 600; text-align: left; }

.sind-indi-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.1rem;
    font-size: 0.85rem;
    color: var(--i-muted);
    transition: color 0.2s;
}
.sind-indi-back:hover { color: var(--i-brand-text); }
.sind-indi-back .sind-indi-ic { width: 0.95rem; height: 0.95rem; }

.sind-indi-ic { width: 1.1rem; height: 1.1rem; }

/* ---------- بزرگ‌نمایی تصویر ---------- */
.sind-indi-modal {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    overflow: visible;
}
.sind-indi-modal::backdrop {
    background: rgba(6, 10, 20, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.sind-indi-modal img {
    display: block;
    max-width: 95vw !important;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
}
.sind-indi-modal__close {
    position: fixed;
    top: 18px;
    left: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    z-index: 9999;
    transition: background-color 0.2s;
}
.sind-indi-modal__close:hover { background: rgba(239, 68, 68, 0.85); border-color: transparent; }

/* ---------- موبایل ---------- */
@media (max-width: 640px) {
    .sind-indi-wrap { padding-inline: 1rem; }
    .sind-indi-hero { padding-top: 6.5rem; }
    .sind-indi-lead { font-size: 1rem; }
    .sind-indi-actions > .sind-indi-btn { flex: 1 1 100%; }
    .sind-indi-promo { padding: 1.5rem 1.25rem; }
    .sind-indi-promo .sind-indi-btn { width: 100%; }
}


/* ---------- تصویر جایگزین کارت (رنگ‌ها از متغیرها می‌آیند، پس در هر دو تم خوانا است) ---------- */
.sind-indi-ph .zg { fill: var(--ph-up); opacity: var(--ph-zone); }
.sind-indi-ph .zr { fill: var(--ph-dn); opacity: var(--ph-zone); }
.sind-indi-ph .tp { stroke: var(--ph-up); stroke-width: 1.5; }
.sind-indi-ph .sl { stroke: var(--ph-dn); stroke-width: 1.5; }
.sind-indi-ph .en { stroke: var(--ph-ref); stroke-width: 1.5; opacity: 0.75; }
.sind-indi-ph .up line { stroke: var(--ph-up); }
.sind-indi-ph .up rect { fill: var(--ph-up); }
.sind-indi-ph .dn line { stroke: var(--ph-dn); }
.sind-indi-ph .dn rect { fill: var(--ph-dn); }

/* ============================================================
   تم روشن — پرداخت نهایی
   سطح‌ها سفید، حاشیه‌ها ظریف، سایه‌ها نرم و سبز فقط برای تأکید
   ============================================================ */
html.sind-light .sind-indi-hero {
    background: linear-gradient(180deg, #ecfdf5 0%, rgba(244, 247, 251, 0) 100%);
}
html.sind-light .sind-indi-hero::before {
    background: radial-gradient(closest-side, rgba(5, 150, 105, 0.10), transparent);
}

html.sind-light .sind-indi-pill {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.3);
    color: #047857;
}
html.sind-light .sind-indi-pill--muted {
    background: #eef2f7;
    border-color: #dfe6ee;
    color: #56667a;
}

html.sind-light .sind-indi-card {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 14px 30px -18px rgba(15, 23, 42, 0.18);
}
html.sind-light .sind-indi-card:hover {
    border-color: rgba(5, 150, 105, 0.55);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 22px 44px -20px rgba(5, 150, 105, 0.38);
}
html.sind-light .sind-indi-card__media { border-bottom-color: #e8eef5; }

html.sind-light .sind-indi-chips li { background: #eef2f7; color: #56667a; }

html.sind-light .sind-indi-btn--ghost {
    background: #ffffff;
    border-color: #cfd8e3;
    color: #0b1222;
}
html.sind-light .sind-indi-btn--ghost:hover {
    background: rgba(5, 150, 105, 0.08);
    border-color: rgba(5, 150, 105, 0.5);
    color: #047857;
}

html.sind-light .sind-indi-shot { background: #ffffff; box-shadow: var(--i-shadow); }
html.sind-light .sind-indi-shot__bar { background: #f8fafc; border-bottom-color: #e8eef5; }

html.sind-light .sind-indi-points li:hover {
    background: #f0fdf9;
    border-color: rgba(5, 150, 105, 0.5);
}
html.sind-light .sind-indi-steps li::before {
    background: rgba(5, 150, 105, 0.1);
    border-color: rgba(5, 150, 105, 0.35);
    color: #047857;
}

html.sind-light .sind-indi-promo {
    background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
    border-color: rgba(5, 150, 105, 0.22);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 18px 40px -24px rgba(5, 150, 105, 0.3);
}

html.sind-light .sind-indi-dl > div { border-bottom-color: #e3e9f1; }
html.sind-light .sind-indi-soon { background: #ffffff; border-color: #cfd8e3; }
