/* ===========================================================
   پارسیان همراه لوتوس — Design System
   Palette: #FFFFFF 60% · #f1f1f1 20% · #990000 10% · #000 10%
   Font: Vazirmatn (self-hosted)
   =========================================================== */

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700; font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900; font-display: swap;
}

:root {
    --white: #FFFFFF;
    --gray: #f1f1f1;
    --gray-2: #e6e6e6;
    --brand: #990000;
    --brand-dark: #6f0000;
    --brand-light: #c62828;
    --ink: #141414;
    --ink-soft: #444444;
    --muted: #7a7a7a;
    --line: #e9e9e9;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px rgba(0,0,0,.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,.14);
    --shadow-brand: 0 12px 28px rgba(153,0,0,.25);
    --container: 1200px;
    --t: .3s cubic-bezier(.4,0,.2,1);
    --font: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--white);
    line-height: 1.9;
    font-size: 16px;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { line-height: 1.5; font-weight: 700; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.icon { display: inline-block; vertical-align: middle; }
.icon.flip { transform: scaleX(-1); }
.icon.rot-up { transform: rotate(-90deg); }
.center { text-align: center; }
.mt { margin-top: 28px; }

.skip-link {
    position: absolute; right: -999px; top: 0; background: var(--brand);
    color: #fff; padding: 10px 18px; z-index: 2000; border-radius: 0 0 8px 0;
}
.skip-link:focus { right: 0; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
    padding: 12px 26px; border-radius: 50px; font-weight: 700; font-size: 15px;
    cursor: pointer; border: 2px solid transparent; transition: var(--t);
    font-family: var(--font);
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 1000; }
.topbar { background: var(--ink); color: #cfcfcf; font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 42px; }
.topbar-phone { display: flex; align-items: center; gap: 6px; color: #fff; direction: ltr; }
.topbar-phone span { font-weight: 700; }
.topbar-links { display: flex; align-items: center; gap: 12px; }
.topbar-links a:hover { color: var(--brand-light); }
.topbar .sep { opacity: .4; }

.navbar { position: relative; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-title { font-weight: 900; font-size: 18px; color: var(--brand); white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 26px; flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav ul a {
    padding: 8px 14px; border-radius: 10px; font-weight: 500; color: var(--ink);
    position: relative; transition: var(--t); font-size: 18px;
}
.main-nav ul a:hover { color: var(--brand); background: var(--gray); }
.nav-cta-group { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav-cta { white-space: nowrap; }
/* نوار دکمه‌های بازار (فقط موبایل، زیر اسلایدر) — در دسکتاپ مخفی */
.market-bar { display: none; background: var(--gray); padding: 12px 0; }
.market-bar .container { display: flex; gap: 8px; }
.market-bar .market-btn { flex: 1; justify-content: center; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Mega menu ---------- */
.main-nav .has-mega { position: static; }
.mega-trigger { display: inline-flex; align-items: center; gap: 5px; }
.mega-caret { display: inline-flex; transition: transform .3s; }
.has-mega:hover .mega-caret { transform: rotate(90deg); }
.mega-panel {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(12px);
    width: min(1080px, 94vw); background: #fff; border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--shadow-lg); padding: 26px; z-index: 1200;
    opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s;
    direction: rtl; text-align: right;
}
.mega-panel::before { content: ''; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }
.has-mega:hover .mega-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(3px); }
.mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; direction: rtl; }
.mega-col { direction: rtl; text-align: right; }
.mega-col-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 2px solid var(--gray); }
.mega-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(153,0,0,.08); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.mega-col-title { font-weight: 900; font-size: 16px; color: var(--ink); }
.mega-col-head:hover .mega-col-title { color: var(--brand); }
.mega-list { display: flex; flex-direction: column; align-items: stretch; width: 100%; gap: 2px; direction: rtl; }
.mega-list > li { width: 100%; }
.mega-list > li > a { display: block; width: 100%; padding: 7px 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink-soft); font-weight: 500; transition: var(--t); text-align: right; direction: rtl; }
.mega-list > li > a:hover { background: var(--gray); color: var(--brand); padding-inline-start: 16px; }
/* اگر یک ستون مگامنو بیش از ۶ زیرمنو داشته باشد، در دو ستون چیده می‌شود (ستون اول در سمت راست) */
.mega-list.mega-list-2col {
    display: block; column-count: 2; column-gap: 18px; direction: rtl;
}
.mega-list.mega-list-2col > li { break-inside: avoid-column; width: auto; }
/* سطح ۳ (زیرمنوی عمیق‌تر مثل «رند ویژه»): صراحتاً سمت راست، بدون تورفتگی سمت چپ */
.mega-sublist {
    direction: rtl; text-align: right;
    margin: 2px 0 6px; margin-inline-start: 12px; margin-inline-end: 0;
    border-inline-start: 2px solid var(--line); padding-inline-start: 10px;
    display: flex; flex-direction: column; gap: 1px;
}
.mega-sublist a { display: block; padding: 5px 8px; border-radius: 6px; font-size: 13.5px; color: var(--muted); transition: var(--t); text-align: right; direction: rtl; }
.mega-sublist a:hover { color: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-title { font-size: clamp(24px, 3vw, 34px); font-weight: 900; color: var(--ink); position: relative; }
.section-title.sm { font-size: clamp(20px, 2.4vw, 26px); }
.section-title.light { color: #fff; }
.title-underline { display: inline-block; width: 70px; height: 4px; background: var(--brand); border-radius: 4px; margin-top: 14px; }
.section-head.center .title-underline { display: block; margin: 14px auto 0; }
.section-sub { color: var(--muted); margin-top: 12px; font-size: 15.5px; }
.eyebrow { display: inline-block; color: var(--brand); font-weight: 700; font-size: 14px; letter-spacing: .5px; margin-bottom: 10px; padding: 4px 14px; background: rgba(153,0,0,.08); border-radius: 30px; }
.eyebrow.light { color: #fff; background: rgba(255,255,255,.18); }
.lead { color: var(--ink-soft); font-size: 16.5px; margin: 14px 0 24px; }
.lead, .lead * { font-family: var(--font) !important; }
.lead img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
/* متون بدنهٔ سکشن‌ها: justify + وزن medium */
.lead, .bento-text, .pd-desc p, .tl-body p, .page-content p, .article-body p {
    text-align: justify; text-justify: inter-word; font-weight: 500;
}
.lead.light { color: rgba(255,255,255,.92); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center;
    background-size: cover; background-position: center; color: #fff; text-align: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,.55), rgba(10,15,30,.75)); }
.hero-inner { position: relative; z-index: 2; padding: 60px 0; }
.hero-badge { display: inline-block; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); padding: 6px 20px; border-radius: 40px; font-weight: 700; margin-bottom: 22px; backdrop-filter: blur(6px); }
.hero-title { font-size: clamp(34px, 6vw, 64px); font-weight: 900; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-rotator { position: relative; height: 96px; margin: 24px auto; max-width: 820px; }
.hero-msg {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    font-size: clamp(17px, 2.4vw, 24px); font-weight: 500; opacity: 0; transform: translateY(20px);
    transition: opacity .6s, transform .6s; color: #fff;
}
.hero-msg.active { opacity: 1; transform: translateY(0); }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.hero-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.4); cursor: pointer; transition: var(--t); }
.hero-dots button.active { background: var(--brand-light); width: 28px; border-radius: 8px; }

/* ---------- Hero image slider ---------- */
.hero-slider { position: relative; min-height: 88vh; overflow: hidden; color: #fff; text-align: center; }
.hero-slides { position: relative; min-height: 88vh; }
.hero-slide {
    position: absolute; inset: 0; display: flex; align-items: center;
    background-size: cover; background-position: center;
    opacity: 0; visibility: hidden; transition: opacity .8s ease;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide .hero-overlay { z-index: 1; background: none; }
.hero-slide-link { position: absolute; inset: 0; z-index: 2; }
.hero-slide .hero-inner { position: relative; z-index: 3; width: 100%; }
.hero-slide .hero-actions { position: relative; z-index: 4; margin-top: 26px; }
.hero-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center;
    backdrop-filter: blur(6px); transition: var(--t);
}
.hero-nav:hover { background: var(--brand); }
.hero-nav.prev { right: 22px; }
.hero-nav.next { left: 22px; }
.hero-nav.next svg { transform: scaleX(-1); }
.hero-slider .hero-dots { position: absolute; bottom: 26px; left: 0; right: 0; z-index: 5; margin: 0; }

/* ---------- Info bento (below hero) ---------- */
.bento-sec { position: relative; z-index: 6; margin-top: -5vh; padding-top: 0; }
.bento {
    display: grid; gap: 20px;
    grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
    grid-template-areas:
        "services quality quality catalog"
        "services support shop    catalog";
}
.bento-box {
    background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line);
    padding: 26px; position: relative; display: flex; flex-direction: column; transition: var(--t);
}
.bento-box:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.bento-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.bento-title { font-size: 18px; font-weight: 900; color: var(--ink); }
.bento-sub { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.bento-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gray); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; transition: var(--t); }
.bento-box:hover .bento-icon { background: var(--brand); color: #fff; }
.bento-text { color: var(--ink-soft); font-size: 14.5px; line-height: 2.1; flex: 1; }
.bento-arrow {
    align-self: flex-end; margin-top: 18px; width: 44px; height: 44px; border-radius: 50%;
    background: var(--brand); color: #fff; display: grid; place-items: center; transition: var(--t);
    box-shadow: var(--shadow-brand); flex-shrink: 0;
}
.bento-arrow:hover { background: var(--brand-dark); transform: scale(1.08); }
/* red catalog / super-app box */
.bento-red { background: linear-gradient(160deg, var(--brand), var(--brand-light)); border: 0; color: #fff; align-items: center; text-align: center; justify-content: center; }
.bento-red-media { background: rgba(255,255,255,.14); border-radius: 18px; padding: 18px; margin-bottom: 20px; }
.bento-red-media img { width: 150px; height: auto; }
.bento-red-title { font-size: 19px; font-weight: 900; color: #fff; margin-bottom: 8px; line-height: 1.7; }
.bento-red-sub { font-size: 14px; color: rgba(255,255,255,.9); margin-bottom: 20px; }
.bento-download {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand);
    font-weight: 700; font-size: 14.5px; padding: 11px 22px; border-radius: 40px; transition: var(--t);
    box-shadow: 0 8px 20px rgba(0,0,0,.18);
}
.bento-download:hover { transform: translateY(-2px); }

/* ---------- Feature cards ---------- */
.features-sec { position: relative; z-index: 5; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
    background: #fff; border-radius: var(--radius); padding: 34px 26px; box-shadow: var(--shadow);
    border: 1px solid var(--line); transition: var(--t); text-align: center;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.2); }
.feature-icon { width: 70px; height: 70px; border-radius: 20px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--shadow-brand); }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* کارت‌های ویژگی داخل سکشن about-video (زیر متن، کنار ویدیو) — فشرده */
.about-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.about-features .feature-card { padding: 16px 14px; text-align: center; }
.about-features .feature-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 auto 10px; }
.about-features .feature-card h3 { font-size: 13.5px; margin-bottom: 6px; line-height: 1.6; }
.about-features .feature-card p { font-size: 12px; line-height: 1.85; }

/* ---------- Quick services ---------- */
.quick-sec { background: var(--gray); position: relative; padding-top: 0; }
/* بنر آبی بالای سکشن؛ عنوان روی آن و نیمهٔ بالایی کارت‌ها روی تصویر می‌افتد */
.quick-band {
    position: absolute; top: 0; left: 0; right: 0; height: 240px;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.quick-sec .container { position: relative; z-index: 2; padding-top: 46px; }
/* اسلایدر دسترسی سریع */
.quick-slider { position: relative; display: flex; align-items: center; gap: 8px; }
.quick-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth;
    scroll-snap-type: x proximity; padding: 16px 4px; flex: 1; scrollbar-width: none;
}
.quick-track::-webkit-scrollbar { display: none; }
.quick-card {
    flex: 0 0 calc((100% - 90px) / 6); scroll-snap-align: start;
    background: #fff; border-radius: var(--radius); padding: 26px 16px; border: 1px solid var(--line);
    transition: var(--t); display: flex; flex-direction: column; align-items: center; gap: 12px;
    text-align: center; position: relative;
}
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); background: var(--brand); border-color: var(--brand); }
.quick-card:hover h3 { color: #fff; }
/* آیکون دایره‌ای وسط باکس */
.quick-icon { width: 62px; height: 62px; border-radius: 50%; background: var(--gray); color: var(--brand); display: grid; place-items: center; transition: var(--t); }
.quick-card:hover .quick-icon { background: #fff; color: var(--brand); }
.quick-card h3 { font-size: 15px; transition: var(--t); }
/* واکنش‌گرا: ۶ کارت پیش‌فرض، در نمایشگر کوچک‌تر کمتر */
@media (max-width: 1100px) { .quick-card { flex-basis: calc((100% - 54px) / 4); } }
@media (max-width: 760px)  { .quick-card { flex-basis: calc((100% - 36px) / 3); } }
@media (max-width: 520px)  { .quick-card { flex-basis: calc((100% - 18px) / 2); } }
/* توضیحات به‌صورت tooltip */
.quick-card[data-tip]::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.7;
    padding: 8px 12px; border-radius: 10px; width: max-content; max-width: 220px; text-align: center;
    opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 20; pointer-events: none; box-shadow: var(--shadow-lg);
}
.quick-card[data-tip]:hover::after { opacity: 1; visibility: visible; }
.quick-nav {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: var(--t);
}
.quick-nav:hover { background: var(--brand); color: #fff; }
.quick-nav.next svg { transform: scaleX(-1); }

/* ---------- Products ---------- */
.products-sec.alt { background: var(--gray); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.product-grid.four { grid-template-columns: repeat(4, 1fr); }

/* «پرکاربرد و پرفروش لوتوس‌تل»: همیشه اسلایدر (دسکتاپ و موبایل)، با فلش وقتی بیش از ۵ آیتم باشد */
.featured-slider { display: flex; align-items: center; gap: 10px; }
#featuredProductsGrid {
    display: flex; gap: 22px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
    scroll-snap-type: x proximity; flex: 1; padding: 4px 2px;
}
#featuredProductsGrid::-webkit-scrollbar { display: none; }
#featuredProductsGrid .product-card { flex: 0 0 calc((100% - 4 * 22px) / 5); scroll-snap-align: start; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--t); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-media { background: linear-gradient(135deg, var(--gray), #fafafa); padding: 22px; display: grid; place-items: center; aspect-ratio: 4/3; }
.product-media img { max-height: 150px; width: auto; transition: var(--t); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 18px 20px 22px; }
.product-body h3 { font-size: 16.5px; margin-bottom: 8px; }
.product-body p { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.product-link { color: var(--brand); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; }

/* ---------- Stats ---------- */
.stats-sec { position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; }
.stats-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(111,0,0,.92), rgba(20,20,20,.92)); }
.stats-sec .container { position: relative; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.stat-card { text-align: center; padding: 26px 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); backdrop-filter: blur(4px); transition: var(--t); }
.stat-card:hover { background: rgba(255,255,255,.12); transform: translateY(-5px); }
.stat-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; color: #fff; }
.stat-num { font-size: clamp(28px, 4vw, 42px); font-weight: 900; color: #fff; direction: ltr; }
.stat-label { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 6px; }

/* نسخهٔ فشرده «لوتوس‌تل در یک نگاه» — حدود یک‌چهارم ارتفاع قبلی (کارت‌ها افقی) + تم روشن روی زمینهٔ سفید */
.stats-sec.compact { padding: 20px 0; background: #fff; color: var(--ink); }
.stats-sec.compact .stat-card { box-shadow: var(--shadow); }
.stats-sec.compact .stat-icon { background: rgba(153,0,0,.08); color: var(--brand); }
.stats-sec.compact .stat-num { color: var(--brand); }
.stats-sec.compact .stat-label { color: var(--muted); }
.stats-sec.compact .section-head { margin-bottom: 14px; }
.stats-sec.compact .section-title { font-size: 20px; }
.stats-sec.compact .title-underline { height: 3px; width: 46px; margin-top: 8px; }
.stats-sec.compact .stats-grid { gap: 12px; }
.stats-sec.compact .stat-card { display: flex; align-items: center; gap: 10px; text-align: right; padding: 10px 12px; }
.stats-sec.compact .stat-card:hover { transform: none; }
.stats-sec.compact .stat-icon { width: 36px; height: 36px; margin: 0; flex-shrink: 0; }
.stats-sec.compact .stat-meta { min-width: 0; }
.stats-sec.compact .stat-num { font-size: 20px; line-height: 1.1; }
.stats-sec.compact .stat-label { font-size: 11px; margin-top: 2px; }

/* ---------- Categories (card tabs) ---------- */
.cat-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-box {
    --box-bg: #F1F1F1;
    position: relative; min-height: 168px; padding: 26px 26px 66px;
    border: 0; cursor: pointer; text-align: right; background: transparent;
    color: var(--ink); font-family: var(--font); transition: transform .3s, color .3s;
}
.cat-box::before {
    content: ''; position: absolute; inset: 0; background: var(--box-bg);
    transition: background .3s; z-index: 0;
    /* شکل باکس از تصویر دانلودی (گوشهٔ گرد + بریدگی پایین‌راست)؛ رنگ از --box-bg تا در hover قرمز شود */
    -webkit-mask: url('/images/backgrounds/operation-services-box.svg') no-repeat center / 100% 100%;
            mask: url('/images/backgrounds/operation-services-box.svg') no-repeat center / 100% 100%;
}
.cat-box:hover, .cat-box.active { --box-bg: var(--brand); color: #fff; transform: translateY(-4px); }
.cat-box > * { position: relative; z-index: 1; }
.cat-box-icon { position: absolute; top: 24px; left: 24px; color: var(--brand); transition: color .3s; }
.cat-box:hover .cat-box-icon, .cat-box.active .cat-box-icon { color: #fff; }
.cat-box-text { display: block; padding-inline-start: 66px; }
.cat-box-eyebrow { display: block; font-size: 14px; font-weight: 500; opacity: .92; }
.cat-box-title { display: block; font-size: clamp(20px, 2.3vw, 26px); font-weight: 900; margin-top: 2px; }
.cat-box-more {
    position: absolute; bottom: 7px; right: 4px; left: auto;
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700;
    padding: 9px 16px; border-radius: 30px; transition: var(--t);
}
.cat-box:hover .cat-box-more, .cat-box.active .cat-box-more { background: #fff; color: var(--ink); }
.cat-tabs-body {
    position: relative; margin-top: 30px; border: 1px solid var(--line); border-radius: 26px;
    padding: 36px 34px; background: #fff;
    animation: catFade .35s ease;
}
.cat-tabs-body[hidden] { display: none; }
@keyframes catFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cat-tab-arrow {
    position: absolute; top: -12px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 20px; height: 20px; background: #fff;
    border-left: 2px solid var(--brand); border-top: 2px solid var(--brand);
    border-radius: 5px 0 0 0; transition: left .3s cubic-bezier(.4,0,.2,1);
}
.cat-tab-panel { display: none; }
.cat-tab-panel.active { display: block; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--t); }
.cat-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.cat-card h3 { padding: 18px 20px; font-size: 16.5px; text-align: center; }
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.cat-card:hover h3 { color: var(--brand); }

/* ---------- App / About ---------- */
.app-sec { background: var(--gray); }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16/9; background: var(--ink); }
.brand-video { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Representatives ---------- */
.reps-sec { background: var(--gray); }
.reps-layout { display: grid; grid-template-columns: 300px 1fr; gap: 26px; }
/* ستون سمت راست: دکمهٔ درخواست نمایندگی بالای لیست نمایندگی‌ها */
.reps-panel { display: flex; flex-direction: column; gap: 16px; }
.reps-req-btn { justify-content: center; }
/* چیدمان نقشه: لیست نمایندگی‌ها سمت راست (بزرگ‌تر)، نقشهٔ کوچک‌تر سمت چپ؛ هم‌ارتفاع تا پایین در یک راستا */
.reps-layout.map { grid-template-columns: 1fr 360px; align-items: stretch; }
.reps-layout.map .reps-panel { height: 100%; }
.reps-layout.map .reps-result { flex: 1; }
.iran-map { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.iran-map svg { width: 100%; height: auto; display: block; }
.iran-map svg path { fill: #d4d4d4; stroke: #fff; stroke-width: 1; transition: fill .2s; }
.iran-map svg path[data-id] { cursor: pointer; }
.iran-map svg path:hover, .iran-map svg path.active { fill: var(--brand); }
/* فقط مرز استان‌ها؛ نقطه‌ها و برچسب‌های شهر مخفی */
.iran-map #points, .iran-map #label_points { display: none; }
.province-list { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); max-height: 520px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.province-btn {
    display: flex; align-items: center; gap: 8px; width: 100%; text-align: right; padding: 11px 14px;
    border: 0; background: transparent; border-radius: 10px; cursor: pointer; font-family: var(--font);
    font-size: 14.5px; color: var(--ink-soft); transition: var(--t);
}
.province-btn:hover { background: var(--gray); }
.province-btn.active { background: var(--brand); color: #fff; font-weight: 700; }
.prov-count { margin-inline-start: auto; background: rgba(0,0,0,.08); border-radius: 20px; padding: 1px 9px; font-size: 12px; }
.province-btn.active .prov-count { background: rgba(255,255,255,.25); }
.reps-result { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-height: 300px; }
.reps-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rep-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; transition: var(--t); }
.rep-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.rep-head { display: flex; align-items: center; gap: 8px; color: var(--brand); margin-bottom: 10px; }
.rep-head h4 { font-size: 16px; }
.rep-info li { font-size: 14px; color: var(--ink-soft); padding: 3px 0; }
.rep-info li span { color: var(--muted); font-weight: 700; }
.reps-empty, .empty-row { color: var(--muted); text-align: center; padding: 40px; }

/* ---------- Logo grids (shareholders / partners) ---------- */
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.logo-grid.partners { grid-template-columns: repeat(6, 1fr); }
.logo-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: var(--t); }
/* tooltip نام شرکت همکار/مشتری */
.logo-item[data-tip]::after {
    content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
    background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.7;
    padding: 8px 12px; border-radius: 10px; width: max-content; max-width: 220px; text-align: center;
    opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 20; pointer-events: none; box-shadow: var(--shadow-lg);
}
.logo-item[data-tip]:hover::after { opacity: 1; visibility: visible; }
.logo-item span { font-size: 14px; color: var(--muted); font-weight: 700; }
.logo-item img { max-height: 70px; width: auto; filter: grayscale(100%); opacity: .65; transition: var(--t); }
.logo-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.logo-item.shareholder:hover img, .logo-item:hover img { filter: grayscale(0); opacity: 1; }
.logo-item:hover span { color: var(--brand); }

/* ---------- Shareholders ---------- */
.sh-layout { display: flex; gap: 30px; align-items: center; }
.sh-red {
    position: relative; flex: 0 0 300px; color: #fff; min-height: 340px;
    background: url('/images/backgrounds/bg-member.svg') no-repeat center / 100% 100%;
    padding: 44px 34px; display: flex; flex-direction: column; justify-content: center;
}
.sh-red-eyebrow { display: block; font-size: 15px; font-weight: 500; margin-bottom: 10px; opacity: .95; }
.sh-red-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; }
/* عنوان مشکی + خط قرمز، فقط برای موبایل روابط عمومی؛ در دسکتاپ مخفی است */
.pr-mobile-head { display: none; }
.sh-arrows { display: flex; gap: 12px; margin-top: 26px; }
.sh-arrow { width: 48px; height: 48px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: var(--t); }
.sh-arrow:hover { background: #fff; color: var(--brand); }

/* کل سهامداران داخل یک باکس؛ باکس ۵٪ از سمت راست روی تصویر می‌افتد */
.sh-track {
    display: flex; gap: 24px; overflow-x: auto; scroll-behavior: smooth; padding: 0 26px; flex: 1;
    scrollbar-width: none; align-items: center;
    background: #fff; border-radius: 0; box-shadow: var(--shadow);
    position: relative; z-index: 2; margin-inline-start: -6%; top: 6%;
}
.sh-track::-webkit-scrollbar { display: none; }
/* استایل باکس تک‌تک سهامداران حذف شد؛ فقط محتوا */
.sh-card { flex: 0 0 180px; background: transparent; border: 0; box-shadow: none; padding: 8px; text-align: center; transition: var(--t); }
.sh-photo { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; border: 3px solid var(--gray-2); transition: var(--t); }
.sh-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: var(--t); }
.sh-photo-icon { display: grid; place-items: center; width: 100%; height: 100%; background: var(--gray); color: var(--brand); transition: var(--t); }
.sh-card:hover .sh-photo-icon { background: var(--brand); color: #fff; }
.sh-card:hover .sh-photo { border-color: var(--brand); }
.sh-card:hover .sh-photo img { filter: grayscale(0); }
.sh-name { font-size: 16.5px; color: #555; transition: var(--t); }
.sh-role { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; transition: var(--t); }
.sh-card:hover .sh-name, .sh-card:hover .sh-role { color: var(--brand); }
.sh-web { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-top: 8px; border-radius: 50%; background: var(--gray); color: var(--muted); transition: var(--t); }
.sh-card:hover .sh-web { background: var(--brand); color: #fff; }

/* ---------- Testimonials ---------- */
.testi-sec { background: var(--gray); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.testi-stars { display: flex; gap: 3px; color: #e6b400; margin-bottom: 12px; }
.star-on { fill: #f2b705; stroke: #f2b705; }
.testi-card blockquote { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.testi-card figcaption { display: flex; align-items: center; gap: 12px; }
.testi-card figcaption img { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--brand); }
.testi-card figcaption strong { display: block; font-size: 15px; }
.testi-card figcaption span { font-size: 13px; color: var(--muted); }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.blog-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: var(--t); }
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-media { display: block; aspect-ratio: 16/10; overflow: hidden; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: var(--t); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-body { padding: 22px; }
.blog-cat { display: inline-block; background: rgba(153,0,0,.08); color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 3px 12px; border-radius: 20px; margin-bottom: 12px; }
.blog-body h3 { font-size: 18px; margin-bottom: 10px; }
.blog-body h3 a:hover { color: var(--brand); }
.blog-body p { color: var(--muted); font-size: 14px; }
.blog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 13px; color: var(--muted); }
.blog-meta a { color: var(--brand); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- History timeline ---------- */
.history-sec { position: relative; background-size: cover; background-position: center; transition: background-image .5s ease; }
.history-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,35,.82), rgba(8,18,35,.74)); }
.history-sec .container { position: relative; z-index: 2; }
.section-sub.light { color: rgba(255,255,255,.85); }

.timeline { display: flex; align-items: center; gap: 14px; margin: 34px 0 40px; }
.tl-arrow { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; transition: var(--t); }
.tl-arrow:hover { background: var(--brand-dark); transform: scale(1.08); }
.tl-arrow:disabled { opacity: .4; cursor: default; transform: none; }
.tl-years { display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth; padding: 6px 4px; position: relative; scrollbar-width: none; }
.tl-years::-webkit-scrollbar { display: none; }
.tl-year { flex-shrink: 0; min-width: 76px; padding: 12px 18px; border: 2px solid rgba(255,255,255,.45); background: rgba(255,255,255,.1); color: #fff; border-radius: 12px; font-family: var(--font); font-weight: 700; font-size: 18px; cursor: pointer; transition: var(--t); backdrop-filter: blur(4px); }
.tl-year:hover { border-color: #fff; }
.tl-year.active { background: #fff; color: var(--brand); border-color: #fff; min-width: 130px; box-shadow: var(--shadow); }

.tl-panels { position: relative; }
.tl-panel { display: none; grid-template-columns: 480px 1fr; gap: 44px; align-items: center; animation: catFade .4s ease; }
.tl-panel.active { display: grid; }
.tl-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.tl-body .tl-year-badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; padding: 4px 16px; border-radius: 30px; margin-bottom: 14px; font-size: 15px; }
.tl-body h3 { font-size: clamp(20px, 2.6vw, 30px); color: #fff; margin-bottom: 16px; }
.tl-body p { color: rgba(255,255,255,.9); font-size: 16px; line-height: 2.1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 80px 0 60px; background-size: cover; background-position: center; color: #fff; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,40,.55), rgba(10,15,30,.75)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero .hero-overlay { display: none; }
.page-title { font-size: clamp(26px, 4vw, 40px); font-weight: 900; }
.page-sub { color: rgba(255,255,255,.9); margin-top: 8px; }
.breadcrumb { font-size: 13.5px; margin-bottom: 14px; opacity: .95; display: flex; gap: 8px; align-items: center; }
.breadcrumb a:hover { color: var(--brand-light); }

/* ---------- باکس‌های آیکون‌دار بالای صفحهٔ CMS (تعداد متغیر) ---------- */
.page-box-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin: -44px 0 40px; position: relative; z-index: 2; }
.page-box {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 26px 18px;
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; transition: var(--t);
    border: 2px solid transparent;
}
.page-box:hover { transform: translateY(-5px); border-color: var(--brand); box-shadow: var(--shadow-brand); }
.page-box-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(153,0,0,.08); color: var(--brand); display: grid; place-items: center; }
.page-box-title { font-weight: 700; color: var(--ink); font-size: 15px; }
.page-content { max-width: 860px; margin: 0 auto; font-size: 16px; color: var(--ink-soft); }
.page-content p { margin-bottom: 16px; }
/* استایل محتوای ساخته‌شده با ویرایشگر (ریست سراسری margin/padding/bullet را حذف کرده بود) */
.page-content h1, .page-content h2, .page-content h3, .page-content h4, .page-content h5, .page-content h6 { color: var(--ink); margin: 28px 0 12px; }
.page-content h1 { font-size: 30px; font-weight: 900; }
.page-content h2 { font-size: 25px; font-weight: 900; }
.page-content h3 { font-size: 21px; font-weight: 800; }
.page-content h4 { font-size: 18px; font-weight: 800; }
.page-content h5, .page-content h6 { font-size: 16px; font-weight: 800; }
.page-content > :first-child { margin-top: 0; }
.page-content ul, .page-content ol { padding-inline-start: 28px; margin-bottom: 16px; }
.page-content ul { list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content ul ul { list-style: circle; margin-bottom: 0; }
.page-content li { margin-bottom: 6px; }
.page-content li > p, .page-content td > p, .page-content th > p { margin-bottom: 0; }
.page-content b, .page-content strong { font-weight: 700; }
.page-content a { color: var(--brand); text-decoration: underline; }
.page-content table { border-collapse: collapse; max-width: 100%; margin: 0 0 20px; }
.page-content td, .page-content th { border: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.page-content th { background: var(--gray); font-weight: 700; }
.page-content blockquote { border-inline-start: 4px solid var(--brand); padding: 6px 18px; margin: 0 0 16px; color: var(--muted); }
.page-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); margin: 10px 0; }
.page-content hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.page-content pre { direction: ltr; background: var(--gray); padding: 12px 16px; border-radius: 8px; overflow-x: auto; margin-bottom: 16px; }
.article-body { max-width: 820px; }

/* ---------- Contact + map (above footer) ---------- */
.contact-map { background: var(--gray); padding: 60px 0; }
.contact-map-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.contact-info { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 30px; }
.contact-info h3 { font-size: 20px; margin-bottom: 22px; position: relative; padding-bottom: 14px; }
.contact-info h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 50px; height: 4px; background: var(--brand); border-radius: 4px; }
.contact-info ul { display: flex; flex-direction: column; gap: 18px; }
.contact-info li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: var(--ink-soft); line-height: 2; }
.contact-info li b { color: var(--ink); font-weight: 700; }
.contact-info li a:hover { color: var(--brand); }
.ci-icon { width: 42px; height: 42px; border-radius: 12px; background: rgba(153,0,0,.08); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.contact-map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 340px; }
.contact-map-frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: grayscale(.2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c9; padding-top: 60px; }
/* همهٔ ستون‌های فوتر در یک ردیف (ستون «محصولات» عریض‌تر)؛ در تبلت ۲ ستونه و در موبایل تک‌ستونه می‌شود */
.footer-grid { display: flex; align-items: flex-start; gap: 30px; padding-bottom: 40px; }
.footer-grid .footer-col { flex: 1 1 0; min-width: 0; }
.footer-grid .footer-col.wide { flex-grow: 1.8; }
.footer-logo { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer-about p { font-size: 14px; line-height: 2; color: #b3b3b3; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.footer-social a { border: 1px solid rgba(255,255,255,.2); padding: 6px 14px; border-radius: 30px; font-size: 13px; transition: var(--t); }
.footer-social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; right: 0; width: 34px; height: 3px; background: var(--brand); border-radius: 3px; }
.footer-col ul li { padding: 6px 0; }
.footer-col ul a { font-size: 14px; color: #b3b3b3; transition: var(--t); }
.footer-col ul a:hover { color: #fff; padding-inline-start: 6px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 14px; }
.footer-enamad { display: inline-block; margin-top: 14px; }
.footer-enamad img { display: block; border-radius: 8px; }
.footer-contact .icon { color: var(--brand-light); flex-shrink: 0; }
/* رسانه‌های اجتماعی (آیکون + عنوان) زیر لینک‌های ستون «درباره ما» */
.footer-col ul + .footer-social-list { margin-top: 18px; }
.footer-social-list li a { display: inline-flex; align-items: center; gap: 9px; }
.footer-social-list .icon { color: var(--brand-light); flex-shrink: 0; }
/* لوگوهای زیر فوتر: لوتوس (راست)، سامانه ۱۹۵ و اینماد (چپ) */
.footer-logos-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 26px 0; }
.footer-logos { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-seals { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer-logo-item {
    display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 12px;
    padding: 8px 12px; transition: var(--t);
}
.footer-logo-item:hover { transform: translateY(-3px); }
.footer-logo-item img { width: auto; object-fit: contain; }
.footer-logo-item.brand img { height: 56px; }
.footer-logo-item.seal img { height: 104px; max-width: 150px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #8f8f8f; flex-wrap: wrap; gap: 10px; }

/* ---------- Scroll top ---------- */
.scroll-top { position: fixed; left: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-brand); opacity: 0; visibility: hidden; transform: translateY(20px); transition: var(--t); z-index: 900; }
.scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top:hover { background: var(--brand-dark); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Portal select (ورود به پنل مشتریان) ---------- */
.portal-hero {
    position: relative; overflow: hidden; min-height: 86vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-light), var(--brand) 55%, var(--brand-dark)); padding: 60px 20px;
}
.portal-hero::before, .portal-hero::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none;
}
.portal-hero::before { width: 520px; height: 520px; top: -160px; inset-inline-start: -140px; }
.portal-hero::after { width: 360px; height: 360px; bottom: -140px; inset-inline-end: -100px; background: rgba(255,255,255,.06); }
.portal-hero-inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; text-align: center; }
.portal-hero-logo-box {
    display: inline-flex; align-items: center; justify-content: center; background: var(--white);
    border-radius: 24px; padding: 18px 28px; box-shadow: var(--shadow-lg); margin-bottom: 30px;
}
.portal-hero-logo-box img { height: 42px; width: auto; }
.portal-hero-title { color: #fff; font-size: 30px; font-weight: 800; margin-bottom: 14px; }
.portal-hero-desc { color: rgba(255,255,255,.88); font-size: 15.5px; line-height: 2; margin-bottom: 40px; }
.portal-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.portal-option-card {
    display: flex; flex-direction: column; align-items: center; gap: 14px; text-decoration: none;
    background: rgba(255,255,255,.12); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28);
    border-radius: 22px; padding: 30px 18px; transition: var(--t);
}
.portal-option-card:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.55); transform: translateY(-6px); }
.portal-option-icon {
    width: 64px; height: 64px; border-radius: 18px; background: var(--white); color: var(--brand);
    display: grid; place-items: center;
}
.portal-option-icon img { width: 36px; height: 36px; object-fit: contain; }
.portal-option-icon .icon { width: 32px; height: 32px; }
.portal-option-title { color: #fff; font-weight: 700; font-size: 17px; }
.portal-admin-link {
    display: inline-block; margin-top: 34px; color: rgba(255,255,255,.75); font-size: 14px;
    text-decoration: underline; text-underline-offset: 3px; transition: var(--t);
}
.portal-admin-link:hover { color: #fff; }
@media (max-width: 600px) {
    .portal-options { grid-template-columns: 1fr; }
    .portal-hero-title { font-size: 24px; }
}

/* ---------- App download landing (/download-app) ---------- */
.appdl-hero { background-size: cover; background-position: center; padding: 90px 0 90px; text-align: center; }
.appdl-hero-inner { max-width: 640px; margin: 0 auto; }
.appdl-logo { height: 54px; width: auto; margin: 0 auto 24px; }
.appdl-hero h1 { color: #fff; font-size: 32px; margin-bottom: 12px; }
.appdl-hero p { color: rgba(255,255,255,.9); font-size: 16.5px; }
.appdl-section { padding-top: 0; }
.appdl-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: -46px; position: relative; z-index: 2; }
.appdl-card {
    background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 28px 18px;
    width: 180px; display: flex; flex-direction: column; align-items: center; gap: 14px;
    text-decoration: none; border: 2px solid transparent; transition: var(--t);
}
.appdl-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow-brand); }
.appdl-card img { width: 60px; height: 60px; }
.appdl-card .icon { width: 48px; height: 48px; color: var(--brand); }
.appdl-card-title { font-weight: 700; color: var(--ink); text-align: center; font-size: 15.5px; }
@media (max-width: 600px) {
    .appdl-grid { gap: 16px; }
    .appdl-card { width: 140px; padding: 20px 14px; }
}

/* ---------- Page loading overlay ---------- */
.page-loading { position: fixed; inset: 0; background: rgba(255,255,255,.65); backdrop-filter: blur(1px); display: flex; align-items: center; justify-content: center; z-index: 3000; opacity: 0; visibility: hidden; transition: opacity .15s linear; }
.page-loading.show { opacity: 1; visibility: visible; }
.page-loading-spinner { width: 52px; height: 52px; border-radius: 50%; border: 4px solid var(--gray-2); border-top-color: var(--brand); animation: pageLoadingSpin .7s linear infinite; }
@keyframes pageLoadingSpin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .quick-grid, .product-grid, .product-grid.four { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    .logo-grid.partners { grid-template-columns: repeat(4, 1fr); }
    .bento-sec { margin-top: 0; padding-top: 40px; }
    .bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "catalog  catalog"
            "services quality"
            "support  shop";
    }
}
@media (max-width: 900px) {
    .navbar-inner { height: 66px; }
    .brand-title { display: none; }
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 0 0 0 auto; width: min(80%, 320px); background: #fff;
        flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
        padding: 110px 24px 24px; transform: translateX(100%); transition: transform var(--t);
        box-shadow: -10px 0 40px rgba(0,0,0,.15); z-index: 999; overflow-y: auto;
    }
    .main-nav.open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav ul a { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); border-radius: 0; background-color: #fff; }
    .main-nav .has-mega { display: block; background-color: #fff; }
    .mega-trigger { justify-content: space-between; }
    .navbar { position: static; backdrop-filter: none; }
    /* مگامنو در موبایل: لیست تودرتوی تخت داخل همان پنل سفید (بدون کارت/سایه) */
    .mega-panel { position: static; transform: none; width: auto; opacity: 1; visibility: visible; box-shadow: none; border: 0; border-radius: 0; padding: 0; background: transparent; text-align: right; }
    .mega-panel::before { display: none; }
    .mega-inner { grid-template-columns: 1fr; gap: 0; }
    .mega-caret { display: inline-flex; }
    .mega-col { border-bottom: 1px solid var(--line); }
    .mega-col-head { border-bottom: 0; padding: 10px 24px; gap: 8px; }
    .mega-icon { width: 26px; height: 26px; border-radius: 8px; }
    .mega-col-title { font-size: 14.5px; }
    .mega-list > li > a { padding: 8px 44px; border-bottom: 0; font-size: 14px; }
    .mega-sublist { margin-inline-start: 44px; }
    /* در موبایل مگامنو به‌صورت آکاردئون تک‌ستونه است؛ چیدمان دوستونه غیرفعال شود */
    .mega-list.mega-list-2col { display: flex; flex-direction: column; column-count: 1; }
    /* دکمه‌های بازار از منو خارج و به سکشن زیر اسلایدر منتقل می‌شوند */
    .nav-cta-group { display: none; }
    .market-bar { display: block; }
    .split { grid-template-columns: 1fr; gap: 30px; }
    .split.reverse .split-media { order: 0; }
    .features-grid, .cat-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr; }
    .about-features { grid-template-columns: 1fr 1fr; }
    .reps-layout, .reps-layout.map { grid-template-columns: 1fr; }
    /* موبایل: اول نقشه، بعد لیست نمایندگان */
    .reps-layout.map .iran-map { order: -1; }
    .province-list { flex-direction: row; overflow-x: auto; max-height: none; }
    .province-btn { white-space: nowrap; }
    .reps-cards { grid-template-columns: 1fr; }
    .footer-grid { flex-wrap: wrap; gap: 26px 20px; }
    .footer-grid .footer-col, .footer-grid .footer-col.wide { flex: 1 1 calc(50% - 10px); }
    .stats-sec { background-attachment: scroll; }
    .tl-panel, .tl-panel.active { grid-template-columns: 1fr; gap: 24px; }
    .sh-layout { flex-direction: column; }
    .sh-red { flex: none; border-top-right-radius: 60px; min-height: 130px; padding: 24px 28px; }
    .sh-track { margin-inline-start: 0; top: 0; }
    /* روابط عمومی در موبایل: باکس قرمز حذف، به‌جایش عنوان مشکی + خط قرمز بالای لیست */
    .pr-sec .sh-layout { align-items: stretch; }
    .pr-sec .sh-red { display: none; }
    .pr-mobile-head { display: block; }
    .contact-map-grid { grid-template-columns: 1fr; }
    .contact-map-frame, .contact-map-frame iframe { min-height: 200px; }
}
@media (max-width: 620px) {
    .section { padding: 56px 0; }
    .quick-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .logo-grid, .logo-grid.partners { grid-template-columns: repeat(2, 1fr); }
    /* موبایل: بخش‌های «پرکاربرد و پرفروش» و «محصولات لوتوس‌تل» → اسلایدر تک‌کارتی */
    .product-grid, .product-grid.four {
        display: flex; overflow-x: auto; gap: 14px; padding-bottom: 8px;
        scroll-snap-type: x mandatory; scrollbar-width: none;
    }
    .product-grid::-webkit-scrollbar, .product-grid.four::-webkit-scrollbar { display: none; }
    .product-grid > .product-card, .product-grid.four > .product-card {
        flex: 0 0 88%; scroll-snap-align: center;
    }
    /* «پرکاربرد و پرفروش» در موبایل هم تک‌کارتی بماند (نه ۵ ستون فشرده که در دسکتاپ اعمال می‌شود) */
    #featuredProductsGrid .product-card { flex: 0 0 88%; }
    /* موبایل: باکس‌های «پارسیان همراه لوتوس» (services) و «حوزه عملکرد» (quality) و سکشن about-video مخفی */
    .bento { grid-template-columns: 1fr; grid-template-areas: "catalog" "support" "shop"; }
    .bento-services, .bento-quality { display: none; }
    .about-sec { display: none; }
    /* موبایل: سکشن سهامداران (نه روابط عمومی) و وبلاگ مخفی */
    .shareholders-sec:not(.pr-sec) { display: none; }
    .blog-sec { display: none; }
    /* موبایل: روابط عمومی به اسلایدر دوگزینه‌ای تبدیل شود (اسکرول خودکار هر ۴ ثانیه در site.js) */
    .pr-sec { overflow-x: hidden; }
    .pr-sec .container, .pr-sec .sh-layout, .pr-sec .sh-red, .pr-sec .sh-track { max-width: 100%; }
    .pr-sec .sh-track { margin-inline-start: 0; top: 0; scroll-snap-type: x mandatory; padding: 0; box-sizing: border-box; }
    .pr-sec .sh-card { flex: 0 0 calc(50% - 12px); min-width: 0; scroll-snap-align: start; }
    .pr-sec .sh-photo { width: 72px; height: 72px; }
    .pr-sec .sh-arrows { display: none; }
    .cat-boxes { grid-template-columns: 1fr; }
    .footer-grid .footer-col, .footer-grid .footer-col.wide { flex-basis: 100%; }
    .footer-logos, .footer-seals { justify-content: center; }
    .topbar-links a:first-child { display: none; }
    .hero { min-height: 92vh; }
    .hero-rotator { height: 120px; }
}
@media (max-width: 400px) {
    .quick-grid, .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Alerts (shared with admin) ---------- */
.alert { padding: 13px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 14.5px; font-weight: 500; }
.alert-success { background: #e6f6ec; color: #1c7a3f; border: 1px solid #b6e2c4; }
.alert-error { background: #fdeaea; color: var(--brand); border: 1px solid #f3c1c1; }

/* ---------- Consultation request form ---------- */
.consult-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.consult-form .form-row { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.consult-form label { font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.consult-form input, .consult-form textarea {
    width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    font-family: var(--font); font-size: 14.5px; background: #fff; transition: var(--t);
}
.consult-form input:focus, .consult-form textarea:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(153,0,0,.1);
}
.consult-thanks { text-align: center; padding: 60px 20px; }

/* ---------- Product detail ---------- */
.product-detail-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { background: var(--gray); color: var(--ink-soft); font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 20px; }

/* ---------- Product category drill-down page (interactive) ---------- */
.pd-hero { position: relative; box-shadow: var(--shadow-lg); border-radius: 26px; overflow: hidden; height: 240px; display: grid; place-items: center; background: var(--gray); }
.pd-hero img { width: 100%; height: 100%; object-fit: cover; }
.pd-hero-title { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(22px, 3vw, 34px); font-weight: 900; text-shadow: 0 2px 12px rgba(0,0,0,.55); background: rgba(0,0,0,.28); }

.pd-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 26px 0; }
.pd-chip {
    display: flex; align-items: center; gap: 13px; padding: 14px 18px;
    box-shadow: var(--shadow); border-radius: 16px; background: #fff; color: var(--ink);
    border: 1.5px solid transparent; font-family: var(--font); cursor: pointer; transition: var(--t);
    text-align: right;
}
.pd-chip-badge {
    flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: rgba(153,0,0,.08);
    color: var(--brand); display: grid; place-items: center; font-weight: 800; font-size: 14px; transition: var(--t);
}
.pd-chip-label { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 700; line-height: 1.6; }
.pd-chip:hover { box-shadow: var(--shadow-lg); border-color: rgba(153,0,0,.25); transform: translateY(-3px); }
.pd-chip.active { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); border-color: var(--brand); }
.pd-chip.active .pd-chip-badge { background: rgba(255,255,255,.2); color: #fff; }

.pd-panel { display: none; }
.pd-panel.active { display: block; animation: catFade .35s ease; }

.pd-info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.pd-info-cell {
    background: #f7c6c6; box-shadow: var(--shadow); border-radius: 24px; padding: 12px 20px; font-size: 14.5px; text-align: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.pd-info-cell > span:not(.pd-info-value) { font-weight: 700; color: var(--brand); }
.pd-info-value { display: inline; }
.pd-info-value.pd-info-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pd-info-more {
    display: none; margin-top: 4px; color: var(--brand); font-weight: 700; font-size: 13px;
    background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font);
}
.pd-info-more:not([hidden]) { display: inline-block; }
.pd-info-more:hover { text-decoration: underline; }

.pd-desc { background: #fff; box-shadow: var(--shadow); border-radius: 22px; padding: 30px 28px; min-height: 220px; display: flex; gap: 30px; align-items: flex-start; }
.pd-desc-text { flex: 1; min-width: 0; }
.pd-desc-media { flex: 0 0 260px; }
.pd-desc-media img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow); display: block; object-fit: cover; }
.pd-desc h3 { font-size: 20px; margin-bottom: 12px; }
.pd-desc p, .pd-desc-body { color: var(--ink-soft); line-height: 2.1; text-align: justify; text-justify: inter-word; }
.pd-desc, .pd-desc * { font-family: var(--font) !important; }
.pd-desc-body img { max-width: 100%; border-radius: var(--radius-sm); margin: 10px 0; }
.pd-desc-body.pd-desc-clamped { display: -webkit-box; -webkit-line-clamp: 12; -webkit-box-orient: vertical; overflow: hidden; }
.pd-desc-more {
    display: none; margin-top: 10px; color: var(--brand); font-weight: 700; font-size: 14px;
    background: none; border: none; cursor: pointer; padding: 0; font-family: var(--font);
}
.pd-desc-more:not([hidden]) { display: inline-block; }
.pd-desc-more:hover { text-decoration: underline; }
@media (max-width: 760px) {
    .pd-desc { flex-direction: column; }
    .pd-desc-media { flex-basis: auto; width: 100%; }
}

.pd-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin: 28px 0; }
.pd-action {
    background: var(--brand); color: #fff; font-weight: 700; font-size: 15px;
    padding: 12px 40px; border-radius: 30px; box-shadow: var(--shadow-brand); transition: var(--t);
}
.pd-action:hover { background: var(--brand-dark); transform: translateY(-2px); }
.pd-action.outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); box-shadow: none; }
.pd-action.outline:hover { background: var(--brand); color: #fff; }

.pd-reps-title { font-size: 17px; font-weight: 900; margin: 30px 0 14px; }
.pd-reps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 10px; }
.pd-rep-card { background: #fff; box-shadow: var(--shadow); border-radius: 18px; padding: 20px; }
.pd-rep-card h4 { font-size: 15.5px; margin-bottom: 8px; }
.pd-rep-name { font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.pd-rep-card p { font-size: 13.5px; color: var(--ink-soft); padding: 2px 0; }
.pd-rep-card p span { font-weight: 700; color: var(--muted); }

/* ---------- خدمات محصول (لینک‌های داینامیک: پشتیبانی/سیم‌کارت/حساب) ---------- */
.svc-sec { margin-top: 34px; }
.svc-sec-title { font-size: 18px; font-weight: 900; margin-bottom: 16px; }
.svc-wrap { display: flex; gap: 18px; align-items: stretch; }
.svc-menu { display: flex; flex-direction: column; gap: 12px; flex: 0 0 250px; }
.svc-menu-card {
    display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-radius: 16px;
    border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; font-size: 14.5px;
    font-family: var(--font); color: var(--ink); text-align: right; transition: var(--t); box-shadow: var(--shadow);
}
.svc-menu-card:hover { border-color: var(--brand); }
.svc-menu-card.active {
    background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand);
    padding-top: 26px; padding-bottom: 26px;
}
.svc-box { flex: 1; border-radius: 22px; background: var(--gray); padding: 28px; min-height: 180px; }
.svc-links-grid { display: none; flex-wrap: wrap; gap: 20px; align-content: flex-start; }
.svc-links-grid.active { display: flex; }
.svc-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px; width: 96px;
    text-decoration: none; color: var(--ink);
}
.svc-item-circle {
    width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center; color: var(--brand); transition: var(--t);
}
.svc-item:hover .svc-item-circle { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-3px); }
.svc-item-label { font-size: 13px; text-align: center; font-weight: 600; line-height: 1.5; }
@media (max-width: 720px) {
    .svc-wrap { flex-direction: column; }
    .svc-menu { flex-direction: row; flex-wrap: wrap; flex: 0 0 auto; }
    .svc-menu-card { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 860px) {
    .pd-info { grid-template-columns: repeat(2, 1fr); }
    .pd-reps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .pd-info, .pd-reps { grid-template-columns: 1fr; }
}

/* ---------- صفحه پشتیبانی و خدمات محصولات (SupportSinglePage) ---------- */
/* نوار تب‌ها به‌سبک «پوشه»: تب فعال به بدنهٔ زیرش می‌چسبد، تب‌های غیرفعال کم‌رنگ و عقب‌تر هستند */
.ssp-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding-inline-start: 10px; position: relative; z-index: 2; margin-bottom: -1px; }
.ssp-tab-card {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    padding: 13px 22px; border: 1px solid var(--line); border-bottom: none;
    border-radius: 16px 16px 0 0; background: var(--gray); color: var(--muted);
    font-family: var(--font); font-weight: 700; font-size: 15px; cursor: pointer; transition: var(--t);
}
.ssp-tab-icon { display: inline-flex; width: 20px; height: 20px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.ssp-tab-card:hover { color: var(--brand); }
.ssp-tab-card.active { background: #fff; color: var(--brand); border-color: var(--line); position: relative; z-index: 3; }

.ssp-panel {
    display: none; border: 1px solid var(--line); border-radius: 0 20px 20px 20px;
    background: #fff; padding: 30px; position: relative; z-index: 1;
}
.ssp-panel.active { display: block; animation: catFade .35s ease; }

.ssp-slider { display: flex; align-items: center; gap: 10px; }
.ssp-track {
    display: flex; gap: 18px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
    scroll-snap-type: x proximity; padding: 6px 2px; flex: 1;
}
.ssp-track::-webkit-scrollbar { display: none; }
.ssp-product {
    flex: 0 0 calc((100% - 4 * 18px) / 5); aspect-ratio: 1 / 1; scroll-snap-align: start;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
    cursor: pointer; transition: var(--t); font-family: var(--font);
}
.ssp-product img { max-width: 100%; max-height: 55%; object-fit: contain; }
.ssp-product span { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.ssp-product:hover, .ssp-product.active { border-color: var(--brand); box-shadow: var(--shadow); }
.ssp-product.active { background: rgba(153,0,0,.04); }
.ssp-product.active span { color: var(--brand); }
.ssp-nav {
    flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
    background: #fff; color: var(--brand); cursor: pointer; display: grid; place-items: center; transition: var(--t);
}
.ssp-nav:hover { background: var(--brand); color: #fff; }
.ssp-nav.next svg { transform: scaleX(-1); }

.ssp-details { margin-top: 40px; }
.ssp-detail { border-top: 2px solid var(--line); padding-top: 30px; margin-top: 30px; }
.ssp-detail-title { font-size: 20px; font-weight: 900; margin-bottom: 16px; }

@media (max-width: 900px) {
    .ssp-product { flex-basis: calc((100% - 3 * 18px) / 4); }
}
@media (max-width: 620px) {
    .ssp-tab-card { flex: 1 1 auto; justify-content: center; }
    .ssp-product { flex-basis: calc((100% - 18px) / 2.2); }
}

/* ---------- 404 ---------- */
.notfound-sec { padding: 120px 0; }
.notfound-box { text-align: center; max-width: 560px; }
.notfound-code { display: block; font-size: clamp(64px, 12vw, 120px); font-weight: 900; color: var(--brand); line-height: 1; margin-bottom: 12px; }
.notfound-box .lead { margin: 14px 0 30px; }
.notfound-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Coming soon (/coming-soon) ---------- */
.cs-page {
    position: relative; min-height: 100vh; overflow: hidden; background: var(--white);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 100px 24px 140px;
}
.cs-logo { position: absolute; top: 30px; inset-inline-start: 36px; z-index: 3; }
.cs-logo img { height: 46px; width: auto; display: block; }
.cs-blob-tr {
    position: absolute; top: -140px; inset-inline-end: -140px; width: 340px; height: 340px;
    border-radius: 50%; border: 3px solid var(--brand); opacity: .55; z-index: 1;
}
.cs-blob-bottom {
    position: absolute; left: 0; right: 0; bottom: -40px; height: 170px; background: var(--brand);
    border-radius: 100% 100% 0 0 / 70px 70px 0 0; z-index: 1;
}
.cs-blob-bottom::before {
    content: ""; position: absolute; left: -20px; right: -20px; top: -18px; height: 36px;
    border-top: 3px solid var(--brand); border-radius: 100% 100% 0 0 / 36px 36px 0 0; opacity: .6;
}
.cs-content { position: relative; z-index: 2; max-width: 620px; }
.cs-illus { max-width: 420px; width: 100%; margin: 0 auto 18px; display: block; }
.cs-title { font-size: clamp(22px, 3vw, 29px); font-weight: 900; color: var(--ink); margin-bottom: 16px; }
.cs-text { color: var(--ink-soft); line-height: 2.1; font-size: 15.5px; margin-bottom: 28px; }
@media (max-width: 600px) {
    .cs-page { padding: 90px 18px 120px; }
    .cs-logo { top: 20px; inset-inline-start: 20px; }
    .cs-logo img { height: 36px; }
    .cs-illus { max-width: 300px; }
    .cs-blob-tr { width: 220px; height: 220px; top: -100px; inset-inline-end: -100px; }
    .cs-blob-bottom { height: 120px; }
}

/* ---------- Coverage areas (/coverage) ---------- */
.cov-search {
    display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 30px 0;
}
.cov-search select, .cov-search input[type="text"] {
    height: 48px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 30px;
    font-family: var(--font); font-size: 14.5px; color: var(--ink); background: var(--white); min-width: 200px;
}
.cov-search button { min-width: 120px; }
.cov-table-wrap { overflow-x: auto; border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.cov-table { width: 100%; border-collapse: collapse; min-width: 480px; background: var(--white); }
.cov-table th, .cov-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); font-size: 14px; }
.cov-table th { background: var(--gray); color: var(--brand); font-weight: 700; }
.cov-table tbody tr:last-child td { border-bottom: none; }
.cov-table tbody tr:hover { background: rgba(153,0,0,.03); }
.cov-truncated-note { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 14px; }
@media (max-width: 600px) {
    .cov-search select, .cov-search input[type="text"] { min-width: 0; flex: 1 1 100%; }
}

/* ---------- راهنمای فعال‌سازی سیم‌کارت GPS (/gps#guide) ---------- */
.gps-guide { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.gps-guide-header {
    background: linear-gradient(90deg, var(--brand), #2b0a0a); color: #fff; font-weight: 700; font-size: 16.5px;
    text-align: center; padding: 18px 20px;
}
.gps-guide-body { padding: 28px; }
.gps-guide-title { font-size: 17px; font-weight: 800; margin-bottom: 16px; }
.gps-guide-row {
    display: flex; flex-direction: row-reverse; align-items: center; gap: 14px;
    background: #f7c6c6; border-radius: 14px; padding: 14px 18px; margin-bottom: 12px;
}
.gps-guide-row span:first-child { flex: 1; line-height: 1.9; font-size: 14.5px; }
.gps-guide-check { color: var(--brand); font-weight: 900; font-size: 18px; flex: 0 0 auto; }
.gps-guide-highlight { display: inline-block; background: var(--ink); color: #fff; font-weight: 700; padding: 1px 10px; border-radius: 6px; direction: ltr; }
.gps-guide-footer {
    display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13.5px;
    border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 16px;
}
