/* ===== پرچم کشورها =====
   ویندوز پرچم‌های ایموجی را رندر نمی‌کند و به‌جای 🇺🇸 دو حرف «US» نشان می‌دهد.
   این فونت فقط شامل پرچم‌هاست و unicode-range باعث می‌شود مرورگر آن را فقط برای
   نمادهای «Regional Indicator» به کار ببرد؛ پس روی بقیه‌ی متن اثری ندارد و
   تا وقتی صفحه پرچمی نداشته باشد اصلاً دانلود نمی‌شود.

   مسیر عمداً نسبی است: همین فایل CSS هم در سایت (/) و هم در پنل ادمین (/admin/)
   بارگذاری می‌شود و هر کدام یک نسخه از فونت را کنار خودش کپی می‌کند.

   Twemoji Country Flags — زیرمجموعه‌ی Twemoji Mozilla، از بسته‌ی
   country-flag-emoji-polyfill (MIT). گرافیک‌ها: Twemoji © Twitter, Inc and
   other contributors، با مجوز CC-BY 4.0. */
@font-face {
    font-family: 'Twemoji Country Flags';
    src: url('twemoji-country-flags.woff2') format('woff2');
    unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E007F;
    font-display: swap;
}

/* ===== توکن‌های طراحی ArzFlow Landing v3 ===== */
:root, [data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fc;
    --bg-card: #ffffff;
    --bg-card-hover: #f4f7fd;
    --bg-input: #fbfcff;
    --bg-overlay: rgba(255, 255, 255, 0.9);

    /* سطوح تیره‌ی طراحی (هیرو، نوار آمار، فوتر) */
    --deep: #080f2b;
    --deep-2: #0b1226;
    --deep-line: #141d3d;

    --border-color: #e7ebf6;
    --border-strong: #e3e9f7;
    --border-active: #0d2bff;

    --text-primary: #0b1226;
    --text-secondary: #5a6478;
    --text-muted: #8089a0;

    --primary: #0d2bff;
    --primary-light: #007aff;
    --primary-dark: #0a1fc4;
    --primary-soft: #eaf1ff;

    --purple: #5f3dc4;
    --purple-light: #7c5cf0;
    --cyan: #00cfff;
    --pink: #e8443a;
    --gold: #f5a623;
    --success: #00935f;
    --danger: #e8443a;

    --gradient-primary: linear-gradient(135deg, #0d2bff 0%, #007aff 100%);
    --gradient-purple: linear-gradient(135deg, #5f3dc4 0%, #7433b8 100%);
    --gradient-brand: linear-gradient(90deg, #4a9dff 0%, #00e0ff 100%);

    /* سایه‌ها لایه‌ای‌اند: یک سایه‌ی نزدیکِ تیز برای لبه و یک سایه‌ی دورِ نرم برای
       عمق. همه از همان سرمه‌ای تم رنگ می‌گیرند تا روی زمینه‌ی روشن کدر نشوند. */
    --shadow-sm: 0 1px 2px rgba(10, 18, 48, 0.05), 0 2px 8px rgba(10, 18, 48, 0.05);
    --shadow-md: 0 2px 4px rgba(10, 18, 48, 0.04), 0 12px 30px -6px rgba(10, 18, 48, 0.12);
    --shadow-lg: 0 4px 10px rgba(10, 18, 48, 0.04), 0 28px 56px -16px rgba(10, 18, 48, 0.2);
    --shadow-card: 0 1px 2px rgba(10, 18, 48, 0.04), 0 10px 28px -14px rgba(10, 18, 48, 0.16);
    --shadow-card-hover: 0 2px 4px rgba(10, 18, 48, 0.04), 0 22px 44px -18px rgba(13, 43, 255, 0.32);
    /* .btn-auth و .btn-panel از قبل به این متغیر ارجاع می‌دادند ولی تعریف نشده
       بود، پس سایه‌شان عملاً هیچ بود. */
    --shadow-glow: 0 14px 30px -10px rgba(13, 43, 255, 0.55);
    /* حلقه‌ی فوکوس فیلدها و گزینه‌های انتخاب‌شده */
    --ring: 0 0 0 4px rgba(13, 43, 255, 0.12);

    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* آیکن‌های تک‌رنگ برای mask-image: رنگ از background خود عنصر می‌آید، پس
       یک آیکن در هر رنگی قابل استفاده است. */
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    --icon-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 5C6.1 6.6 4 9.4 4 13v6h6v-6H7c0-2.3 1.2-4.1 3.4-5.2L9.6 5zm10 0c-3.5 1.6-5.6 4.4-5.6 8v6h6v-6h-3c0-2.3 1.2-4.1 3.4-5.2L19.6 5z'/%3E%3C/svg%3E");
    --icon-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c2.5 2.6 3.8 5.7 3.8 9s-1.3 6.4-3.8 9c-2.5-2.6-3.8-5.7-3.8-9S9.5 5.6 12 3z'/%3E%3C/svg%3E");

    /* فونت پرچم اول می‌آید ولی به‌خاطر unicode-range فقط پرچم‌ها را می‌گیرد؛
       هر نویسه‌ی دیگری مستقیم به Vazirmatn می‌رسد. */
    --font-fa: 'Twemoji Country Flags', 'Vazirmatn', system-ui, -apple-system, sans-serif;
    --font-en: 'Twemoji Country Flags', 'Vazirmatn', system-ui, sans-serif;

    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;

    /* حاشیه‌ی افقی سکشن‌ها — در طراحی ۴۸px است */
    --pad-x: 48px;

    /* در صفحه‌های عریض محتوا از این عرض بیشتر کش نمی‌آید. پس‌زمینه‌ی سکشن‌ها
       تمام‌عرض می‌ماند و فقط padding افقی بزرگ‌تر می‌شود؛ زیر این عرض همان
       --pad-x است. ‎100%‎ در محل استفاده حل می‌شود (عرض خودِ سکشن). */
    --content-max: 1280px;
    --gutter: max(var(--pad-x), calc((100% - var(--content-max)) / 2));

    /* لندینگ تیره: همان سرمه‌ای برند در چند لایه، و متن روشن روی آن */
    --night: #050a1f;
    --night-2: #070e29;
    --night-muted: #9aa6cf;
    --night-dim: #6e7aa6;
    /* فاصله‌ی بالای صفحه‌های داخلی برای هدر شناور */
    --header-space: 96px;
}

/* ===== ریست ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
}
html[data-theme="light"] { background: var(--night); }

body {
    font-family: var(--font-fa);
    background: #fff;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* در صفحه‌های کوتاه (ورود، سبد خالی، محصول بی‌محتوا) فوتر وسط صفحه می‌ماند و
   زیرش نوار سفید پیدا بود. با ستون flex، صفحه‌ی فعال فضای خالی را پر می‌کند و
   فوتر به پایین می‌چسبد. فقط سایت (تم روشن)؛ پنل ادمین چیدمان body خودش را دارد. */
html[data-theme="light"] body { display: flex; flex-direction: column; }
html[data-theme="light"] body > .site-page.active { flex: 1 0 auto; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea { font-family: inherit; }

/* حلقه‌ی فوکوس صفحه‌کلید برای کنترل‌های سایت. محدود به تم روشن است چون پنل
   ادمین (تم dark) هم همین فایل را بارگذاری می‌کند. :where وزن انتخابگر را صفر
   نگه می‌دارد تا حلقه‌ی اختصاصی اجزا (مثل کاشی‌ها) بر آن غلبه کند. */
[data-theme="light"] :where(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid rgba(13, 43, 255, 0.55);
    outline-offset: 2px;
}
/* روی سطوح تیره آبی تم دیده نمی‌شود؛ مودال سفارش سفید است و آبی می‌ماند */
[data-theme="light"] :where(.header, #pageHome, .footer) :focus-visible {
    outline-color: rgba(0, 207, 255, 0.75);
}
[data-theme="light"] .ck :focus-visible { outline-color: rgba(13, 43, 255, 0.55); }

/* ===== منوی کاربر (دراپ‌داون نام در هدر) ===== */
.login-wrap { position: relative; }
.user-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 190px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    z-index: 200;
    transform-origin: top left;
}
.user-menu.active { display: flex; animation: menuIn 0.18s var(--ease-out); }
@keyframes menuIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.user-menu-item {
    padding: 10px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 14px;
    font-weight: 500;
    text-align: right;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.user-menu-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.user-menu-item.danger { color: var(--danger); }
.user-menu-item.danger:hover { background: rgba(232, 68, 58, 0.08); }

/* ===== صفحات مستقل (جایگزین مودال‌های قبلی) ===== */
.site-page {
    display: none;
    padding: calc(var(--header-space) + 28px) 20px 80px;
    min-height: 55vh;
    /* بالای صفحه همان سرمه‌ای لندینگ است و کارت سفید رویش شناور می‌شود؛
       بقیه‌ی صفحه خاکستری روشن تا کارت از زمینه جدا شود. */
    background:
        radial-gradient(900px 280px at 80% 0, rgba(13, 43, 255, 0.35), transparent 70%) no-repeat,
        linear-gradient(180deg, var(--night) 0, var(--night) 250px, var(--bg-secondary) 250px) no-repeat,
        var(--bg-secondary);
}
.site-page.active { display: block; animation: pageFadeIn 0.35s ease-out; }
/* صفحه‌ی اصلی بخش‌های تمام‌عرض خودش را دارد، پس padding عمومی ندارد */
#pageHome { padding: 0; background: var(--night); }
@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.site-page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.site-page-back:hover { color: var(--primary); border-color: rgba(13, 43, 255, 0.3); background: var(--primary-soft); }

/* ===== قواعد مشترک صفحه‌های مستقل (تب قوانین، بج وضعیت، دکمه و حالت خالی سبد) ===== */
/* تب‌های پنل و صفحه‌ی قوانین به‌شکل کنترل تکه‌ای (segmented): تب فعال با
   زمینه‌ی سفید و سایه از بقیه جدا می‌شود، نه فقط با رنگ. */
.legal-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 22px;
    padding: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow-x: auto;
    scrollbar-width: none;
}

.legal-tabs::-webkit-scrollbar { display: none; }

.legal-tab {
    flex: 1 0 auto;
    padding: 9px 14px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: var(--font-fa);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.legal-tab:hover { color: var(--text-primary); }

.legal-tab.active { color: var(--primary); background: var(--bg-card); box-shadow: var(--shadow-sm); }

/* بج وضعیت. پنل ادمین بج‌های خودش را در admin.css بازتعریف می‌کند. */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* طلایی تم روی زمینه‌ی روشن خوانا نبود؛ همان فام، یک درجه تیره‌تر */
.badge-pending { background: #fff4dc; color: #a86a00; }

.badge-completed { background: #e3f6ee; color: var(--success); }

.badge-cancelled { background: #fdeceb; color: #c9372e; }

.badge-processing { background: var(--primary-soft); color: var(--primary); }

@keyframes statusPulse { 50% { opacity: 0.3; } }

.btn-panel {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 24px -12px rgba(13, 43, 255, 0.6);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s;
}

.btn-panel:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-glow); }

.btn-panel:active { transform: translateY(0) scale(0.99); }

/* تسویه‌ی سبد در حین درخواست disabled می‌شود */
.btn-panel:disabled { cursor: wait; opacity: 0.7; transform: none; }

.panel-loading, .panel-empty { text-align: center; color: var(--text-muted); padding: 24px; }

/* ===== پنل کاربری (/panel) =====
   نوار سرمه‌ای بالا با خوشامد، ستون کناری (پروفایل، کیف پول، منو) و محتوای هر بخش
   در کارت‌های سفید. همه‌ی کلاس‌ها با acct- شروع می‌شوند؛ این فایل در پنل ادمین هم
   بارگذاری می‌شود و نباید با کلاس‌های آنجا تداخل کند. */
#panelPage.acct-page {
    padding: calc(var(--header-space) + 14px) 20px 88px;
    background:
        radial-gradient(760px 320px at 88% -60px, rgba(13, 43, 255, 0.5), transparent 70%) no-repeat,
        radial-gradient(520px 260px at 8% -40px, rgba(0, 207, 255, 0.16), transparent 70%) no-repeat,
        linear-gradient(180deg, var(--night) 0, var(--night-2) 320px, var(--bg-secondary) 320px) no-repeat,
        var(--bg-secondary);
}
.acct-wrap { max-width: 1200px; margin: 0 auto; }
.acct-page .tone-blue { color: var(--primary); background: var(--primary-soft); }
.acct-page .tone-purple { color: var(--purple); background: #f1ecff; }
.acct-page .tone-green { color: var(--success); background: #e3f6ee; }
.acct-page .tone-amber { color: #b86e00; background: #fff4dc; }
.acct-page .tone-red { color: var(--danger); background: #fdeceb; }

/* ---------- خوشامد روی نوار سرمه‌ای ---------- */
.acct-hero { margin-bottom: 24px; color: #fff; }
.acct-crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; color: var(--night-muted); font-size: 12.5px; }
.acct-crumbs a { color: var(--night-muted); text-decoration: none; transition: color 0.15s; }
.acct-crumbs a:hover { color: #fff; }
.acct-crumbs span:last-child { color: #fff; font-weight: 600; }
.acct-hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.acct-hero h1 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.01em; line-height: 1.4; }
.acct-hero p { margin: 6px 0 0; color: var(--night-muted); font-size: 13.5px; }
.acct-hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: none;
    padding: 11px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font: 700 13.5px var(--font-fa);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease-out);
}
.acct-hero-btn:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.32); transform: translateY(-1px); }
.acct-btn-ic, .acct-btn-ic svg { width: 17px; height: 17px; display: block; flex: none; }
/* حلقه‌ی فوکوس صفحه‌کلید روی سطوح تیره و آبی پنل */
[data-theme="light"] .acct-hero :focus-visible { outline-color: rgba(0, 207, 255, 0.75); }
[data-theme="light"] .acct-stat.is-wallet :focus-visible { outline-color: rgba(255, 255, 255, 0.85); }

/* ---------- چیدمان ---------- */
.acct-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); align-items: start; gap: 22px; }
.acct-side { position: sticky; top: calc(var(--header-space) + 8px); display: flex; flex-direction: column; gap: 14px; }
.acct-main { min-width: 0; scroll-margin-top: calc(var(--header-space) + 12px); }
.acct-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: var(--shadow-card); }
.acct-section { display: flex; flex-direction: column; gap: 16px; animation: acctIn 0.35s var(--ease-out); }
@keyframes acctIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- کارت پروفایل ---------- */
.acct-profile { position: relative; overflow: hidden; padding: 20px; }
.acct-profile::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 74px;
    background: linear-gradient(135deg, rgba(13, 43, 255, 0.1), rgba(0, 207, 255, 0.08));
}
.acct-profile-top { position: relative; display: flex; align-items: center; gap: 12px; }
.acct-avatar {
    width: 58px;
    height: 58px;
    flex: none;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--gradient-primary);
    border-radius: 18px;
    font-size: 23px;
    font-weight: 800;
    box-shadow: 0 0 0 4px #fff, 0 12px 24px -10px rgba(13, 43, 255, 0.6);
}
.acct-avatar-ic svg { width: 26px; height: 26px; display: block; }
.acct-profile-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acct-profile-id b { overflow: hidden; color: var(--text-primary); font-size: 16px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.acct-profile-id span { align-self: flex-start; color: var(--text-muted); font-size: 13px; letter-spacing: 0.02em; }
.acct-profile-tags { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.acct-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font: 600 11.5px/1.6 var(--font-fa);
    white-space: nowrap;
}
button.acct-tag { cursor: pointer; }
.acct-tag-ic, .acct-tag-ic svg { width: 13px; height: 13px; display: block; flex: none; }
.acct-tag.ok { color: var(--success); background: #e3f6ee; border-color: #c4ead7; }
.acct-tag.warn { color: #a86a00; background: #fff4dc; border-color: #f3dca8; }
.acct-mini-wallet {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin-top: 16px;
    padding: 14px;
    color: #fff;
    text-align: right;
    background:
        radial-gradient(160px 90px at 0% 0%, rgba(0, 224, 255, 0.35), transparent 70%),
        linear-gradient(135deg, #0d2bff 0%, #1661ff 55%, #0096ff 100%);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 28px -16px rgba(13, 43, 255, 0.8);
    font-family: var(--font-fa);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.acct-mini-wallet:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -16px rgba(13, 43, 255, 0.9); }
.acct-mini-wallet-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border-radius: 12px; }
.acct-mini-wallet-ic svg { width: 20px; height: 20px; display: block; }
.acct-mini-wallet-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.acct-mini-wallet-text > small { color: rgba(255, 255, 255, 0.8); font-size: 11.5px; }
.acct-mini-wallet-text b { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.acct-mini-wallet-text b small { margin-inline-start: 4px; color: rgba(255, 255, 255, 0.75); font-size: 11.5px; font-weight: 600; }
.acct-mini-wallet-add { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
.acct-mini-wallet-add svg { width: 16px; height: 16px; display: block; }

/* ---------- منوی بخش‌ها ---------- */
.acct-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.acct-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    border-radius: 12px;
    font: 600 14px var(--font-fa);
    text-align: right;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.acct-nav-item:hover { color: var(--text-primary); background: var(--bg-secondary); }
.acct-nav-item.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
/* نشانگر بخش فعال لبه‌ی راست کارت */
.acct-nav-item.active::before {
    content: "";
    position: absolute;
    inset-inline-start: -8px;
    top: 11px;
    bottom: 11px;
    width: 3px;
    background: var(--primary);
    border-radius: 3px 0 0 3px;
}
.acct-nav-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; color: var(--text-muted); background: var(--bg-secondary); border-radius: 10px; transition: background 0.15s, color 0.15s; }
.acct-nav-ic svg { width: 18px; height: 18px; display: block; }
.acct-nav-item.active .acct-nav-ic { color: #fff; background: var(--gradient-primary); box-shadow: 0 8px 16px -8px rgba(13, 43, 255, 0.6); }
.acct-nav-label { flex: 1; min-width: 0; }
.acct-nav-badge { min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; color: #fff; background: var(--primary); border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.acct-nav-sep { height: 1px; margin: 6px 10px; background: var(--border-color); }
.acct-nav-item.danger { color: var(--danger); }
.acct-nav-item.danger .acct-nav-ic { color: var(--danger); background: rgba(232, 68, 58, 0.08); }
.acct-nav-item.danger:hover { background: rgba(232, 68, 58, 0.06); }

.acct-help {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f4f0ff, #eaf1ff);
    border: 1px solid #e3dcfb;
    border-radius: 18px;
    font-family: var(--font-fa);
    text-align: right;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.acct-help:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.acct-help-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: #fff; background: var(--gradient-purple); border-radius: 12px; }
.acct-help-ic svg { width: 20px; height: 20px; display: block; }
.acct-help-text { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.acct-help-text b { color: var(--text-primary); font-size: 13.5px; }
.acct-help-text small { color: var(--text-secondary); font-size: 12px; }
.acct-help-go { color: var(--purple); }
.acct-help-go svg { width: 18px; height: 18px; display: block; }

/* ---------- سرتیتر هر بخش ---------- */
.acct-head { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 20px; box-shadow: var(--shadow-card); }
.acct-head-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); border-radius: 14px; box-shadow: 0 0 0 4px rgba(13, 43, 255, 0.07), 0 10px 20px -10px rgba(13, 43, 255, 0.7); }
.acct-head-ic svg { width: 22px; height: 22px; display: block; }
.acct-head h2 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 800; }
.acct-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.8; }

/* ---------- دکمه‌ها ---------- */
.acct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: 700 13.5px var(--font-fa);
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s, opacity 0.2s;
}
.acct-btn.sm { min-height: 38px; padding: 0 14px; border-radius: 11px; font-size: 12.5px; }
.acct-btn.block { width: 100%; }
.acct-btn.primary { color: #fff; background: var(--gradient-primary); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 10px 22px -12px rgba(13, 43, 255, 0.7); }
.acct-btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), var(--shadow-glow); }
.acct-btn.ghost { color: var(--text-primary); background: #fff; border-color: var(--border-strong); }
.acct-btn.ghost:hover:not(:disabled), .acct-btn.ghost.active { color: var(--primary); background: var(--primary-soft); border-color: rgba(13, 43, 255, 0.35); }
.acct-btn.danger { color: #fff; background: linear-gradient(135deg, #f0584e, #d9362c); box-shadow: 0 10px 22px -12px rgba(217, 54, 44, 0.7); }
.acct-btn.danger:hover:not(:disabled) { transform: translateY(-1px); }
.acct-btn.danger-ghost { color: var(--danger); background: rgba(232, 68, 58, 0.06); border-color: rgba(232, 68, 58, 0.22); }
.acct-btn.danger-ghost:hover:not(:disabled) { color: #fff; background: var(--danger); border-color: var(--danger); }
.acct-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.acct-btn-ic.star { color: #f5a623; }
.acct-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    color: var(--primary);
    background: none;
    border: 0;
    border-radius: 8px;
    font: 700 12.5px var(--font-fa);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s;
}
.acct-link:hover:not(:disabled) { background: var(--primary-soft); }
.acct-link:disabled { opacity: 0.5; cursor: not-allowed; }
.acct-link span, .acct-link svg { width: 15px; height: 15px; display: block; }

/* ---------- بلوک‌ها، ستون‌ها، حالت خالی ---------- */
.acct-block { padding: 20px; }
.acct-block-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.acct-block-head > div { flex: 1; min-width: 0; }
.acct-block-head h3 { margin: 0; color: var(--text-primary); font-size: 15.5px; font-weight: 800; }
.acct-block-head p { margin: 4px 0 0; color: var(--text-muted); font-size: 12.5px; line-height: 1.8; }
.acct-block-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.acct-block-ic svg { width: 19px; height: 19px; display: block; }
.acct-columns { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; }
.acct-columns.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acct-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 24px; text-align: center; }
.acct-empty.flat { padding: 28px 16px; background: var(--bg-secondary); border: 1px dashed var(--border-strong); border-radius: 16px; box-shadow: none; }
.acct-empty-ic { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 4px; color: var(--primary); background: var(--primary-soft); border-radius: 18px; }
.acct-empty-ic svg { width: 26px; height: 26px; display: block; }
.acct-empty b { color: var(--text-primary); font-size: 15px; }
.acct-empty p { max-width: 400px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.acct-empty .acct-btn { margin-top: 8px; }
.acct-empty.is-error .acct-empty-ic { color: var(--danger); background: #fdeceb; }
.acct-skeleton { display: grid; gap: 12px; }
.acct-skeleton span {
    height: 96px;
    background: linear-gradient(90deg, #eef1f7 0%, #f7f9fc 50%, #eef1f7 100%);
    background-size: 200% 100%;
    border-radius: 18px;
    animation: acctShimmer 1.2s ease-in-out infinite;
}
@keyframes acctShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- پیشخوان ---------- */
.acct-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: linear-gradient(270deg, #fff4dc, #fff 80%); border: 1px solid #f3dca8; border-radius: 18px; }
.acct-banner-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; color: #a86a00; background: #ffe9b8; border-radius: 12px; }
.acct-banner-ic svg { width: 20px; height: 20px; display: block; }
.acct-banner > div { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.acct-banner b { color: var(--text-primary); font-size: 14px; }
.acct-banner small { color: var(--text-secondary); font-size: 12px; }
.acct-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.acct-stat { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 18px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; box-shadow: var(--shadow-card); }
.acct-stat-top { display: flex; align-items: center; gap: 10px; }
.acct-stat-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.acct-stat-ic svg { width: 19px; height: 19px; display: block; }
.acct-stat-label { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.acct-stat-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; color: var(--text-primary); font-size: 24px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; }
.acct-stat-value small { color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.acct-stat-hint { color: var(--text-muted); font-size: 12px; }
.acct-stat-hint.warn { color: #a86a00; font-weight: 700; }
.acct-stat.is-wallet {
    color: #fff;
    background:
        radial-gradient(200px 140px at 0% 0%, rgba(0, 224, 255, 0.35), transparent 70%),
        linear-gradient(135deg, #0d2bff 0%, #1661ff 55%, #0096ff 100%);
    border: 0;
    box-shadow: 0 18px 34px -18px rgba(13, 43, 255, 0.8);
}
.acct-stat.is-wallet .acct-stat-ic { color: #fff; background: rgba(255, 255, 255, 0.16); }
.acct-stat.is-wallet .acct-stat-label { color: rgba(255, 255, 255, 0.85); }
.acct-stat.is-wallet .acct-stat-value { color: #fff; }
.acct-stat.is-wallet .acct-stat-value small { color: rgba(255, 255, 255, 0.75); }
.acct-stat-action {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    font: 700 12px var(--font-fa);
    cursor: pointer;
    transition: background 0.15s;
}
.acct-stat-action:hover { background: rgba(255, 255, 255, 0.28); }
.acct-stat-action span, .acct-stat-action svg { width: 14px; height: 14px; display: block; }

.acct-visual { flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 12px; }
.acct-visual svg { width: 55%; height: 55%; }
.acct-visual.sm { width: 40px; height: 40px; border-radius: 12px; }
.acct-visual.md { width: 46px; height: 46px; border-radius: 13px; }
.acct-visual.lg { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 18px -12px rgba(10, 18, 48, 0.4); }
.acct-visual.has-image { background: #fff; border: 1px solid var(--border-color); }
.acct-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }

.acct-subs { display: grid; gap: 10px; }
.acct-sub { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; }
.acct-sub-body { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.acct-sub-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.acct-sub-top b { overflow: hidden; color: var(--text-primary); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub-days { flex: none; color: var(--text-secondary); font-size: 12px; font-weight: 700; }
.acct-sub.soon .acct-sub-days { color: #a86a00; }
.acct-sub.ended .acct-sub-days { color: var(--danger); }
.acct-sub small { color: var(--text-muted); font-size: 11.5px; }
.acct-meter { height: 6px; overflow: hidden; background: #e6ebf5; border-radius: 999px; }
.acct-meter i { display: block; height: 100%; background: linear-gradient(270deg, #0d2bff, #00b3ff); border-radius: inherit; }
.soon .acct-meter i { background: linear-gradient(270deg, #f5a623, #ffcc66); }
.ended .acct-meter i { background: #d5dae6; }
.renewed .acct-meter i { background: linear-gradient(270deg, #00935f, #2fd08f); }

.acct-mini-orders { display: grid; margin: 0 -8px; }
.acct-mini-order {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 8px;
    background: none;
    border: 0;
    border-radius: 12px;
    font-family: var(--font-fa);
    text-align: right;
    cursor: pointer;
    transition: background 0.15s;
}
.acct-mini-order + .acct-mini-order { box-shadow: inset 0 1px 0 #eef1f7; }
.acct-mini-order:hover { background: var(--bg-secondary); box-shadow: none; }
.acct-mini-order:hover + .acct-mini-order { box-shadow: none; }
.acct-mini-order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acct-mini-order-main b { overflow: hidden; color: var(--text-primary); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.acct-mini-order-main small { overflow: hidden; color: var(--text-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.acct-mini-order-amount { color: var(--text-primary); font-size: 13px; font-weight: 800; white-space: nowrap; }
.acct-mini-order-amount small { margin-inline-start: 3px; color: var(--text-muted); font-size: 11px; font-weight: 600; }

.acct-quick { display: flex; flex-direction: column; }
.acct-quick-list { flex: 1; display: grid; grid-auto-rows: minmax(60px, 1fr); gap: 8px; }
.acct-quick-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 14px;
    font-family: var(--font-fa);
    text-align: right;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease-out);
}
.acct-quick-item:hover { background: #fff; border-color: rgba(13, 43, 255, 0.22); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.acct-quick-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.acct-quick-ic svg { width: 19px; height: 19px; display: block; }
.acct-quick-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.acct-quick-text b { font-size: 13.5px; font-weight: 700; }
.acct-quick-text small { overflow: hidden; color: var(--text-muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.acct-quick-go { flex: none; color: var(--text-muted); transition: color 0.15s, transform 0.2s var(--ease-out); }
.acct-quick-go svg { width: 16px; height: 16px; display: block; }
.acct-quick-item:hover .acct-quick-go { color: var(--primary); transform: translateX(-3px); }

/* ---------- شروع با ارزفلو (حساب بدون سفارش) ---------- */
.acct-start-count { flex: none; align-self: center; padding: 4px 11px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.acct-start > .acct-meter { margin: -2px 0 14px; }
.acct-start-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.acct-start-list li { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; }
.acct-start-dot { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: var(--text-secondary); background: #fff; border: 1.5px solid var(--border-strong); border-radius: 50%; font-size: 13px; font-weight: 800; }
.acct-start-check svg { width: 15px; height: 15px; display: block; }
.acct-start-list li.done .acct-start-dot { color: #fff; background: var(--success); border-color: var(--success); }
.acct-start-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.acct-start-text b { color: var(--text-primary); font-size: 13.5px; }
.acct-start-list li.done .acct-start-text b { color: var(--text-secondary); }
.acct-start-text small { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.acct-start-list .acct-btn { flex: none; }

/* ---------- وضعیت سفارش ---------- */
.acct-status { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 4px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.acct-status::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; border-radius: 50%; }
.acct-status.done { color: var(--success); background: #e3f6ee; }
.acct-status.active { color: var(--primary); background: var(--primary-soft); }
.acct-status.active::before { animation: statusPulse 1.6s ease-in-out infinite; }
.acct-status.waiting { color: #a86a00; background: #fff4dc; }
.acct-status.cancelled { color: #c9372e; background: #fdeceb; }

/* ---------- سفارش‌ها ---------- */
.acct-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 18px; box-shadow: var(--shadow-card); }
.acct-seg { display: inline-flex; gap: 3px; max-width: 100%; padding: 4px; overflow-x: auto; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 13px; scrollbar-width: none; }
.acct-seg::-webkit-scrollbar { display: none; }
.acct-seg button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 0 14px;
    color: var(--text-secondary);
    background: none;
    border: 0;
    border-radius: 10px;
    font: 600 13px var(--font-fa);
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.acct-seg button:hover { color: var(--text-primary); }
.acct-seg button.active { color: var(--primary); background: #fff; box-shadow: var(--shadow-sm); }
.acct-seg-count { min-width: 20px; padding: 0 6px; color: var(--text-muted); background: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 20px; }
.acct-seg button.active .acct-seg-count { color: #fff; background: var(--primary); }
.acct-seg.small { flex: none; }
.acct-seg.small button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.acct-search { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 220px; padding: 0 12px; background: var(--bg-input); border: 1.5px solid var(--border-color); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.acct-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.acct-search-ic { color: var(--text-muted); }
.acct-search-ic svg { width: 17px; height: 17px; display: block; }
.acct-search input { flex: 1; min-width: 0; min-height: 42px; color: var(--text-primary); background: none; border: 0; outline: none; font: 14px var(--font-fa); }

.acct-orders { display: grid; gap: 14px; }
.acct-order { position: relative; overflow: hidden; padding: 18px 20px; transition: border-color 0.2s, box-shadow 0.2s; }
/* نوار رنگی وضعیت در لبه‌ی راست کارت */
.acct-order::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 4px; background: var(--border-strong); }
.acct-order.is-done::before { background: linear-gradient(180deg, #00b877, #00935f); }
.acct-order.is-active::before { background: var(--gradient-primary); }
.acct-order.is-waiting::before { background: #f5a623; }
.acct-order.is-cancelled::before { background: #e3e7ef; }
.acct-order:hover { border-color: #d7def0; box-shadow: var(--shadow-card-hover); }
.acct-order-top { display: flex; align-items: center; gap: 14px; }
.acct-order-title { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.acct-order-title b { color: var(--text-primary); font-size: 15.5px; font-weight: 800; line-height: 1.5; }
.acct-order-title > span { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 12.5px; }
.acct-region { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 999px; font-size: 11.5px; }
.acct-order-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0 0; padding: 14px 16px; background: var(--bg-secondary); border-radius: 14px; }
.acct-order-meta div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acct-order-meta dt { color: var(--text-muted); font-size: 11.5px; }
.acct-order-meta dd { margin: 0; overflow-wrap: anywhere; color: var(--text-primary); font-size: 13px; font-weight: 700; }
.acct-code-line { display: flex; align-items: center; gap: 4px; }
.acct-code-line bdi { font-family: var(--font-en); letter-spacing: 0.02em; }
.acct-off { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; white-space: nowrap; color: var(--success); background: #e3f6ee; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }

.acct-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 2px; padding: 0; list-style: none; }
.acct-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text-muted); font-size: 11.5px; font-weight: 600; text-align: center; }
/* خط اتصال به مرحله‌ی بعد (در راست‌به‌چپ، سمت چپ) */
.acct-steps li::before { content: ""; position: absolute; top: 11px; inset-inline-start: 50%; width: 100%; height: 2px; background: #e3e8f2; }
.acct-steps li:last-child::before { display: none; }
.acct-steps li.done::before { background: var(--success); }
.acct-step-dot { position: relative; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; color: #fff; background: #fff; border: 2px solid #d5dbe8; border-radius: 50%; }
.acct-step-dot svg { width: 13px; height: 13px; display: block; }
.acct-steps li.done { color: var(--text-secondary); }
.acct-steps li.done .acct-step-dot { background: var(--success); border-color: var(--success); }
.acct-steps li.current { color: var(--primary); font-weight: 700; }
.acct-steps li.current .acct-step-dot { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(13, 43, 255, 0.12); }
.acct-steps li.current .acct-step-dot::after { content: ""; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; animation: statusPulse 1.6s ease-in-out infinite; }

.acct-validity { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding: 12px 14px; background: #f4f7ff; border: 1px solid #dfe7fb; border-radius: 14px; }
.acct-validity-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; }
.acct-validity-head > span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); font-weight: 600; }
.acct-validity-ic svg { width: 15px; height: 15px; display: block; }
.acct-validity-head b { color: var(--text-primary); font-size: 13px; }
.acct-validity small { color: var(--text-muted); font-size: 11.5px; }
.acct-validity.soon { background: #fff8e8; border-color: #f3dca8; }
.acct-validity.soon b { color: #a86a00; }
.acct-validity.ended { background: #f6f7fa; border-color: var(--border-color); }
.acct-validity.ended b { color: var(--danger); }
.acct-validity.renewed { background: #eefaf4; border-color: #c4ead7; }
.acct-validity.renewed b { color: var(--success); }

.acct-delivery { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 14px; background: linear-gradient(135deg, #effaf4, #f7fcf9); border: 1px solid #c4ead7; border-radius: 14px; }
.acct-delivery-head { display: flex; align-items: center; gap: 8px; }
.acct-delivery-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #00b877, #00935f); border-radius: 9px; }
.acct-delivery-ic svg { width: 16px; height: 16px; display: block; }
.acct-delivery-head b { flex: 1; color: var(--text-primary); font-size: 13.5px; }
.acct-code-card { display: grid; gap: 4px; padding: 8px 12px; background: #fff; border: 1px solid #d3ecdc; border-radius: 12px; }
.acct-code-row { display: flex; align-items: center; gap: 10px; min-height: 32px; color: var(--text-secondary); font-size: 12px; }
.acct-code-row > span { width: 44px; flex: none; }
/* کد با یک کلیک کامل انتخاب می‌شود؛ در حالت پوشیده انتخاب نمی‌شود */
.acct-code-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; color: var(--text-primary); font: 700 13.5px/1.7 ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: 0.03em; text-align: left; user-select: all; }
.acct-code-row code.hidden-code { color: var(--text-muted); letter-spacing: 0.14em; user-select: none; }
.acct-redeem { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.acct-redeem:hover { text-decoration: underline; text-underline-offset: 3px; }
.acct-redeem span, .acct-redeem svg { width: 14px; height: 14px; display: block; }
.acct-copy { width: 30px; height: 30px; flex: none; display: grid; place-items: center; padding: 0; color: var(--text-muted); background: transparent; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.acct-copy svg { width: 15px; height: 15px; display: block; }
.acct-copy:hover { color: var(--primary); background: var(--primary-soft); }
.acct-copy.done { color: var(--success); background: #e3f6ee; }

.acct-review { margin-top: 14px; padding: 12px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 14px; }
.acct-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.acct-review-title { color: var(--text-secondary); font-size: 12.5px; font-weight: 700; }
.acct-stars { display: inline-flex; gap: 2px; }
.acct-stars span { width: 15px; height: 15px; color: #d5dae6; }
.acct-stars span svg { width: 15px; height: 15px; display: block; }
.acct-stars span.on { color: #f5a623; }
.acct-stars span.on svg, .acct-rate-star.on svg { fill: currentColor; }
.acct-review-state { padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1.9; }
.acct-review-state.pending { color: #a86a00; background: #fff4dc; }
.acct-review-state.approved { color: var(--success); background: #e3f6ee; }
.acct-review-state.rejected { color: var(--text-muted); background: #eef0f5; }
.acct-review-head .acct-link { margin-inline-start: auto; }
.acct-review-text { margin: 8px 0 0; color: var(--text-secondary); font-size: 13px; line-height: 1.9; white-space: pre-line; }
.acct-review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px; background: #fff; border: 1px solid #d7def0; border-radius: 14px; box-shadow: var(--shadow-sm); }
.acct-review-form > b { color: var(--text-primary); font-size: 13px; }
.acct-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.acct-rate-star { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: #d5dae6; background: var(--bg-secondary); border: 0; border-radius: 11px; cursor: pointer; transition: transform 0.15s, color 0.15s, background 0.15s; }
.acct-rate-star svg { width: 22px; height: 22px; display: block; }
.acct-rate-star.on { color: #f5a623; background: #fff4dc; }
.acct-rate-star:hover { transform: scale(1.08); }
.acct-rate-text { margin-inline-start: 8px; color: var(--text-secondary); font-size: 12.5px; font-weight: 700; }
.acct-textarea { width: 100%; min-height: 84px; padding: 10px 12px; color: var(--text-primary); background: var(--bg-input); border: 1.5px solid var(--border-color); border-radius: 12px; font: 13px/1.9 var(--font-fa); resize: vertical; transition: border-color 0.2s, box-shadow 0.2s; }
.acct-textarea:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.acct-hint { color: var(--text-muted); font-size: 11.5px; line-height: 1.8; }
.acct-form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border-color); }

/* ---------- کیف پول ---------- */
.acct-wallet-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
.acct-balance {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 240px;
    padding: 24px;
    color: #fff;
    background:
        radial-gradient(300px 200px at 0% 0%, rgba(0, 224, 255, 0.35), transparent 70%),
        radial-gradient(260px 200px at 100% 100%, rgba(95, 61, 196, 0.55), transparent 70%),
        linear-gradient(135deg, #0a1fc4 0%, #0d2bff 45%, #1661ff 100%);
    border-radius: 22px;
    box-shadow: 0 24px 44px -22px rgba(13, 43, 255, 0.85);
}
.acct-balance::after { content: ""; position: absolute; inset-inline-end: -70px; bottom: -110px; width: 200px; height: 200px; border: 30px solid rgba(255, 255, 255, 0.07); border-radius: 50%; pointer-events: none; }
.acct-balance-top { position: relative; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.85); font-size: 13.5px; font-weight: 600; }
.acct-balance-ic { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); border-radius: 12px; }
.acct-balance-ic svg { width: 20px; height: 20px; display: block; }
.acct-balance-value { position: relative; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-top: 8px; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.acct-balance-value small { color: rgba(255, 255, 255, 0.75); font-size: 14px; font-weight: 600; letter-spacing: 0; }
.acct-balance p { position: relative; max-width: 360px; margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 12.5px; line-height: 1.9; }
.acct-balance-facts { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; padding-top: 8px; }
.acct-balance-fact { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 14px; }
.acct-balance-fact > small { color: rgba(255, 255, 255, 0.75); font-size: 11.5px; }
.acct-balance-fact b { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; font-size: 15px; font-weight: 800; }
.acct-balance-fact b small { color: rgba(255, 255, 255, 0.7); font-size: 11px; font-weight: 600; }
.acct-balance-fact span { overflow: hidden; color: rgba(255, 255, 255, 0.7); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
/* نشان ارزفلو، کم‌رنگ و سفید، مثل کارت بانکی */
.acct-balance-brand { position: absolute; inset-inline-end: 24px; top: 26px; width: 58px; color: #fff; opacity: 0.22; pointer-events: none; }
.acct-balance-brand svg { width: 100%; height: auto; display: block; }
.acct-charge { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.acct-charge h3 { margin: 0; color: var(--text-primary); font-size: 15.5px; font-weight: 800; }
.acct-amount { display: flex; align-items: center; overflow: hidden; background: var(--bg-input); border: 1.5px solid var(--border-color); border-radius: 14px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.acct-amount:focus-within { background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.acct-amount input { flex: 1; min-width: 0; min-height: 54px; padding: 0 14px; color: var(--text-primary); background: none; border: 0; outline: none; font: 800 20px var(--font-en); }
.acct-amount input::placeholder { color: var(--text-muted); font: 500 15px var(--font-fa); }
.acct-amount span { padding: 0 14px; color: var(--text-muted); font-size: 13px; font-weight: 600; }
.acct-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.acct-chip { min-height: 34px; padding: 0 14px; color: var(--text-secondary); background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 999px; font: 700 12.5px var(--font-fa); cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.acct-chip:hover { color: var(--primary); border-color: rgba(13, 43, 255, 0.3); }
.acct-chip.active { color: var(--primary); background: var(--primary-soft); border-color: rgba(13, 43, 255, 0.35); }
.acct-charge-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 12px; font-size: 13px; }
.acct-charge-sum b { display: flex; align-items: baseline; gap: 5px; color: var(--text-primary); font-size: 17px; font-weight: 800; }
.acct-charge-sum b small { color: var(--text-muted); font-size: 11.5px; font-weight: 600; }
.acct-form-error { padding: 10px 12px; color: #c9372e; background: #fdeceb; border-radius: 10px; font-size: 12.5px; font-weight: 600; }
.acct-secure { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--text-muted); font-size: 11.5px; text-align: center; }
.acct-secure span { color: var(--success); }
.acct-secure span, .acct-secure svg { width: 14px; height: 14px; display: block; flex: none; }

.acct-tx-list { display: flex; flex-direction: column; margin-bottom: 4px; }
.acct-tx-day { margin: 16px 0 4px; color: var(--text-muted); font-size: 12px; font-weight: 700; }
.acct-tx-day:first-child { margin-top: 0; }
.acct-tx { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid #eef1f7; }
.acct-tx:last-child { border-bottom: 0; }
.acct-tx-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; }
.acct-tx-ic svg { width: 18px; height: 18px; display: block; }
.acct-tx-ic.in { color: var(--success); background: #e3f6ee; }
.acct-tx-ic.out { color: #c9372e; background: #fdeceb; }
.acct-tx-main { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.acct-tx-main b { color: var(--text-primary); font-size: 13.5px; }
.acct-tx-main small { overflow-wrap: anywhere; color: var(--text-muted); font-size: 11.5px; line-height: 1.7; }
.acct-tx-main .acct-keep { white-space: nowrap; }
.acct-tx-amount { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.acct-tx-amount b { color: var(--text-primary); font-size: 14px; font-weight: 800; white-space: nowrap; }
.acct-tx-amount.in b { color: var(--success); }
.acct-tx-amount b small { margin-inline-start: 4px; color: var(--text-muted); font-size: 11px; font-weight: 600; }
.acct-tx-amount > small { color: var(--text-muted); font-size: 11px; white-space: nowrap; }
.acct-block .acct-btn.block { margin-top: 12px; }

/* ---------- اطلاعات حساب ---------- */
.acct-form { display: flex; flex-direction: column; gap: 16px; }
.acct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.acct-field { display: flex; flex-direction: column; gap: 7px; }
.acct-field > span { color: var(--text-secondary); font-size: 13px; font-weight: 600; }
.acct-field em { color: var(--text-muted); font-style: normal; font-weight: 500; }
.acct-field input, .acct-otp-entry input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font: 14px var(--font-fa);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.acct-field input:hover { border-color: #d5dcef; }
.acct-field input:focus, .acct-otp-entry input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.acct-field input[dir="ltr"] { font-family: var(--font-en); text-align: left; }
.acct-otp-box { display: flex; gap: 12px; margin-top: 14px; padding: 14px; background: #f7f9ff; border: 1px solid #dfe7fb; border-radius: 14px; }
.acct-otp-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 11px; }
.acct-otp-ic svg { width: 18px; height: 18px; display: block; }
.acct-otp-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.acct-otp-body b { color: var(--text-primary); font-size: 13.5px; }
.acct-otp-body p { margin: 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.9; }
.acct-otp-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.acct-otp-entry input { width: 170px; min-height: 40px; font-family: var(--font-en); letter-spacing: 0.3em; text-align: center; }
.acct-form-footer { display: flex; }

/* ---------- امنیت ---------- */
.acct-security-hero { display: flex; align-items: flex-start; gap: 16px; padding: 22px; background: linear-gradient(135deg, #f3f7ff, #fff 60%); }
.acct-security-ic { width: 54px; height: 54px; flex: none; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); border-radius: 16px; box-shadow: 0 12px 24px -12px rgba(13, 43, 255, 0.7); }
.acct-security-ic svg { width: 26px; height: 26px; display: block; }
.acct-security-hero h3 { margin: 0 0 6px; color: var(--text-primary); font-size: 16px; font-weight: 800; }
.acct-security-hero p { margin: 0 0 12px; color: var(--text-secondary); font-size: 13px; line-height: 1.9; }
.acct-danger-zone { border-color: rgba(232, 68, 58, 0.22); }
.acct-tips { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.acct-tips li { position: relative; padding-inline-start: 22px; color: var(--text-secondary); font-size: 13px; line-height: 1.9; }
.acct-tips li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 10px; width: 7px; height: 7px; background: var(--primary); border-radius: 50%; box-shadow: 0 0 0 3px var(--primary-soft); }

/* ---------- عرض‌های کمتر ---------- */
@media (max-width: 1100px) {
    .acct-grid { grid-template-columns: 260px minmax(0, 1fr); }
    .acct-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acct-columns { grid-template-columns: minmax(0, 1fr); }
    .acct-wallet-top { grid-template-columns: minmax(0, 1fr); }
}
/* هم‌زمان با هدر موبایل (۸۶۰px): منوی چسبان پنل درست زیر نوار هدر جمع‌وجور می‌نشیند. */
@media (max-width: 860px) {
    .acct-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    /* ستون کناری باز می‌شود تا منوی افقی در کل صفحه (نه فقط ستون خودش) چسبان بماند. */
    .acct-side { display: contents; }
    .acct-main { scroll-margin-top: calc(var(--header-space) + 60px); }
    /* منو افقی، اسکرول‌شونده و زیر هدر چسبان؛ خروج در بخش امنیت هست */
    .acct-nav { position: sticky; top: calc(var(--header-space) - 8px); z-index: 20; flex-direction: row; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; box-shadow: 0 12px 28px -18px rgba(10, 18, 48, 0.45); }
    .acct-nav::-webkit-scrollbar { display: none; }
    .acct-nav-item { flex: none; width: auto; min-height: 42px; padding: 0 8px 0 12px; font-size: 13px; }
    .acct-nav-item.active::before { display: none; }
    .acct-nav-ic { width: 28px; height: 28px; border-radius: 8px; }
    .acct-nav-ic svg { width: 16px; height: 16px; }
    .acct-nav-sep, .acct-nav-item.danger, .acct-help { display: none; }
}
@media (max-width: 640px) {
    #panelPage.acct-page { padding: calc(var(--header-space) + 4px) 12px 64px; }
    .acct-hero { margin-bottom: 18px; }
    .acct-hero-row { flex-direction: column; align-items: stretch; gap: 14px; }
    .acct-hero-btn { justify-content: center; }
    .acct-profile { padding: 16px; }
    /* در موبایل فقط هشدار «تأیید شماره» از برچسب‌ها می‌ماند */
    .acct-profile-tags .acct-tag:not(.warn) { display: none; }
    /* جدا از قاعده‌ی بالا: مرورگر بدون :has فقط همین را نادیده بگیرد */
    .acct-profile-tags:not(:has(.warn)) { display: none; }
    .acct-mini-wallet { margin-top: 12px; padding: 10px 12px; }
    .acct-mini-wallet-ic { width: 34px; height: 34px; border-radius: 10px; }
    .acct-avatar { width: 50px; height: 50px; border-radius: 16px; font-size: 20px; }
    .acct-head { padding: 14px 16px; }
    .acct-head-ic { width: 40px; height: 40px; border-radius: 12px; }
    .acct-stats { gap: 10px; }
    .acct-stat { padding: 14px; }
    .acct-stat-value { font-size: 19px; }
    .acct-block, .acct-order { padding: 16px; }
    .acct-fields, .acct-columns.even { grid-template-columns: minmax(0, 1fr); }
    .acct-banner { flex-wrap: wrap; }
    .acct-banner .acct-btn { width: 100%; }
    .acct-order-top { flex-wrap: wrap; }
    .acct-visual.lg { width: 48px; height: 48px; border-radius: 14px; }
    .acct-order-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .acct-order-meta .acct-meta-wide { grid-column: 1 / -1; }
    .acct-steps li { font-size: 10.5px; }
    .acct-toolbar { flex-direction: column; align-items: stretch; }
    .acct-seg { width: 100%; }
    .acct-seg button { flex: 1 0 auto; justify-content: center; padding: 0 10px; }
    /* فیلتر سفارش‌ها: چهار ستون، شمارش زیر برچسب، بدون اسکرول و بریدگی */
    .acct-toolbar .acct-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: visible; }
    .acct-toolbar .acct-seg button { flex-direction: column; gap: 3px; min-height: 56px; padding: 6px 2px; font-size: 12.5px; }
    .acct-search { min-width: 0; }
    .acct-mini-order { grid-template-columns: 40px minmax(0, 1fr) auto; }
    .acct-mini-order .acct-status { display: none; }
    .acct-sub { flex-wrap: wrap; }
    .acct-sub .acct-btn { width: 100%; }
    .acct-balance { min-height: 0; padding: 20px; }
    .acct-balance-facts { gap: 8px; }
    .acct-balance-fact { padding: 10px 12px; }
    .acct-balance-brand { width: 46px; top: 22px; }
    .acct-balance-value { font-size: 30px; }
    .acct-order-actions .acct-btn, .acct-form-footer .acct-btn { flex: 1 1 auto; }
    .acct-block-head { flex-wrap: wrap; }
    /* قدم‌های «شروع با ارزفلو»: دکمه زیر متن تا متن باریک نشود */
    .acct-start-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 8px 12px; }
    .acct-start-list .acct-btn { grid-column: 2; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
    .acct-section, .acct-skeleton span, .acct-status.active::before, .acct-steps li.current .acct-step-dot::after { animation: none; }
}

/* ===== سبد خرید =====
   دکمه‌ی سبد در هدر در بخش «هدر» تعریف شده است. */
.cart-box { max-width: 480px; }
.cart-modal-title { color: var(--text-primary); font-size: 20px; font-weight: 800; margin-bottom: 18px; }

/* max-height قبلی مال دوره‌ای بود که سبد مودال بود؛ حالا صفحه است و فهرست
   بلند باید با خود صفحه اسکرول شود، نه در یک جعبه‌ی تو در تو. */
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-item:hover { border-color: #d7def0; box-shadow: var(--shadow-card); }
.cart-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cart-item-service { font-weight: 800; color: var(--text-primary); font-size: 14px; line-height: 1.8; }

/* برچسب ریجن کنار نام محصول در سبد و سوابق سفارش. nowrap لازم است چون نام
   محصول در موبایل می‌شکند و پرچم نباید از نامش جدا شود. */
.order-region {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: 7px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    white-space: nowrap;
    vertical-align: middle;
}
.cart-item-qty, .cart-item-tg { font-size: 12px; color: var(--text-muted); }
.cart-item-tg { overflow-wrap: anywhere; }
.cart-item-price { font-weight: 800; color: var(--text-primary); font-size: 14.5px; white-space: nowrap; }
.cart-item-remove {
    padding: 7px 14px;
    background: rgba(232, 68, 58, 0.08);
    color: var(--danger);
    border: 1px solid rgba(232, 68, 58, 0.22);
    border-radius: var(--radius-sm);
    font-family: var(--font-fa);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cart-item-remove:hover { background: var(--danger); border-color: var(--danger); color: #fff; }

/* جمع کل، روش پرداخت و دکمه‌ی تسویه در یک بلوک جدا تا مرز «اقلام» و «پرداخت» روشن باشد */
.cart-summary {
    margin-top: 22px;
    padding: 18px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 18px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}
.cart-total-value { font-size: 22px; font-weight: 900; color: var(--text-primary); }
.cart-total-value small { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

/* کد تخفیف سبد خرید */
.cart-coupon { margin-bottom: 16px; }
.cart-coupon-form { display: flex; gap: 8px; }
.cart-coupon-input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    background: var(--bg-card);
    border: 1.5px dashed #cfd8f2;
    border-radius: 12px;
    font: 700 14px/1.5 var(--font-en);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-coupon-input::placeholder { font-family: var(--font-fa); font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-muted); }
.cart-coupon-input:focus { outline: none; border-style: solid; border-color: var(--primary); box-shadow: var(--ring); }
.cart-coupon-apply {
    flex: none;
    padding: 0 20px;
    border-radius: 12px;
    font: 700 13.5px/1 var(--font-fa);
    color: var(--primary);
    background: rgba(13, 43, 255, 0.08);
    border: 1px solid rgba(13, 43, 255, 0.2);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.cart-coupon-apply:hover { color: #fff; background: var(--primary); }
.cart-coupon-apply:disabled { cursor: wait; opacity: 0.6; }
.cart-coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 147, 95, 0.08);
    border: 1px solid rgba(0, 147, 95, 0.22);
    border-radius: 12px;
}
.cart-coupon-tag { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 12.5px; color: var(--success); }
.cart-coupon-tag b { font: 800 13.5px/1.4 var(--font-en); letter-spacing: 0.04em; color: #075c43; }
.cart-coupon-remove { flex: none; font: 700 12px/1 var(--font-fa); color: var(--text-muted); background: none; border: 0; cursor: pointer; }
.cart-coupon-remove:hover { color: var(--danger); }
.cart-coupon-error { margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--danger); }
.cart-line-row { margin-bottom: 8px; font-size: 13px; }
.cart-discount-row { color: var(--success); }

.cart-payment-method { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.cart-pay-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    background: var(--bg-card);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}
.cart-pay-option:hover { border-color: #cfd8f2; }
.cart-pay-option input { flex: none; width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }
.cart-pay-option:has(input:checked) { border-color: var(--primary); color: var(--text-primary); box-shadow: var(--ring); }

/* ===== صفحات حقوقی / درباره ما =====
   تب‌ها با تب‌های پنل در بخش «پنل کاربری» مشترک‌اند. */
.legal-box {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 30px;
    position: relative;
    box-shadow: var(--shadow-lg);
}
.legal-section { display: none; }
.legal-section.active { display: block; }
.legal-section h3 { color: var(--text-primary); font-size: 18px; margin-bottom: 12px; }
.legal-section h4 { color: var(--text-primary); font-size: 14px; margin: 16px 0 6px; }
.legal-section p { color: var(--text-secondary); font-size: 14px; line-height: 1.9; }

/* فهرست راه‌های تماس در صفحه‌ی «تماس با ما» (/contact) */
/* اطلاعات تماس — جفت «برچسب → مقدار» با آیکن */
.contact-details { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 22px; }
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.contact-item:last-child { border-bottom: none; }
.contact-ic {
    display: flex;
    flex-shrink: 0;
    /* هم‌تراز با خط اول متن، نه وسط بلوک چندخطی (نشانی) */
    margin-top: 2px;
    color: var(--primary-light);
}
.contact-ic svg { width: 20px; height: 20px; }
.contact-body { min-width: 0; }
.contact-details dt {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 3px;
}
.contact-details dd {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.9;
}
/* لینک تماس: هدف لمسی کافی و بازخورد واضح */
.contact-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    /* شکستن ایمیل بلند روی موبایل به‌جای سرریز افقی */
    overflow-wrap: anywhere;
}
.contact-link:hover, .contact-link:focus-visible { text-decoration: underline; }
.contact-address { color: var(--text-secondary); }
.contact-address-line { display: block; }
.contact-hint {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.9;
    margin: 12px 0 0;
}

/* پیوند میان دو صفحه‌ی «درباره ما» و «تماس با ما» — جایگزین تب‌های قبلی */
.info-crosslink {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}
.info-crosslink a { color: var(--primary-light); text-decoration: none; font-weight: 600; }
.info-crosslink a:hover { text-decoration: underline; }

/* فرم */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-wrapper { position: relative; }

.input-wrapper input, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    direction: rtl;
}

.input-wrapper input { padding-left: 40px; direction: ltr; text-align: right; }
.input-wrapper input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.input-wrapper input:hover, .form-group textarea:hover { border-color: #d5dcef; }

.input-wrapper input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
    background: #fff;
}

/* ===== اعتبارسنجی inline ===== */
.input-wrapper input.invalid {
    border-color: var(--danger);
    background: rgba(232, 68, 58, 0.04);
}
.input-wrapper input.invalid:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(232, 68, 58, 0.12);
}

/* حالت معتبر (سبز) + تیک سمت چپ */
.input-wrapper input.valid {
    border-color: var(--success);
    background: rgba(0, 147, 95, 0.04);
}
.input-wrapper input.valid:focus {
    box-shadow: 0 0 0 4px rgba(0, 147, 95, 0.12);
}
/* تیک روی فیلدهایی که آیکن راست ندارند (input-icon سمت چپ نیست) */
.input-wrapper input.valid ~ .input-icon { color: var(--success); }
.input-wrapper input.valid ~ .pw-toggle { color: var(--success); }

/* ===== نشانگر قدرت رمز ===== */
.pw-strength {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}
.pw-strength[data-level=""] { display: none; }
.pw-strength-bar {
    flex: 1;
    height: 4px;
    border-radius: 4px;
    background: var(--border-strong);
    transition: background 0.25s ease;
}
.pw-strength[data-level="weak"] .pw-strength-bar:nth-child(1) { background: var(--danger); }
.pw-strength[data-level="medium"] .pw-strength-bar:nth-child(-n+2) { background: #f59e0b; }
.pw-strength[data-level="strong"] .pw-strength-bar { background: var(--success); }
.pw-strength-label {
    display: block;
    font-size: 11px;
    line-height: 1.6;
    margin-top: 4px;
    color: var(--text-muted);
}
.pw-strength[data-level="weak"] ~ .pw-strength-label { color: var(--danger); }

.field-error {
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--danger);
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
}
.field-error.show {
    max-height: 48px;
    opacity: 1;
    margin-top: 6px;
}
.field-error.show::before {
    content: '⚠ ';
}

/* باکس خطای سطح فرم (خطاهای سرور) */
.auth-error-box {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    margin-bottom: 16px;
    background: rgba(232, 68, 58, 0.07);
    border: 1px solid rgba(232, 68, 58, 0.28);
    border-radius: var(--radius-md);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.7;
}
.auth-error-box.show { display: flex; }
.auth-error-box.show::before {
    content: '✕';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(232, 68, 58, 0.16);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
}

/* دکمه‌ی نمایش/مخفی‌کردن رمز */
.pw-toggle {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.pw-toggle:hover { color: var(--text-primary); background: var(--bg-card-hover); }
.pw-toggle svg { width: 18px; height: 18px; }

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.form-group textarea { resize: vertical; min-height: 90px; font-family: inherit; }

/* =====================================================================
   لندینگ — پیاده‌سازی ArzFlow Landing v3
   ===================================================================== */

/* ===== هدر شناور (همه‌ی صفحه‌ها) =====
   نوار شیشه‌ای با فاصله از لبه‌ها که روی محتوا شناور است. با اسکرول (کلاس
   is-scrolled از Header) پررنگ‌تر می‌شود تا روی بخش‌های روشن هم خوانا بماند. */
.header {
    position: fixed;
    top: 12px;
    right: 0;
    left: 0;
    z-index: 100;
    padding: 0 12px;
    /* فقط خود نوار کلیک‌پذیر است، نه فاصله‌ی اطرافش */
    pointer-events: none;
}

.header-bar {
    position: relative;
    pointer-events: auto;
    max-width: calc(var(--content-max) + 24px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 9px;
    padding-inline: 18px 10px;
    border-radius: 18px;
    background: rgba(9, 15, 40, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.header.is-scrolled .header-bar {
    background: rgba(7, 12, 33, 0.86);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { width: 36px; height: 25px; display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 100%; height: 100%; }
.logo-text { direction: ltr; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }

.nav { display: flex; gap: 2px; font-size: 14px; font-weight: 500; }
.nav-link {
    position: relative;
    padding: 8px 14px;
    border-radius: 10px;
    color: #aab5da;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: '';
    position: absolute;
    right: 50%;
    bottom: 2px;
    width: 18px;
    height: 2px;
    margin-right: -9px;
    border-radius: 2px;
    background: var(--gradient-brand);
}

/* ===== منوی «محصولات» هدر (pm-*) =====
   دسکتاپ: پنل سفید زیر نوار هدر با یک ستون برای هر دسته و کارت پیشنهاد ویژه؛ موبایل
   (≤۸۶۰px): آکاردئون داخل منوی همبرگری. چیدمان را ادمین تعیین می‌کند. */
.pm { display: contents; }
.pm-trigger { display: inline-flex; align-items: center; gap: 7px; font: inherit; background: none; border: 0; cursor: pointer; }
.pm-trigger-ic, .pm-trigger-ic svg { width: 16px; height: 16px; display: block; flex: none; }
.pm-caret { display: block; transition: transform 0.2s var(--ease-out); }
.pm-caret svg { width: 14px; height: 14px; display: block; transform: rotate(-90deg); }
.pm.is-open .pm-trigger { color: #fff; background: rgba(255, 255, 255, 0.08); }
.pm.is-open .pm-trigger .pm-caret { transform: rotate(180deg); }

/* پس‌زمینه‌ی تیره زیر نوار؛ داخل .header (stacking context با z-index 100) پس روی صفحه
   و زیر نوار می‌نشیند. */
.pm-backdrop { position: fixed; inset: 0; z-index: -1; background: rgba(5, 10, 31, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.header.products-open .pm-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }

.pm-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 110px);
    overflow: auto;
    overscroll-behavior: contain;
    color: var(--text-primary);
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(10, 18, 48, 0.06), 0 40px 90px -30px rgba(5, 10, 31, 0.7);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s, transform 0.22s var(--ease-out), visibility 0.18s;
    cursor: default;
}
.pm.is-open .pm-panel { opacity: 1; visibility: visible; transform: none; }
.pm-body { display: grid; grid-template-columns: minmax(0, 1fr); }
.pm-body.has-featured { grid-template-columns: minmax(0, 1fr) 290px; }
.pm-columns { display: grid; grid-template-columns: repeat(var(--pm-cols, 3), minmax(0, 1fr)); gap: 6px 10px; padding: 20px 20px 16px; }

.pm-col { display: flex; flex-direction: column; min-width: 0; padding: 4px; }
.pm-col + .pm-col { border-inline-start: 1px solid #eef1f7; padding-inline-start: 14px; }
.pm-col-head { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; padding: 0 6px 12px; border-bottom: 1px dashed var(--border-color); }
.pm-col-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: #fff; border-radius: 12px; box-shadow: 0 8px 18px -10px rgba(10, 18, 48, 0.5); }
.pm-col-ic svg { width: 21px; height: 21px; display: block; }
.pm-col-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pm-col-head b { font-size: 14.5px; font-weight: 800; }
.pm-col-head small { color: var(--text-muted); font-size: 11.5px; line-height: 1.7; }
/* ستون پهن (مثلاً دو دسته کنار کارت ویژه) محصول‌ها را دوستونه می‌چیند */
.pm-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 8px; }
.pm-item { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 6px; color: inherit; border-radius: 12px; text-decoration: none; transition: background 0.15s; }
.pm-item:hover, .pm-item:focus-visible { background: var(--bg-secondary); }
.pm-thumb { width: 38px; height: 38px; flex: none; display: grid; place-items: center; overflow: hidden; color: #fff; border-radius: 11px; }
.pm-thumb.has-image { background: #fff; border: 1px solid var(--border-color); }
.pm-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pm-thumb svg { width: 55%; height: 55%; }
.pm-item-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.pm-item-text b { overflow: hidden; font-size: 13.5px; font-weight: 700; text-align: right; text-overflow: ellipsis; white-space: nowrap; transition: color 0.15s; }
.pm-item:hover .pm-item-text b { color: var(--primary); }
.pm-item-text small { color: var(--text-muted); font-size: 11.5px; }
.pm-badge { flex: none; padding: 1px 8px; color: #a86a00; background: #fff4dc; border-radius: 999px; font-size: 10.5px; font-style: normal; font-weight: 800; white-space: nowrap; }
.pm-all { display: inline-flex; align-self: flex-start; align-items: center; gap: 4px; margin: 8px 6px 0; padding: 4px 0; color: var(--primary); font-size: 12.5px; font-weight: 800; text-decoration: none; }
.pm-all span, .pm-all svg { width: 14px; height: 14px; display: block; }
.pm-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.pm-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin: 4px 6px; color: var(--text-muted); font-size: 12.5px; line-height: 1.9; }
.pm-soon span { padding: 1px 9px; color: var(--purple); background: #f1ecff; border-radius: 999px; font-size: 11px; font-weight: 800; }

.pm-featured {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 14px 0 14px 14px;
    padding: 20px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(220px 160px at 0% 0%, rgba(0, 224, 255, 0.35), transparent 70%),
        radial-gradient(240px 200px at 100% 100%, rgba(95, 61, 196, 0.5), transparent 70%),
        linear-gradient(140deg, #0a1fc4 0%, #0d2bff 50%, #1661ff 100%);
    border-radius: 20px;
}
.pm-featured::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -70px; width: 170px; height: 170px; border: 26px solid rgba(255, 255, 255, 0.07); border-radius: 50%; pointer-events: none; }
.pm-featured-badge { padding: 3px 11px; color: #fff; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.pm-featured-visual { width: 64px; height: 64px; display: grid; place-items: center; margin-top: 6px; overflow: hidden; color: #fff; border-radius: 18px; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18), 0 16px 30px -14px rgba(5, 10, 31, 0.7); }
.pm-featured-visual.has-image { background: #fff; }
.pm-featured-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.pm-featured-visual svg { width: 55%; height: 55%; }
.pm-featured-title { margin-top: 4px; font-size: 18px; font-weight: 800; line-height: 1.5; }
.pm-featured p { margin: 0; color: rgba(255, 255, 255, 0.82); font-size: 12.5px; line-height: 1.9; }
.pm-featured-price { font-size: 13.5px; font-weight: 800; }
.pm-featured-cta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding: 10px 16px; color: var(--primary); background: #fff; border-radius: 12px; font-size: 13px; font-weight: 800; text-decoration: none; box-shadow: 0 12px 24px -14px rgba(5, 10, 31, 0.8); transition: transform 0.2s var(--ease-out); }
.pm-featured-cta span, .pm-featured-cta svg { width: 15px; height: 15px; display: block; }
.pm-featured-cta:hover { transform: translateY(-1px); }

.pm-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding: 12px 20px; background: var(--bg-secondary); border-top: 1px solid var(--border-color); }
.pm-foot-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-primary); font-size: 13px; font-weight: 700; text-decoration: none; }
.pm-foot-link span { color: var(--primary); }
.pm-foot-link span, .pm-foot-link svg { width: 16px; height: 16px; display: block; }
.pm-foot-link:hover { color: var(--primary); }
.pm-foot-search { display: inline-flex; align-items: center; gap: 8px; min-width: 280px; padding: 8px 12px; color: var(--text-muted); background: #fff; border: 1px solid var(--border-color); border-radius: 12px; font: 500 12.5px var(--font-fa); text-align: right; cursor: pointer; transition: border-color 0.15s, color 0.15s; }
.pm-foot-search span, .pm-foot-search svg { width: 15px; height: 15px; display: block; flex: none; }
.pm-foot-search:hover { color: var(--text-secondary); border-color: rgba(13, 43, 255, 0.3); }
.pm-foot-search kbd { margin-inline-start: auto; padding: 1px 7px; color: var(--text-muted); background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 6px; font: 600 10.5px var(--font-en); direction: ltr; }
.pm-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 24px; }
.pm-loading span { height: 220px; background: linear-gradient(90deg, #eef1f7 0%, #f7f9fc 50%, #eef1f7 100%); background-size: 200% 100%; border-radius: 16px; animation: acctShimmer 1.2s ease-in-out infinite; }

/* آکاردئون موبایل فقط در منوی همبرگری */
.pm-m { display: none; }

@media (max-width: 1100px) {
    .pm-body.has-featured { grid-template-columns: minmax(0, 1fr); }
    .pm-featured { display: none; }
    .nav-link { padding-inline: 11px; white-space: nowrap; }
}
/* نوار دسکتاپِ باریک جای همه‌ی لینک‌ها را ندارد؛ «خرید سریع» در پنل محصولات هم هست.
   در منوی همبرگری (≤۸۶۰px) همه دیده می‌شوند. */
@media (min-width: 861px) and (max-width: 1100px) {
    .nav-extra { display: none; }
}
@media (max-width: 860px) {
    .pm-trigger, .pm-panel, .pm-backdrop { display: none; }
    .pm-m { display: flex; flex-direction: column; }
    .pm-m-trigger { display: flex; align-items: center; gap: 9px; width: 100%; font: inherit; text-align: right; background: none; border: 0; cursor: pointer; }
    .pm-m-trigger .pm-caret { margin-inline-start: auto; }
    .pm-m.is-open .pm-m-trigger { color: #fff; background: rgba(255, 255, 255, 0.06); }
    .pm-m.is-open .pm-m-trigger .pm-caret { transform: rotate(180deg); }
    .pm-m-body { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; padding: 4px 6px 6px; border-inline-start: 2px solid rgba(255, 255, 255, 0.08); }
    .pm-m-col { border-radius: 12px; }
    .pm-m-col summary { display: flex; align-items: center; gap: 10px; padding: 9px 8px; color: #dfe5ff; border-radius: 12px; font-size: 14px; font-weight: 700; list-style: none; cursor: pointer; }
    .pm-m-col summary::-webkit-details-marker { display: none; }
    .pm-m-col summary .pm-col-ic { width: 32px; height: 32px; border-radius: 10px; }
    .pm-m-col summary .pm-col-ic svg { width: 17px; height: 17px; }
    .pm-m-col summary small { margin-inline-start: auto; color: #8a95bd; font-size: 11.5px; font-weight: 600; }
    .pm-m-col[open] summary { background: rgba(255, 255, 255, 0.05); }
    .pm-m-col[open] summary .pm-caret { transform: rotate(180deg); }
    .pm-m-col .pm-col { padding: 4px 0 6px; }
    .pm-m-col .pm-col + .pm-col { border: 0; }
    .pm-m-col .pm-col-head { display: none; }
    .pm-m-col .pm-item { padding: 7px 8px; }
    .pm-m-col .pm-item:hover { background: rgba(255, 255, 255, 0.05); }
    .pm-m-col .pm-item-text b { color: #fff; }
    .pm-m-col .pm-item-text small { color: #8a95bd; }
    .pm-m-col .pm-thumb.has-image { border-color: transparent; }
    .pm-m-col .pm-all { margin-inline: 8px; color: #7fb4ff; }
    .pm-m-col .pm-soon { margin: 4px 8px 8px; color: #8a95bd; }
    /* منوی همبرگری با آکاردئون بلند می‌شود؛ درون خودش اسکرول بخورد */
    .nav { max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain; }
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 700;
    color: #080f2b;
    background: #fff;
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background 0.2s;
}
.btn-login:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px rgba(0, 207, 255, 0.6); }
.btn-login-icon { display: none; width: 18px; height: 18px; }
.btn-login-icon svg { width: 100%; height: 100%; }
.btn-login.logged-in {
    padding-inline: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.btn-login.logged-in .btn-login-icon { display: flex; }
.btn-login.logged-in:hover { background: rgba(255, 255, 255, 0.13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26); }

/* سبد خرید و کیف پول فقط برای کاربر واردشده ظاهر می‌شوند. همه‌ی کنترل‌های
   هدر گوشه‌ی ۱۲px دارند تا یک ردیف یکدست باشند. */
.cart-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: background 0.2s, box-shadow 0.2s;
}
.cart-toggle:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.cart-icon { display: flex; }
.cart-icon svg { width: 19px; height: 19px; }
.cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-en);
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--night);
    box-shadow: 0 4px 10px -2px rgba(232, 68, 58, 0.6);
}

.wallet {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-block: 5px;
    padding-inline: 14px 6px;
    background: rgba(0, 184, 119, 0.12);
    box-shadow: inset 0 0 0 1px rgba(78, 224, 165, 0.18);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.wallet:hover { background: rgba(0, 184, 119, 0.2); box-shadow: inset 0 0 0 1px rgba(78, 224, 165, 0.3); }
.wallet-info { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.5; }
.wallet-label { font-size: 10.5px; color: #4ee0a5; font-weight: 600; }
.wallet-amount { font-size: 13px; color: #fff; font-weight: 700; }
.wallet-amount small { color: #9aa6cf; font-size: 10px; font-weight: 400; }
.wallet-icon { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; color: #4ee0a5; background: rgba(78, 224, 165, 0.12); border-radius: 9px; }
.wallet-icon svg { width: 20px; height: 20px; }

/* موجودی داخل منوی کاربر؛ فقط در موبایل که کیف پول هدر پنهان است */
.user-menu-wallet {
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0 0 4px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
}
.user-menu-wallet span { font-size: 11.5px; color: var(--text-muted); }
.user-menu-wallet b { font-size: 14px; color: var(--text-primary); }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.menu-toggle svg { width: 20px; height: 20px; }
.header.menu-open .menu-toggle { background: rgba(255, 255, 255, 0.14); }

/* ===== بخش‌های لندینگ: پایه‌ی مشترک =====
   لندینگ تیره است؛ رنگ‌ها از همان سرمه‌ای و آبی/فیروزه‌ای برند. */
.section-head { position: relative; max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 6px 14px;
    color: #7fe6ff;
    background: rgba(0, 207, 255, 0.08);
    border: 1px solid rgba(0, 207, 255, 0.2);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.6;
}
.section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}
.section-title { margin: 0 0 14px; font-size: 40px; line-height: 1.35; font-weight: 900; color: #fff; text-wrap: balance; }
.section-sub { margin: 0 auto; max-width: 600px; font-size: 16px; line-height: 2; color: var(--night-muted); }

/* ورود نرم هنگام رسیدن به دید (effects/reveal.rs). با animation است نه
   transition تا با transition هاور کارت‌ها تداخل نکند، و با translate نه
   transform تا transform هاور دست نخورد. */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: revealIn 0.8s var(--ease-out) both; }
@keyframes revealIn {
    from { opacity: 0; translate: 0 28px; }
    to { opacity: 1; translate: none; }
}
:is(.bento, .how-steps, .voices-grid, .stats) > .reveal:nth-child(2) { animation-delay: 0.07s; }
:is(.bento, .how-steps, .voices-grid, .stats) > .reveal:nth-child(3) { animation-delay: 0.14s; }
:is(.bento, .how-steps, .voices-grid, .stats) > .reveal:nth-child(4) { animation-delay: 0.21s; }
:is(.bento, .how-steps, .voices-grid, .stats) > .reveal:nth-child(5) { animation-delay: 0.28s; }
:is(.bento, .how-steps, .voices-grid, .stats) > .reveal:nth-child(6) { animation-delay: 0.35s; }

/* ===== هیرو ===== */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: min(920px, 100vh);
    padding: 136px var(--gutter) 96px;
    background: var(--night);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-aurora { position: absolute; border-radius: 50%; will-change: transform; }
.hero-aurora-1 {
    top: -260px;
    right: -160px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(13, 43, 255, 0.55), transparent 62%);
    animation: auroraDrift 18s ease-in-out infinite alternate;
}
.hero-aurora-2 {
    bottom: -280px;
    left: -180px;
    width: 640px;
    height: 640px;
    background: radial-gradient(circle, rgba(0, 207, 255, 0.28), transparent 62%);
    animation: auroraDrift 24s ease-in-out infinite alternate-reverse;
}
.hero-aurora-3 {
    top: 18%;
    left: 22%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(124, 92, 240, 0.22), transparent 62%);
    animation: auroraDrift 28s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(48px, 32px, 0) scale(1.1); }
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    background-position: center top;
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 10%, transparent 72%);
    mask-image: radial-gradient(ellipse 75% 70% at 50% 35%, #000 10%, transparent 72%);
}
/* محو شدن نرم پایین هیرو به بخش بعد */
.hero::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 140px;
    z-index: -1;
    background: linear-gradient(180deg, transparent, var(--night));
    pointer-events: none;
}

.hero-inner {
    --hero-title-size: 58px;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 56px;
}
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    font-size: 13px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 26px rgba(0, 120, 255, 0.14);
}
/* حاشیه‌ی گرادیانی ۱px با mask (border معمولی گرادیان نمی‌پذیرد) */
.hero-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(115deg, #0619ff, #00cfff, #7fe6ff);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}
/* نقطه‌ی نورانی کنار نام برند؛ order منفی آن را به ابتدای ردیف (راست) می‌برد */
.hero-badge::after {
    content: '';
    order: -1;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00cfff;
    box-shadow: 0 0 0 4px rgba(0, 207, 255, 0.16), 0 0 14px rgba(0, 207, 255, 0.85);
}
/* روی متن فارسی letter-spacing گذاشته نمی‌شود؛ حروف متصل از هم جدا می‌شدند */
.hero-badge-text {
    font-weight: 800;
    background: linear-gradient(90deg, #9fd8ff, #ffffff 45%, #7fe6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-badge-sep { width: 1px; height: 14px; background: rgba(255, 255, 255, 0.2); }
.hero-badge-note { color: #aab5da; font-weight: 500; }

.hero-title {
    margin: 0;
    font-size: var(--hero-title-size);
    line-height: 1.3;
    font-weight: 900;
    color: #fff;
    text-wrap: balance;
}
.hero-grad {
    background: linear-gradient(90deg, #4a9dff, #00e0ff, #9d8bff, #4a9dff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradShift 9s ease-in-out infinite;
}
@keyframes gradShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.hero-desc { margin: 0; max-width: 560px; font-size: 17px; line-height: 2.05; color: #aab5da; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.btn-primary {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 34px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #2b6bff, #00b2ff);
    /* هایلایت باریک لبه‌ی بالا دکمه را از یک مستطیل تخت جدا می‌کند */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 34px -10px rgba(0, 150, 255, 0.6);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), filter 0.2s;
}
/* برق عبوری روی دکمه هنگام hover */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -60%;
    width: 50%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-18deg);
    transition: left 0.6s var(--ease-out);
    pointer-events: none;
}
.btn-primary:hover {
    transform: translateY(-2px);
    filter: saturate(1.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 20px 40px -12px rgba(0, 150, 255, 0.7);
}
.btn-primary:hover::after { left: 120%; }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 14px;
    font-size: 15.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.32); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-arrow { display: inline-block; transition: transform 0.25s var(--ease-out); }
.btn-primary:hover .btn-arrow { transform: translateX(-4px); }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    color: #c3cbea;
    font-size: 13.5px;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust-ic {
    width: 30px;
    height: 30px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: #7fe6ff;
    background: rgba(0, 207, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(0, 207, 255, 0.22);
}
.hero-trust-ic svg { width: 16px; height: 16px; }

/* ویترین: کارت‌های محصول شناور روی یک هاله */
.hero-visual { position: relative; height: 520px; }
.hv-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: radial-gradient(circle, rgba(43, 107, 255, 0.28), transparent 62%);
    box-shadow: 0 0 0 64px rgba(255, 255, 255, 0.015), 0 0 0 128px rgba(255, 255, 255, 0.01);
}
.hv-card {
    --r: 0deg;
    position: absolute;
    width: 290px;
    padding: 18px 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 22px;
    color: #fff;
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transform: rotate(var(--r));
    animation: cardFloat 7s ease-in-out infinite;
}
/* براقیِ مورب و دایره‌ی نیمه‌شفاف گوشه، مثل کارت‌های بانکی */
.hv-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), transparent 40%);
    pointer-events: none;
}
.hv-card::after {
    content: '';
    position: absolute;
    left: -70px;
    bottom: -100px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
@keyframes cardFloat {
    0%, 100% { transform: translateY(0) rotate(var(--r)); }
    50% { transform: translateY(-12px) rotate(var(--r)); }
}
.hv-card-tg { --r: -6deg; top: 6px; right: 4%; background: linear-gradient(135deg, #2aa9ee, #1560d6); }
.hv-card-ai {
    --r: 5deg;
    top: 122px;
    left: 0;
    background: linear-gradient(135deg, #131d4a, #22307a);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
    animation-delay: -2.3s;
}
.hv-card-gift { --r: -3deg; bottom: 0; right: 10%; background: linear-gradient(135deg, #ff6b6b, #d6304f); animation-delay: -4.6s; }
.hv-card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.hv-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.35);
}
.hv-card-ai .hv-icon { background: linear-gradient(135deg, #2b6bff, #00b2ff); }
.hv-icon svg { display: block; }
.hv-tag {
    direction: ltr;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.hv-card-title, .hv-card-sub, .hv-card-foot { position: relative; z-index: 1; }
.hv-card-title { font-size: 19px; font-weight: 900; }
.hv-card-sub { font-size: 12.5px; opacity: 0.85; }
.hv-card-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.28);
    font-size: 12px;
    font-weight: 700;
    text-align: right;
}

/* ===== نوار سرویس‌ها ===== */
.marquee-band { position: relative; padding: 8px 0 36px; background: var(--night); }
.marquee-label { margin-bottom: 18px; text-align: center; color: var(--night-dim); font-size: 12.5px; font-weight: 600; }
.marquee {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* دو نسخه‌ی پشت‌سرهم و جابه‌جایی به اندازه‌ی نصف: حلقه‌ی بی‌درز. فاصله با
   margin است نه gap تا عرض هر نسخه دقیقاً نصف کل باشد. */
.marquee-track { display: flex; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-inline-end: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    color: #d7ddf5;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}
.marquee-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ===== خرید: کاشی دسته‌ها، محصول، ریجن، پلن ===== */
.buy-band { position: relative; isolation: isolate; padding: 88px var(--gutter) 104px; background: var(--night); }
.buy-band::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(760px 380px at 50% 0%, rgba(13, 43, 255, 0.2), transparent 70%);
    pointer-events: none;
}

.buy-tiles { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 20px; }
.tile {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 22px 14px 18px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.2s, background 0.2s;
}
/* فقط روی دستگاه‌هایی با hover واقعی؛ روی لمس، hover بعد از tap می‌چسبید */
@media (hover: hover) {
    .tile:not(.coming-soon):hover {
        transform: translateY(-4px);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
        border-color: rgba(255, 255, 255, 0.16);
        box-shadow: 0 24px 44px -22px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .tile:not(.coming-soon):hover .tile-icon { transform: scale(1.07); }
}
/* انتخاب فعال با حلقه‌ی آبی و نشان تیک دیده می‌شود، نه فقط با رنگ */
.tile.active,
.tile.active:hover {
    border-color: transparent;
    background: linear-gradient(180deg, rgba(43, 107, 255, 0.22), rgba(43, 107, 255, 0.06));
    box-shadow: 0 0 0 1.5px #3d7bff, 0 24px 50px -22px rgba(43, 107, 255, 0.65);
}
.tile.active::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    box-shadow: 0 4px 12px -2px rgba(43, 107, 255, 0.7);
}
.tile.active::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    width: 20px;
    height: 20px;
    background: #fff;
    -webkit-mask: var(--icon-check) center / 11px no-repeat;
    mask: var(--icon-check) center / 11px no-repeat;
}
.tile.coming-soon {
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.015);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    box-shadow: none;
}
.tile.coming-soon .tile-icon { filter: grayscale(0.7); opacity: 0.5; box-shadow: none; }
.tile.coming-soon .tile-name { color: #8a95bd; }
.tile-coming-soon {
    position: absolute;
    top: 9px;
    right: 9px;
    padding: 3px 8px;
    color: #ffd27a;
    background: rgba(255, 196, 0, 0.12);
    border: 1px solid rgba(255, 196, 0, 0.3);
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.5;
}
.tile, .pill, .plan, .ck-stepper button, .ck-close, .ck-pay, .ck-ghost { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.tile:focus-visible, .pill:focus-visible, .plan:focus-visible { outline: 2px solid rgba(127, 230, 255, 0.8); outline-offset: 3px; }
.ck-close:focus-visible, .ck-pay:focus-visible, .ck-ghost:focus-visible, .ck-stepper button:focus-visible { outline: 3px solid rgba(13, 43, 255, 0.28); outline-offset: 2px; }

/* آیکن مربع گوشه‌گرد با هایلایت داخلی؛ رنگ زمینه از دسته می‌آید (inline).
   حلقه‌ی روشن برای آیکن سرمه‌ای «هوش مصنوعی» که روی زمینه‌ی تیره گم می‌شد. */
.tile-icon {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px -10px rgba(0, 0, 0, 0.6);
    transition: transform 0.25s var(--ease-out);
}
.tile-icon svg { display: block; }
.tile-name { font-size: 14px; font-weight: 800; color: #fff; line-height: 1.6; }
.tile-count {
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--night-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
}
.tile.active .tile-count { color: #cfe0ff; background: rgba(61, 123, 255, 0.24); }

.buy-card {
    position: relative;
    padding: 30px 32px 34px;
    border-radius: 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.buy-progress { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 26px; color: #7d88b0; font-size: 12px; }
.buy-progress span { display: flex; align-items: center; gap: 8px; white-space: nowrap; transition: color 0.25s; }
.buy-progress b {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    color: #9aa6cf;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-size: 11.5px;
    font-weight: 800;
    transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.buy-progress span.done { color: #4ee0a5; }
/* گام تمام‌شده به‌جای شماره تیک می‌گیرد؛ برچسب متنی برای صفحه‌خوان می‌ماند */
.buy-progress span.done b { display: flex; align-items: center; justify-content: center; color: #fff; background: #13a577; border-color: #13a577; font-size: 0; }
.buy-progress span.done b::before {
    content: '';
    width: 12px;
    height: 12px;
    background: currentColor;
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}
.buy-progress span.active { color: #fff; font-weight: 800; }
.buy-progress span.active b {
    color: #fff;
    background: var(--gradient-primary);
    border-color: transparent;
    box-shadow: 0 0 0 5px rgba(43, 107, 255, 0.18), 0 6px 16px -4px rgba(43, 107, 255, 0.7);
}
.buy-progress i { width: 40px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background 0.25s; }
.buy-progress span.done + i { background: rgba(19, 165, 119, 0.6); }
.buy-progress em { font-style: normal; }

.buy-active { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.buy-active-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 24px -10px rgba(0, 0, 0, 0.6);
}
.buy-active-text { text-align: center; }
.buy-active-name { font-size: 18px; font-weight: 800; color: #fff; }
.buy-active-note { font-size: 12.5px; color: #7d88b0; }

.buy-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13.5px;
    font-weight: 700;
    color: #cfd6f3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
    .pill:hover { color: #fff; border-color: rgba(127, 178, 255, 0.5); background: rgba(255, 255, 255, 0.07); }
}
.pill.active {
    color: #fff;
    background: rgba(61, 123, 255, 0.2);
    border-color: #3d7bff;
    box-shadow: 0 10px 24px -12px rgba(43, 107, 255, 0.8);
}
.pill.active::before {
    content: '';
    width: 14px;
    height: 14px;
    flex: none;
    background: currentColor;
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}

.buy-subhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 24px 0 16px; }
.buy-subtitle { font-size: 16px; font-weight: 800; color: #fff; }
.buy-subdesc { font-size: 12.5px; color: #7d88b0; }
.buy-product-overview { display: flex; align-items: center; gap: 14px; margin: 24px 0 16px; }
.buy-product-overview .buy-subhead { flex: 1; margin: 0; }
/* تصویر محصولات معمولاً برای زمینه‌ی سفید طراحی شده، پس قاب سفید می‌ماند */
.buy-product-image { width: 52px; height: 52px; flex: none; object-fit: contain; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 20px -10px rgba(0, 0, 0, 0.6); }

.gift-region-picker { margin: 4px 0 20px; padding: 16px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 18px; }
.gift-region-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gift-region-head strong { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 13.5px; }
.gift-region-head strong::before {
    content: '';
    width: 16px;
    height: 16px;
    flex: none;
    background: #7fe6ff;
    -webkit-mask: var(--icon-globe) center / contain no-repeat;
    mask: var(--icon-globe) center / contain no-repeat;
}
.gift-region-head span { color: #7d88b0; font-size: 11px; }
.gift-region-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.gift-region-pill {
    /* پرچم و نام دو آیتم flex جدا هستند نه یک رشته‌ی متن: نمادهای پرچم از نظر
       bidi چپ‌به‌راست‌اند و کنار متن فارسی ترتیبشان به‌هم می‌ریخت. */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 58px;
    min-height: 40px;
    padding: 8px 15px;
    color: #cfd6f3;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
@media (hover: hover) {
    .gift-region-pill:hover { color: #fff; border-color: rgba(127, 178, 255, 0.5); }
}
.gift-region-pill.active { color: #fff; background: var(--gradient-primary); border-color: transparent; box-shadow: 0 8px 20px -8px rgba(43, 107, 255, 0.75); }
.gift-card-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 12px; }
.gift-card-section-title strong { display: inline-flex; align-items: center; gap: 5px; color: #fff; font-size: 13.5px; }
/* فقط شمارنده‌ی کنار عنوان؛ selector نوادگی روی پرچمِ داخل عنوان هم می‌نشست. */
.gift-card-section-title > span { color: #9aa6cf; font-size: 11px; padding: 2px 9px; background: rgba(255, 255, 255, 0.06); border-radius: 999px; }

/* پرچم کشور. اندازه کمی از متن بزرگ‌تر است تا جزئیات پرچم دیده شود، و
   line-height صفر جلوی بلند شدن ارتفاع دکمه را می‌گیرد. */
.region-flag {
    display: inline-block;
    font-size: 1.25em;
    line-height: 0;
}

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px 20px 18px;
    color: inherit;
    font: inherit;
    text-align: right;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), background 0.2s;
}
@media (hover: hover) {
    .plan:not(.disabled):hover {
        transform: translateY(-3px);
        border-color: rgba(61, 123, 255, 0.55);
        box-shadow: 0 24px 50px -24px rgba(43, 107, 255, 0.6);
    }
    /* دکمه‌ی «انتخاب» در حالت عادی ملایم است و با hover پر می‌شود؛ ردیفی از
       دکمه‌های پررنگ یکسان، چشم را از قیمت‌ها دور می‌کرد. */
    .plan:not(.disabled):hover .plan-pick {
        color: #fff;
        background: var(--gradient-primary);
        box-shadow: 0 8px 18px -8px rgba(43, 107, 255, 0.75);
    }
}
.plan.active,
.plan.active:hover {
    border-color: #3d7bff;
    background: linear-gradient(180deg, rgba(61, 123, 255, 0.16), rgba(61, 123, 255, 0.04));
    box-shadow: 0 0 0 4px rgba(61, 123, 255, 0.16), 0 24px 50px -24px rgba(43, 107, 255, 0.65);
}
.plan.active .plan-pick { color: #fff; background: var(--gradient-primary); }
.plan.disabled { cursor: not-allowed; opacity: 0.45; box-shadow: none; filter: grayscale(0.5); }
.plan.disabled .plan-pick { color: #7d88b0; background: rgba(255, 255, 255, 0.05); }
.buy-empty { padding: 34px 12px; color: #8a95bd; text-align: center; }
.buy-product-link { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #9fd0ff; text-decoration: none; }
.buy-product-link:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
/* متن HTML اولیه برای مرورگر بی‌اسکریپت (backend/src/seo.rs)؛ با اسکریپت اصلاً رندر نمی‌شود */
.seo-content { max-width: 880px; margin: 32px auto; padding: 0 16px; line-height: 2; }
.seo-content a { color: inherit; }
.buy-load-error { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #ff9a91; }
.buy-load-error span { max-width: 520px; color: #8a95bd; font-size: 12.5px; }
.buy-load-error button { padding: 9px 18px; color: #cfe0ff; background: rgba(61, 123, 255, 0.18); border: 0; border-radius: 10px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: background 0.2s; }
.buy-load-error button:hover { background: rgba(61, 123, 255, 0.3); }
.buy-loading { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 22px; }
.buy-loading span {
    height: 132px;
    border-radius: 20px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03) 25%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: buy-shimmer 1.25s infinite;
}
@keyframes buy-shimmer { to { background-position: -200% 0; } }

.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 26px; }
.plan-name { font-size: 16.5px; font-weight: 800; color: #fff; }
.plan-badge { font-size: 11px; font-weight: 700; color: #9fd0ff; background: rgba(61, 123, 255, 0.16); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.plan-note { font-size: 12.5px; color: #8a95bd; line-height: 1.9; }
/* خط‌چین، قیمت را مثل کارت‌های قیمت‌گذاری از توضیح بالا جدا می‌کند */
.plan-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 10px;
    margin-top: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}
.plan-price { font-size: 21px; font-weight: 900; color: #fff; line-height: 1.45; }
.plan-unit { display: block; font-size: 11.5px; font-weight: 500; color: #7d88b0; }
/* «موجود شد خبرم کن» روی کارت ناموجود؛ کارت خودش دکمه نیست و بلند نمی‌شود */
.plan.sold-out { cursor: default; }
.plan.sold-out:hover { transform: none; border-color: rgba(255, 255, 255, 0.09); box-shadow: none; }
.plan.sold-out .plan-name,
.plan.sold-out .plan-price { opacity: 0.55; }
.plan-badge-out { color: #ffb4ad; background: rgba(232, 68, 58, 0.14); }
.plan-notify {
    padding: 9px 14px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 12.5px;
    font-weight: 800;
    white-space: nowrap;
    color: #ffe0a3;
    background: rgba(255, 176, 32, 0.15);
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}
.plan-notify:hover { color: #1f1500; background: #ffb020; }
.plan-notify.on { color: #9ff0c8; background: rgba(0, 184, 119, 0.15); }
.plan-notify.on:hover { color: #ffd0cb; background: rgba(232, 68, 58, 0.2); }
.plan-notify:disabled { opacity: 0.6; cursor: progress; }
.plan-pick {
    padding: 9px 18px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    color: #cfe0ff;
    background: rgba(61, 123, 255, 0.18);
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}

/* ===== جستجوی سریع (components/search.rs) =====
   دکمه‌ی هدر و کادر هیرو فقط پنجره‌ی مشترک را باز می‌کنند. خود پنجره روشن
   است (مثل مودال سفارش) تا روی لندینگ تیره و صفحه‌های روشن یکسان دیده شود. */
.search-toggle {
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: background 0.2s, box-shadow 0.2s;
}
.search-toggle svg { width: 19px; height: 19px; }
.search-toggle:hover { background: rgba(255, 255, 255, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }

.hero-search-wrap { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 540px; }
.hero-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #aab5da;
    font: inherit;
    text-align: right;
    cursor: text;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.hero-search:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(0, 207, 255, 0.35);
    box-shadow: 0 0 0 4px rgba(0, 207, 255, 0.08), 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}
.hero-search-ic { display: flex; width: 20px; height: 20px; flex: none; color: #7fe6ff; }
.hero-search-ic svg { width: 100%; height: 100%; }
.hero-search-ph { flex: 1; min-width: 0; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.hero-search-kbd, .ss-foot kbd {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 7px;
    font: 700 12px/1.6 var(--font-en);
    text-align: center;
}
.hero-search-kbd { color: #cfd8f5; background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.12); }
.hero-search-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; color: var(--night-dim); }
.hero-search-examples button {
    padding: 5px 12px;
    border-radius: 999px;
    font: inherit;
    font-weight: 600;
    color: #cfd8f5;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hero-search-examples button:hover { color: #fff; background: rgba(0, 207, 255, 0.1); border-color: rgba(0, 207, 255, 0.3); }

body.search-open { overflow: hidden; }
.ss-overlay {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: min(12vh, 110px) 20px 20px;
    background: rgba(5, 10, 31, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: overlayIn 0.18s ease-out;
}
.ss-panel {
    width: 640px;
    max-width: 100%;
    max-height: min(640px, calc(100dvh - 140px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 0 0 1px rgba(10, 18, 48, 0.06), 0 40px 90px -24px rgba(5, 10, 31, 0.7);
    animation: modalIn 0.25s var(--ease-out);
}
.ss-bar { display: flex; align-items: center; gap: 10px; padding-block: 12px; padding-inline: 18px 12px; border-bottom: 1px solid #eef1f8; }
.ss-bar-icon { display: flex; width: 20px; height: 20px; flex: none; color: var(--primary); }
.ss-bar-icon svg { width: 100%; height: 100%; }
.ss-input {
    flex: 1;
    min-width: 0;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 600 16px/1.6 var(--font-fa);
    color: #0b1226;
}
.ss-input::placeholder { color: #9aa3b8; font-weight: 500; }
.ss-input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ss-clear {
    width: 30px;
    height: 30px;
    flex: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    color: #5a6478;
    background: #f2f4fa;
    transition: background 0.2s, color 0.2s;
}
.ss-close {
    flex: none;
    padding: 7px 12px;
    border-radius: 10px;
    font: 700 12.5px/1.4 var(--font-fa);
    color: #5a6478;
    background: #f2f4fa;
    transition: background 0.2s, color 0.2s;
}
.ss-clear:hover, .ss-close:hover { background: #e7ebf5; color: #0b1226; }
.ss-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 8px 10px; }
.ss-section { padding: 12px 12px 6px; font-size: 11.5px; font-weight: 800; color: #8089a0; }
.ss-section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss-link { font: 700 11.5px/1.4 var(--font-fa); color: var(--primary); }
.ss-try, .ss-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px 2px; }
.ss-try > span { font-size: 12px; font-weight: 700; color: #8089a0; }
.ss-chip {
    padding: 6px 12px;
    border-radius: 999px;
    font: 600 12.5px/1.5 var(--font-fa);
    color: #3a4460;
    background: #f2f4fa;
    border: 1px solid transparent;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.ss-chip:hover { color: var(--primary); background: #eef2ff; border-color: rgba(13, 43, 255, 0.15); }
.ss-list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.ss-item {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.12s;
}
.ss-item.active { background: #f1f4ff; box-shadow: inset 0 0 0 1px rgba(13, 43, 255, 0.12); }
.ss-item.disabled { cursor: default; opacity: 0.55; }
.ss-thumb { width: 44px; height: 44px; overflow: hidden; display: grid; place-items: center; border-radius: 12px; background: #f2f4fa; }
.ss-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ss-thumb-icon { width: 100%; height: 100%; display: grid; place-items: center; }
.ss-thumb-icon svg { width: 22px; height: 22px; }
.ss-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 14px; font-weight: 800; line-height: 1.6; color: #0b1226; }
.ss-detail { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--primary); }
.ss-sub { overflow: hidden; font-size: 12px; color: #8089a0; text-overflow: ellipsis; white-space: nowrap; }
.ss-badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; color: #5a6478; background: #f2f4fa; }
.ss-item.active .ss-badge { color: #fff; background: var(--primary); }
.ss-badge.muted, .ss-item.active .ss-badge.muted { color: #8089a0; background: #f2f4fa; }
.ss-state, .ss-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 36px 20px;
    text-align: center;
    font-size: 13.5px;
    color: #5a6478;
}
.ss-state strong, .ss-empty strong { font-size: 15px; color: #0b1226; }
.ss-empty p { max-width: 420px; margin: 0; font-size: 13px; line-height: 2; color: #8089a0; }
.ss-empty-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: var(--primary); background: #eef2ff; }
.ss-empty-icon svg { width: 24px; height: 24px; }
.ss-support, .ss-retry {
    margin-top: 4px;
    padding: 9px 18px;
    border-radius: 12px;
    font: 700 13px/1.5 var(--font-fa);
    color: #fff;
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}
.ss-spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e3e9f7; border-top-color: var(--primary); animation: ssSpin 0.8s linear infinite; }
@keyframes ssSpin { to { transform: rotate(360deg); } }
.ss-foot { display: flex; align-items: center; gap: 16px; padding: 10px 18px; border-top: 1px solid #eef1f8; font-size: 11.5px; color: #8089a0; }
.ss-foot span { display: inline-flex; align-items: center; gap: 4px; }
.ss-foot kbd { color: #5a6478; background: #f2f4fa; box-shadow: inset 0 -1px 0 #dfe4f0; }

/* نتیجه‌ی جستجو به این بخش‌ها اسکرول می‌شود؛ زیر هدر شناور نروند */
#buy, .buy-product-overview, .gift-card-section-title, .plan-grid { scroll-margin-top: calc(var(--header-space) + 12px); }

@media (hover: none) {
    .hero-search-kbd, .ss-foot { display: none; }
}
@media (max-width: 1024px) {
    .hero-search-wrap { align-items: center; }
    .hero-search-examples { justify-content: center; }
}
@media (max-width: 640px) {
    .ss-overlay { align-items: stretch; padding: 0; }
    .ss-panel { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
    .ss-bar { padding-top: max(12px, env(safe-area-inset-top)); }
    .ss-body { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
    .ss-foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ss-overlay, .ss-panel { animation: none; }
}

/* ===== پنجره‌ی تکمیل سفارش (ck-*) =====
   سرتیتر و فوتر ثابت‌اند و فقط بدنه اسکرول می‌خورد؛ پس مبلغ و دکمه‌ی ثبت همیشه دیده می‌شوند.
   در موبایل (≤۷۰۰px) از پایین صفحه بالا می‌آید (bottom sheet). */
.ck-overlay {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 10, 31, 0.62);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: overlayIn 0.2s ease-out;
}
@keyframes overlayIn { from { opacity: 0; } }
@keyframes modalIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.ck {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 600px;
    max-width: 100%;
    max-height: min(800px, calc(100dvh - 48px));
    overflow: hidden;
    background: #fff;
    border-radius: 26px;
    box-shadow: 0 0 0 1px rgba(10, 18, 48, 0.05), 0 40px 100px -30px rgba(5, 10, 31, 0.65);
    animation: modalIn 0.3s var(--ease-out);
}
.ck-handle { display: none; }
.ck-ic, .ck-ic svg { width: 18px; height: 18px; display: block; flex: none; }

/* ---------- سرتیتر: محصول، پلن، ریجن ---------- */
.ck-head {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 24px 20px;
    background:
        radial-gradient(260px 120px at 100% 0%, rgba(0, 207, 255, 0.12), transparent 70%),
        linear-gradient(135deg, rgba(13, 43, 255, 0.07), rgba(13, 43, 255, 0.02));
    border-bottom: 1px solid var(--border-color);
}
.ck-visual {
    width: 62px;
    height: 62px;
    flex: none;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    border-radius: 18px;
    box-shadow: 0 0 0 4px #fff, 0 14px 26px -14px rgba(10, 18, 48, 0.55);
}
.ck-visual svg { width: 50%; height: 50%; }
.ck-visual.has-image { background: #fff; }
.ck-visual img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ck-head-text { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.ck-title { margin: 0; overflow: hidden; color: var(--text-primary); font-size: 18.5px; font-weight: 800; line-height: 1.4; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.ck-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ck-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 11px;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}
.ck-chip.is-plan { color: var(--primary); background: var(--primary-soft); border-color: rgba(13, 43, 255, 0.2); font-weight: 800; }
.ck-close {
    align-self: flex-start;
    width: 38px;
    height: 38px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.ck-close svg { width: 18px; height: 18px; display: block; }
.ck-close:hover { color: var(--text-primary); background: var(--bg-secondary); border-color: #d5dcef; }

/* ---------- بدنه (تنها بخش اسکرول‌شونده) ---------- */
.ck-body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px 24px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #d5dbe8 transparent;
}
.ck-body::-webkit-scrollbar { width: 6px; }
.ck-body::-webkit-scrollbar-track { background: transparent; }
.ck-body::-webkit-scrollbar-thumb { background: #d5dbe8; border-radius: 99px; }
.ck-note { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; background: linear-gradient(135deg, #effaf4, #f7fcf9); border: 1px solid #c4ead7; border-radius: 16px; }
.ck-note-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #00b877, #00935f); border-radius: 11px; box-shadow: 0 8px 16px -10px rgba(0, 147, 95, 0.8); }
.ck-note-ic svg { width: 18px; height: 18px; display: block; }
.ck-note b { display: block; color: #075c43; font-size: 13.5px; }
.ck-note small { display: block; margin-top: 2px; color: #3d7a63; font-size: 12px; line-height: 1.85; }
.ck-section { display: flex; flex-direction: column; gap: 14px; }
.ck-section-title { display: flex; align-items: center; gap: 8px; color: var(--text-primary); font-size: 14px; font-weight: 800; }
.ck-section-title::before { content: ""; width: 4px; height: 16px; flex: none; background: var(--gradient-primary); border-radius: 4px; }

/* ---------- فیلدها ---------- */
.ck-field { display: flex; flex-direction: column; gap: 7px; }
.ck-label { display: flex; align-items: center; gap: 5px; color: var(--text-primary); font-size: 13px; font-weight: 700; }
.ck-label em { color: var(--text-muted); font-size: 12px; font-style: normal; font-weight: 500; }
.ck-label em.req { color: var(--danger); font-size: 14px; font-weight: 800; }
.ck-input-wrap { position: relative; display: block; }
.ck-input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 14px;
    font: 14px var(--font-fa);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea.ck-input { min-height: 100px; resize: vertical; font-size: 13.5px; line-height: 1.9; }
.ck-input::placeholder { color: #a3abbf; }
.ck-input:hover { border-color: #d5dcef; }
.ck-input:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.ck-input[dir="ltr"] { font-family: var(--font-en); text-align: left; }
/* تیک «درست است» کنار فیلد؛ سمتش با جهت متن فیلد عوض می‌شود تا روی متن نیفتد */
.ck-input-wrap .ck-input { padding-inline-end: 44px; }
.ck-valid { position: absolute; top: 50%; inset-inline-end: 13px; width: 22px; height: 22px; display: grid; place-items: center; margin-top: -11px; color: #fff; background: var(--success); border-radius: 50%; pointer-events: none; animation: donePop 0.3s var(--ease-out); }
.ck-input-wrap.ltr .ck-valid { inset-inline-end: auto; right: 13px; }
.ck-valid svg { width: 13px; height: 13px; display: block; stroke-width: 2.6; }
.ck-field.is-invalid .ck-input { background: #fffafa; border-color: rgba(232, 68, 58, 0.55); }
.ck-field.is-invalid .ck-input:focus { box-shadow: 0 0 0 4px rgba(232, 68, 58, 0.12); }
.ck-hint { color: var(--text-muted); font-size: 11.5px; line-height: 1.8; }
.ck-error { display: flex; align-items: center; gap: 6px; color: #c9372e; font-size: 12px; font-weight: 600; line-height: 1.7; }
.ck-error .ck-ic, .ck-error .ck-ic svg { width: 15px; height: 15px; }

/* ---------- تعداد ---------- */
.ck-qty { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 18px; }
.ck-qty-text b { display: block; color: var(--text-primary); font-size: 13.5px; font-weight: 800; }
.ck-qty-text small { display: block; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; }
.ck-stepper { display: flex; flex: none; align-items: center; padding: 4px; background: #fff; border: 1px solid var(--border-strong); border-radius: 15px; box-shadow: var(--shadow-sm); }
.ck-stepper button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--primary); background: var(--primary-soft); border: 0; border-radius: 11px; cursor: pointer; transition: color 0.15s, background 0.15s; }
.ck-stepper button svg { width: 18px; height: 18px; display: block; stroke-width: 2.2; }
.ck-stepper button:hover:not(:disabled) { color: #fff; background: var(--primary); }
.ck-stepper button:disabled { color: #b7bfd3; background: #f3f5fa; cursor: not-allowed; }
.ck-stepper input { width: 64px; height: 40px; padding: 0; color: var(--text-primary); background: none; border: 0; outline: none; font: 800 17px var(--font-fa); text-align: center; }

/* ---------- جزئیات قیمت ---------- */
.ck-bill { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 18px; }
.ck-bill-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-secondary); font-size: 13px; }
.ck-bill-row b { display: flex; align-items: baseline; gap: 4px; color: var(--text-primary); font-size: 14px; font-weight: 700; white-space: nowrap; }
.ck-bill-row b small { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.ck-bill-row.off, .ck-bill-row.off b { color: var(--success); }
.ck-alert { display: flex; align-items: flex-start; gap: 8px; padding: 12px 14px; color: #c9372e; background: #fdeceb; border: 1px solid #f6cfcb; border-radius: 14px; font-size: 12.5px; font-weight: 600; line-height: 1.8; }

/* ---------- فوتر ثابت: مبلغ و دکمه ---------- */
.ck-foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 20px; background: #fff; border-top: 1px solid var(--border-color); box-shadow: 0 -16px 30px -26px rgba(10, 18, 48, 0.45); }
.ck-blocker { display: flex; align-items: center; gap: 7px; padding: 8px 12px; color: #9a6200; background: #fff7e6; border-radius: 11px; font-size: 12px; font-weight: 600; line-height: 1.7; }
.ck-blocker .ck-ic, .ck-blocker .ck-ic svg { width: 15px; height: 15px; }
.ck-foot-row { display: flex; align-items: center; gap: 16px; }
.ck-total { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.ck-total > small { color: var(--text-muted); font-size: 12px; }
.ck-total b { display: flex; align-items: baseline; gap: 5px; color: var(--text-primary); font-size: 25px; font-weight: 900; letter-spacing: -0.01em; line-height: 1.3; white-space: nowrap; }
.ck-total b small { color: var(--text-muted); font-size: 12.5px; font-weight: 600; letter-spacing: 0; }
.ck-pay {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 230px;
    min-height: 56px;
    padding: 0 26px;
    color: #fff;
    background: var(--gradient-primary);
    border: 0;
    border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 16px 30px -14px rgba(13, 43, 255, 0.75);
    font: 800 15px var(--font-fa);
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s;
}
.ck-pay .ck-ic, .ck-pay .ck-ic svg { width: 20px; height: 20px; }
.ck-pay:hover:not(:disabled) { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 20px 36px -14px rgba(13, 43, 255, 0.85); }
.ck-pay:active:not(:disabled) { transform: scale(0.99); }
.ck-pay:disabled { background: #b9c3e6; box-shadow: none; cursor: not-allowed; }

/* ---------- ثبت شد ---------- */
.ck-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 38px 28px 28px; overflow-y: auto; text-align: center; }
.ck-done-icon { width: 78px; height: 78px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #00b877, #00935f); border-radius: 50%; box-shadow: 0 0 0 10px rgba(0, 147, 95, 0.1), 0 18px 34px -16px rgba(0, 147, 95, 0.85); animation: donePop 0.45s var(--ease-out); }
.ck-done-icon svg { width: 38px; height: 38px; display: block; stroke-width: 2.4; }
@keyframes donePop {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}
.ck-done h3 { margin: 10px 0 0; color: var(--text-primary); font-size: 21px; font-weight: 800; }
.ck-done p { max-width: 460px; margin: 0; color: var(--text-secondary); font-size: 13.5px; line-height: 2; }
.ck-done-card { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 10px; padding: 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 18px; text-align: right; }
.ck-done-card .ck-visual { width: 54px; height: 54px; border-radius: 15px; box-shadow: 0 8px 18px -12px rgba(10, 18, 48, 0.45); }
.ck-done-info { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ck-done-info b { max-width: 100%; overflow: hidden; color: var(--text-primary); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.ck-done-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.ck-done-meta > div { padding: 12px 14px; background: #fff; border: 1px solid var(--border-color); border-radius: 14px; text-align: right; }
.ck-done-meta small { display: block; color: var(--text-muted); font-size: 11.5px; }
.ck-done-meta b { display: flex; align-items: baseline; gap: 4px; margin-top: 3px; color: var(--text-primary); font-size: 15px; font-weight: 800; }
.ck-done-meta b[dir="ltr"] { justify-content: flex-end; font-family: var(--font-en); letter-spacing: 0.02em; }
.ck-done-meta b small { display: inline; margin: 0; font-size: 11px; font-weight: 600; }
.ck-done-actions { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.ck-done-actions .ck-pay { flex: 1; min-width: 0; }
.ck-ghost { min-height: 56px; padding: 0 22px; color: var(--text-primary); background: #fff; border: 1.5px solid var(--border-strong); border-radius: 16px; font: 700 14px var(--font-fa); cursor: pointer; transition: color 0.15s, background 0.15s, border-color 0.15s; }
.ck-ghost:hover { color: var(--primary); background: var(--primary-soft); border-color: rgba(13, 43, 255, 0.3); }

/* ---------- موبایل: bottom sheet ---------- */
@media (max-width: 700px) {
    .ck-overlay { align-items: flex-end; padding: 0; overscroll-behavior: contain; background: rgba(5, 10, 31, 0.7); }
    .ck { width: 100%; max-height: calc(100dvh - 10px); border-radius: 24px 24px 0 0; animation: buy-sheet-up 0.26s ease-out; }
    .ck-handle { position: absolute; top: 8px; left: 50%; z-index: 1; display: block; width: 42px; height: 4px; margin-left: -21px; background: rgba(10, 18, 48, 0.18); border-radius: 99px; }
    .ck-head { gap: 12px; padding: 24px 16px 16px; }
    .ck-visual { width: 52px; height: 52px; border-radius: 15px; }
    .ck-title { font-size: 16px; }
    .ck-chip { padding: 2px 9px; font-size: 11.5px; }
    .ck-close { width: 40px; height: 40px; }
    .ck-body { gap: 16px; padding: 16px 16px 18px; scroll-padding-bottom: 16px; }
    .ck-note { padding: 11px 12px; }
    .ck-note small { font-size: 11.5px; }
    .ck-input { font-size: 16px; }
    textarea.ck-input { min-height: 92px; font-size: 15px; }
    .ck-qty { padding: 12px 14px; }
    .ck-bill { padding: 14px; }
    .ck-foot { gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .ck-foot-row { gap: 12px; }
    .ck-total b { font-size: 19px; }
    .ck-pay { min-width: 0; min-height: 52px; padding: 0 18px; font-size: 14px; }
    .ck-done { padding: 34px 16px calc(20px + env(safe-area-inset-bottom)); }
    .ck-done-icon { width: 66px; height: 66px; }
    .ck-done h3 { font-size: 18px; }
    .ck-done-actions { flex-direction: column; }
    .ck-ghost { min-height: 48px; }
}
@media (max-width: 380px) {
    .ck-pay { padding: 0 14px; font-size: 13px; }
    .ck-total b { font-size: 17px; }
}

/* ===== چرا ارزفلو (bento) ===== */
.features { position: relative; isolation: isolate; overflow: hidden; padding: 104px var(--gutter); background: var(--night-2); }
.features::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(600px 320px at 90% 10%, rgba(124, 92, 240, 0.16), transparent 70%),
        radial-gradient(600px 320px at 10% 90%, rgba(0, 207, 255, 0.12), transparent 70%);
    pointer-events: none;
}
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bento-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
/* نور ملایم گوشه‌ی کارت */
.bento-card::after {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 123, 255, 0.18), transparent 70%);
    pointer-events: none;
}
@media (hover: hover) {
    .bento-card:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
}
.bento-wide { grid-column: span 2; }
.bento-delivery, .bento-support { flex-direction: row; align-items: center; gap: 24px; }
.bento-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.bento-ic {
    width: 46px;
    height: 46px;
    flex: none;
    display: grid;
    place-items: center;
    margin-bottom: 4px;
    border-radius: 14px;
    color: #7fe6ff;
    background: linear-gradient(135deg, rgba(0, 207, 255, 0.18), rgba(61, 123, 255, 0.14));
    box-shadow: inset 0 0 0 1px rgba(127, 230, 255, 0.22);
}
.bento-ic svg { width: 22px; height: 22px; }
.bento-card h3 { margin: 0; font-size: 18px; font-weight: 800; color: #fff; }
.bento-card p { margin: 0; font-size: 14px; line-height: 2; color: var(--night-muted); }

/* خط زمانی تحویل: پرداخت ← پردازش ← تحویل */
.flow {
    flex: 1.1;
    display: flex;
    align-items: flex-start;
    padding: 20px 18px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; text-align: center; }
.flow-dot {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    margin-bottom: 6px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #00b877, #00935f);
    box-shadow: 0 0 0 5px rgba(0, 184, 119, 0.14);
}
.flow-dot svg { width: 16px; height: 16px; }
.flow-step.live .flow-dot {
    background: var(--gradient-primary);
    box-shadow: 0 0 0 5px rgba(43, 107, 255, 0.2);
    animation: livePulse 2.2s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 5px rgba(43, 107, 255, 0.22); }
    50% { box-shadow: 0 0 0 11px rgba(43, 107, 255, 0.04); }
}
.flow-step b { font-size: 13px; color: #fff; }
.flow-step small { font-size: 11px; color: #7d88b0; }
.flow-line { flex: 1; height: 2px; min-width: 20px; margin-top: 18px; border-radius: 2px; background: #13a577; }
/* جریان راست‌به‌چپ است: از سبزِ «پردازش» (راست) به آبیِ «تحویل» (چپ) */
.flow-line-live { background: linear-gradient(270deg, #13a577, #2b6bff); }

.mini-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 8px 12px;
    border-radius: 12px;
    color: #cfd6f3;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
    font-size: 12.5px;
    font-weight: 700;
}
.mini-toggle-switch { position: relative; width: 34px; height: 20px; flex: none; border-radius: 999px; background: var(--gradient-primary); }
/* کلید روشن؛ در چیدمان راست‌به‌چپ دستگیره سمت چپ است */
.mini-toggle-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }

.chat-demo {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(0, 0, 0, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.chat-demo-msg { max-width: 88%; padding: 9px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.8; }
.chat-demo-msg.agent { align-self: flex-start; color: #dfe5ff; background: rgba(255, 255, 255, 0.07); border-bottom-right-radius: 4px; }
.chat-demo-msg.user { align-self: flex-end; color: #fff; background: linear-gradient(135deg, #2b6bff, #0090ff); border-bottom-left-radius: 4px; }

/* ===== چطور کار می‌کند؟ ===== */
.how { position: relative; padding: 104px var(--gutter); background: var(--night); }
/* گام‌ها کنار هم؛ خط رابط از پشت شماره‌ها رد می‌شود */
.how-steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.how-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 16%;
    left: 16%;
    height: 2px;
    background: linear-gradient(270deg, rgba(43, 107, 255, 0.7), rgba(0, 207, 255, 0.7) 50%, rgba(19, 165, 119, 0.7));
    opacity: 0.6;
}
.how-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 12px; text-align: center; }
.how-num {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 8px var(--night), 0 0 0 9px rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(13, 43, 255, 0.8);
}
.how-num-done {
    background: linear-gradient(135deg, #00b877, #00935f);
    box-shadow: 0 0 0 8px var(--night), 0 0 0 9px rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(0, 147, 95, 0.8);
}
.how-title { font-size: 18px; font-weight: 800; color: #fff; }
.how-desc { max-width: 280px; font-size: 14px; line-height: 2; color: var(--night-muted); }
.how-cta { margin-top: 44px; text-align: center; }

/* ===== آمار ===== */
.stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    padding: 0 var(--gutter) 104px;
    text-align: center;
    background: var(--night);
}
.stat {
    padding: 30px 16px 26px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.stat-num {
    font-size: 40px;
    font-weight: 900;
    line-height: 1.45;
    background: linear-gradient(180deg, #ffffff 30%, #8fb6ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* .stat-label در پنل ادمین هم هست؛ با والد محدود شده تا آن را تغییر ندهد */
.stats .stat-label { margin-top: 4px; font-size: 13.5px; color: var(--night-muted); }

/* ===== نظرات کاربران + سوالات متداول ===== */
.voices { position: relative; padding: 104px var(--gutter); background: var(--night-2); }
.voices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 96px; }
.voice {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s;
}
@media (hover: hover) {
    .voice:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.16); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85); }
}
/* علامت نقل‌قول تزئینی در گوشه */
.voice::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 22px;
    width: 36px;
    height: 36px;
    background: rgba(127, 178, 255, 0.16);
    -webkit-mask: var(--icon-quote) center / contain no-repeat;
    mask: var(--icon-quote) center / contain no-repeat;
    pointer-events: none;
}
.voice-stars { margin-bottom: 14px; color: #ffc24b; font-size: 15px; letter-spacing: 2px; }
.voice-text { flex: 1; margin: 0 0 20px; font-size: 14.5px; line-height: 2.1; color: #cfd6f3; }
.voice-who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.voice-avatar {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    background: var(--gradient-primary);
    box-shadow: 0 0 0 3px var(--night-2), 0 0 0 4px rgba(255, 255, 255, 0.14);
}
.voice:nth-child(3n + 2) .voice-avatar { background: var(--gradient-purple); }
.voice:nth-child(3n) .voice-avatar { background: linear-gradient(135deg, #00b877, #00935f); }
.voice-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.6; }
.voice-name { font-size: 14px; font-weight: 800; color: #fff; }
.voice-what { font-size: 12px; color: #7d88b0; }
/* نظر واقعی خریدار: نشان تأیید، پاسخ فروشگاه و خلاصه‌ی امتیاز زیر عنوان */
.voices-summary { margin: 12px 0 0; font-size: 14px; color: #8a95bd; }
.voices-summary b { color: #ffc24b; font-size: 16px; }
.voice-verified { display: inline-block; margin-inline-start: 8px; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; line-height: 1.9; vertical-align: 1px; color: #7ee2b8; background: rgba(0, 184, 119, 0.12); white-space: nowrap; }
.voice-text { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.voice-reply { margin: -6px 0 18px; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.9; color: #aab3d6; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); }
.voice-reply b { color: #cfe0ff; }

.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details.faq {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.25s var(--ease-out);
}
details.faq:hover { border-color: rgba(255, 255, 255, 0.14); }
details.faq[open] {
    background: rgba(61, 123, 255, 0.06);
    border-color: rgba(61, 123, 255, 0.45);
    box-shadow: 0 24px 50px -30px rgba(43, 107, 255, 0.6);
}
details.faq > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 22px;
    border-radius: 18px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
details.faq > summary::-webkit-details-marker { display: none; }
/* دایره‌ی شِورون که با باز شدن ۱۸۰ درجه می‌چرخد و آبی می‌شود */
.faq-mark {
    width: 32px;
    height: 32px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.3s var(--ease-out), background 0.2s;
}
.faq-mark::after {
    content: '';
    width: 14px;
    height: 14px;
    background: #cfd6f3;
    -webkit-mask: var(--icon-chevron) center / contain no-repeat;
    mask: var(--icon-chevron) center / contain no-repeat;
    transition: background 0.2s;
}
details.faq[open] .faq-mark { transform: rotate(180deg); background: var(--gradient-primary); }
details.faq[open] .faq-mark::after { background: #fff; }
details.faq p { margin: 0; padding: 0 22px 20px; font-size: 14px; line-height: 2.1; color: var(--night-muted); animation: faqIn 0.3s var(--ease-out); }
@keyframes faqIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

/* ===== دعوت پایانی ===== */
.cta-band { padding: 8px var(--gutter) 112px; background: var(--night-2); }
.cta-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 68px 32px;
    border-radius: 32px;
    text-align: center;
    background: linear-gradient(135deg, #0d2bff 0%, #1d4bff 45%, #0093ff 100%);
    box-shadow: 0 40px 100px -40px rgba(13, 43, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.cta-glow {
    position: absolute;
    z-index: -1;
    top: -320px;
    left: 50%;
    width: 640px;
    height: 640px;
    margin-left: -320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 60%);
}
.cta-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 15%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, #000 15%, transparent 75%);
}
.cta-title { margin: 0 0 12px; font-size: 38px; line-height: 1.4; font-weight: 900; color: #fff; }
.cta-sub { max-width: 520px; margin: 0 auto 30px; font-size: 16px; line-height: 2; color: rgba(255, 255, 255, 0.86); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* روی زمینه‌ی آبی، دکمه‌ی اصلی سفید است */
.cta-card .btn-primary { color: #0d2bff; background: #fff; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, 0.45); }
.cta-card .btn-primary::after { background: linear-gradient(100deg, transparent, rgba(13, 43, 255, 0.14), transparent); }
.cta-card .btn-ghost { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.4); }
.cta-card .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

/* ===== فوتر ===== */
.footer { position: relative; padding: 72px var(--gutter) 28px; color: var(--night-muted); background: #040817; }
.footer::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 207, 255, 0.35), transparent);
}
.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 0.8fr)) minmax(0, 1.5fr);
    gap: 36px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer .logo-icon { width: 32px; height: 22px; }
.footer .logo-text { font-size: 18px; }
.footer-about { max-width: 320px; margin: 0; font-size: 13.5px; line-height: 2.1; color: #8a95bd; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4, .footer-contact h4 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #fff; }
.footer-col a { font-size: 13.5px; color: var(--night-muted); transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* address به‌صورت پیش‌فرض ایتالیک است */
    font-style: normal;
    font-size: 13px;
    line-height: 1.9;
    color: var(--night-muted);
}
.footer-contact-row { display: flex; align-items: flex-start; gap: 8px; }
.footer-ic { display: flex; flex-shrink: 0; margin-top: 4px; color: #7fe6ff; opacity: 0.8; }
.footer-ic svg { width: 14px; height: 14px; }
.footer-contact a { color: var(--night-muted); transition: color 0.2s; overflow-wrap: anywhere; }
.footer-contact a:hover, .footer-contact a:focus-visible { color: #fff; }
.enamad {
    min-width: 52px;
    min-height: 52px;
    display: grid;
    place-items: center;
    padding: 4px;
    background: #0e1633;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}
.enamad img { max-height: 52px; width: auto; display: block; border-radius: 8px; }
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    padding-top: 22px;
    font-size: 12.5px;
    color: rgba(154, 166, 207, 0.75);
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1100px) {
    .hero-inner { --hero-title-size: 48px; gap: 36px; }
    .buy-tiles { grid-template-columns: repeat(3, 1fr); }
    .plan-grid, .voices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* معرفی و تماس هر کدام یک ردیف کامل، سه ستون لینک بینشان */
    .footer-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand, .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    /* هیرو تک‌ستونه: متن بالا و وسط‌چین، ویترین زیرش */
    .hero { min-height: 0; padding-top: 128px; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-copy { align-items: center; text-align: center; }
    .hero-cta, .hero-trust { justify-content: center; }
    .hero-visual { width: min(560px, 100%); margin: 0 auto; }
}

@media (max-width: 860px) {
    :root { --pad-x: 24px; --header-space: 84px; }

    /* منوی ناوبری پشت دکمه‌ی همبرگری، به‌شکل پنل زیر نوار */
    .header { top: 10px; padding: 0 10px; }
    .header-bar { padding-inline: 14px 8px; }
    .menu-toggle { display: inline-flex; }
    .nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 2px;
        padding: 8px;
        border-radius: 16px;
        /* کاملاً مات: فرزندِ عنصری با backdrop-filter است و با رنگ نیمه‌شفاف،
           متن هیرو از پشتش پیدا می‌شد */
        background: #0a1131;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.8);
    }
    .header.menu-open .nav { display: flex; animation: menuIn 0.2s var(--ease-out); }
    .nav-link { padding: 12px 14px; font-size: 14.5px; }
    .nav-link.active { background: rgba(255, 255, 255, 0.06); }
    .nav-link.active::after { display: none; }

    .hero-inner { --hero-title-size: 40px; }
    .hero-desc { font-size: 15.5px; }
    .section-title { font-size: 32px; }
    .section-head { margin-bottom: 36px; }
    .buy-band, .features, .how, .voices { padding-block: 80px; }
    .stats, .cta-band { padding-bottom: 80px; }

    .buy-tiles { grid-template-columns: repeat(2, 1fr); }
    .buy-card { padding: 22px; }
    .buy-subhead { flex-direction: column; align-items: flex-start; gap: 6px; }
    .buy-product-overview { align-items: flex-start; }
    .buy-loading { grid-template-columns: 1fr; }
    .plan-grid, .voices-grid { grid-template-columns: 1fr; }
    .voices-grid { margin-bottom: 72px; }

    /* گام‌ها زیر هم؛ خط افقی رابط دیگر معنا ندارد */
    .how-steps { grid-template-columns: 1fr; gap: 36px; }
    .how-steps::before { display: none; }
    .bento-delivery, .bento-support { flex-direction: column; align-items: stretch; }

    .chat-widget { bottom: 16px; left: 16px; }
    .chat-toggle { width: 52px; height: 52px; }
    .chat-panel { width: calc(100vw - 32px); }
}

@media (max-width: 560px) {
    /* کیف پول هدر در عرض گوشی جا نمی‌شود؛ موجودی داخل منوی کاربر است.
       !important لازم است چون auth.rs نمایش آن را با style درون‌خطی کنترل می‌کند. */
    .wallet { display: none !important; }
    .btn-login.logged-in { width: 40px; height: 40px; padding: 0; justify-content: center; }
    .btn-login.logged-in span:last-child { display: none; }
    .user-menu-wallet { display: flex; }
    .logo-text { font-size: 17px; }
}

@media (max-width: 520px) {
    #authPage { min-height: calc(100dvh - 72px); padding: calc(var(--header-space) + 8px) 12px calc(28px + env(safe-area-inset-bottom)); }
    .auth-box-simple { padding: 20px 17px 18px; border-radius: 18px; box-shadow: var(--shadow-md); }
    .auth-box-simple .site-page-back { min-height: 42px; margin-bottom: 12px; padding: 8px 11px; }
    .auth-box-simple .auth-head h1 { margin-top: 12px; font-size: 20px; }
    .auth-box-simple .auth-subtitle { font-size: 12px; }
    .auth-unified-form input { font-size: 16px; }
    .auth-code-input { min-height: 60px; font-size: 24px !important; letter-spacing: 7px; }
    .btn-auth { min-height: 50px; }
    .auth-code-actions { gap: 6px; }
    .auth-change-mobile, .auth-resend { flex: 1; padding: 6px; }
    .auth-security-note { margin-top: 18px; }

    .hero { padding: 112px var(--pad-x) 56px; }
    .hero-inner { --hero-title-size: 32px; gap: 32px; }
    .hero-desc { font-size: 15px; }
    .hero-cta { flex-direction: column; width: 100%; }
    .hero-cta .btn-primary, .hero-cta .btn-ghost { width: 100%; }
    .hero-trust { gap: 10px 16px; font-size: 12.5px; }
    .hero-visual { height: 480px; }
    .hv-ring { width: 300px; height: 300px; margin: -150px 0 0 -150px; }
    .hv-card { width: 232px; padding: 14px 16px; border-radius: 18px; }
    .hv-card-top { margin-bottom: 6px; }
    .hv-icon { width: 36px; height: 36px; border-radius: 11px; }
    .hv-card-title { font-size: 16px; }
    .hv-card-foot { margin-top: 8px; padding-top: 8px; font-size: 11px; }
    .hv-card-tg { right: 0; }
    .hv-card-ai { top: 116px; }
    .hv-card-gift { right: 4%; bottom: 0; }

    .section-title { font-size: 26px; }
    .section-sub { font-size: 14.5px; }
    .buy-tiles { gap: 10px; }
    .bento { grid-template-columns: 1fr; }
    .bento-wide { grid-column: auto; }
    .bento-card { padding: 22px 20px; }
    .flow { padding: 16px 10px; }
    .flow-step { min-width: 60px; }
    .stats { gap: 12px; }
    .stat { padding: 22px 10px 18px; }
    .stat-num { font-size: 28px; }
    .stats .stat-label { font-size: 12px; }
    .cta-card { padding: 48px 20px; border-radius: 26px; }
    .cta-title { font-size: 26px; }
    .cta-sub { font-size: 14.5px; }
    .cta-actions .btn-primary, .cta-actions .btn-ghost { width: 100%; }
    .footer { padding-top: 56px; }
    .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }

    /* صفحه‌های مستقل: حاشیه‌ی کمتر تا کارت در عرض ۳۶۰–۴۰۰ نفس بکشد */
    .site-page { padding: calc(var(--header-space) + 8px) 12px 64px; }
    .legal-box { padding: 20px 16px; border-radius: 20px; }

    .cart-item { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; }
    .cart-item-info { grid-column: 1 / -1; }
    .cart-summary { padding: 14px; }
}

/* خرید در موبایل: انتخاب سریع با یک دست و فرم bottom-sheet */
@media (max-width: 700px) {
    :root { --pad-x: 16px; }

    .buy-tiles {
        display: flex;
        gap: 10px;
        margin: 0 calc(-1 * var(--gutter)) 12px;
        padding: 4px var(--gutter) 18px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 16px;
        scroll-snap-type: inline mandatory;
        scrollbar-width: none;
    }
    .buy-tiles::-webkit-scrollbar, .buy-pills::-webkit-scrollbar { display: none; }
    .tile {
        flex: 0 0 112px;
        min-height: 116px;
        padding: 14px 9px 12px;
        gap: 6px;
        border-radius: 16px;
        scroll-snap-align: start;
    }
    .tile:active { transform: scale(.98); }
    /* هاله‌ی کوتاه‌تر تا در ظرف اسکرول افقی بریده نشود */
    .tile.active, .tile.active:hover { box-shadow: 0 0 0 1.5px #3d7bff, 0 12px 24px -14px rgba(43, 107, 255, 0.65); }
    .tile.active::before, .tile.active::after { top: 7px; left: 7px; width: 18px; height: 18px; }
    .tile-icon { width: 40px; height: 40px; border-radius: 13px; }
    .tile-name { font-size: 12.5px; }
    .tile-count { font-size: 10px; padding: 1px 8px; }

    .buy-band { padding: 64px var(--gutter) 72px; }
    .section-eyebrow { margin-bottom: 12px; font-size: 11.5px; }
    .buy-card { padding: 16px 14px; border-radius: 20px; }

    .buy-progress { gap: 6px; margin: 2px 0 18px; font-size: 10px; }
    .buy-progress span { gap: 4px; }
    .buy-progress b { width: 22px; height: 22px; font-size: 10px; }
    .buy-progress span.done b::before { width: 10px; height: 10px; }
    .buy-progress i { width: min(7vw, 26px); }
    /* پنج گام با برچسب کامل در عرض موبایل جا نمی‌شود؛ فقط برچسب گام جاری
       می‌ماند و بقیه به شماره خلاصه می‌شوند. */
    .buy-progress span:not(.active) em { display: none; }
    .buy-active { justify-content: flex-start; margin-bottom: 14px; }
    .buy-active-icon { width: 38px; height: 38px; border-radius: 12px; }
    .buy-active-text { text-align: right; }
    .buy-active-name { font-size: 15px; }
    .buy-active-note { font-size: 10.5px; line-height: 1.7; }

    .buy-pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 8px;
        margin-inline: -14px;
        padding: 0 14px 16px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-inline: 14px;
        scroll-snap-type: inline proximity;
        scrollbar-width: none;
    }
    .pill { flex: 0 0 auto; min-height: 42px; padding: 9px 16px; font-size: 12.5px; scroll-snap-align: start; }

    .buy-product-overview { gap: 10px; margin: 16px 0 12px; }
    .buy-product-image { width: 44px; height: 44px; border-radius: 11px; }
    .buy-subtitle { font-size: 14px; }
    .buy-subdesc { font-size: 11px; line-height: 1.8; }

    .gift-region-picker { margin: 2px -4px 14px; padding: 12px 10px; }
    .gift-region-head { display: grid; gap: 3px; }
    .gift-region-head span { font-size: 10px; }
    /* padding پایین جا برای سایه‌ی دکمه‌ی فعال است؛ ظرف اسکرول‌شونده سایه را
       می‌بُرد. margin منفی همان فاصله را پس می‌گیرد. */
    .gift-region-pills {
        flex-wrap: nowrap;
        margin-inline: -10px;
        margin-bottom: -10px;
        padding: 0 10px 12px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .gift-region-pills::-webkit-scrollbar { display: none; }
    .gift-region-pill { flex: 0 0 auto; min-height: 40px; scroll-snap-align: start; }
    /* سایه‌ی جمع‌وجورتر تا از padding ده‌پیکسلی ظرف اسکرول بیرون نزند */
    .gift-region-pill.active { box-shadow: 0 6px 12px -6px rgba(13, 43, 255, 0.6); }
    .gift-card-section-title { align-items: flex-start; }

    .plan-grid { gap: 10px; }
    .plan { min-height: 112px; padding: 15px; border-radius: 16px; gap: 5px; }
    .plan:not(.disabled):active { border-color: #3d7bff; background: rgba(61, 123, 255, 0.12); transform: scale(0.995); }
    .plan-name { font-size: 14.5px; }
    .plan-badge { padding: 3px 8px; font-size: 9.5px; }
    .plan-note { font-size: 11px; }
    .plan-bottom { margin-top: 6px; padding-top: 10px; }
    .plan-price { font-size: 17px; }
    .plan-unit { display: block; margin-top: 2px; font-size: 9.5px; }
    .plan-pick { min-width: 66px; padding: 9px 12px; font-size: 11.5px; text-align: center; }
    .plan-notify { padding: 9px 10px; font-size: 11px; }
    .buy-empty { padding: 26px 8px; font-size: 12px; }
    .buy-loading { gap: 9px; padding-top: 14px; }
    .buy-loading span { height: 104px; }
}

@media (max-width: 380px) {
    .tile { flex-basis: 104px; }
    .buy-progress { font-size: 9px; }
    .buy-progress i { width: 14px; }
    .plan-bottom { align-items: flex-end; }
}

/* حرکت‌ها (ورود صفحه، مودال، لرزش، شیمر، پالس) برای کاربری که کاهش حرکت
   خواسته، عملاً آنی می‌شوند؛ حالت‌های نهایی همان می‌ماند. */
@media (prefers-reduced-motion: reduce) {
    .reveal:not(.is-in) { opacity: 1; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@keyframes buy-sheet-up {
    from { transform: translateY(28px); opacity: .72; }
    to { transform: translateY(0); opacity: 1; }
}

/* ===== ویجت چت ===== */
.chat-widget {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.chat-toggle {
    position: relative;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 14px 30px -8px rgba(13, 43, 255, 0.55);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.chat-toggle:hover {
    transform: scale(1.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 18px 36px -8px rgba(13, 43, 255, 0.65);
}

/* پالس ملایم‌تر: قبلاً هاله‌ی بزرگ و کم‌رنگی روی محتوای صفحه می‌انداخت */
.chat-toggle-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.35;
    animation: chatPulse 2.4s ease-out infinite;
    z-index: -1;
}

@keyframes chatPulse {
    0% { transform: scale(1); opacity: 0.45; }
    100% { transform: scale(1.45); opacity: 0; }
}

.chat-icon-open, .chat-icon-close {
    position: absolute;
    width: 26px;
    height: 26px;
    transition: all 0.4s;
}

.chat-icon-close { transform: rotate(-180deg) scale(0); opacity: 0; }

.chat-widget.active .chat-icon-open { transform: rotate(180deg) scale(0); opacity: 0; }
.chat-widget.active .chat-icon-close { transform: rotate(0) scale(1); opacity: 1; }
.chat-widget.active .chat-toggle-pulse { display: none; }

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-en);
    border: 2px solid var(--bg-primary);
    animation: badgePop 0.5s ease-out;
}

@keyframes badgePop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.chat-widget.active .chat-badge { display: none; }

.chat-panel {
    position: absolute;
    bottom: 76px;
    left: 0;
    width: 360px;
    max-width: calc(100vw - 48px);
    height: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: 0 34px 70px -22px rgba(8, 15, 43, 0.4), 0 0 0 1px rgba(10, 18, 48, 0.03);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chat-widget.active .chat-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    padding: 16px 20px;
    background:
        radial-gradient(220px 120px at 0% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
        var(--gradient-primary);
    color: white;
    flex-shrink: 0;
}

.chat-agent { display: flex; align-items: center; gap: 12px; }

.chat-avatar {
    position: relative;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.chat-avatar svg { width: 24px; height: 24px; }

.chat-status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #10B981;
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

.chat-info { display: flex; flex-direction: column; }
.chat-name { font-size: 14px; font-weight: 600; }
.chat-status-text { font-size: 11px; opacity: 0.8; }

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-track { background: transparent; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 80%;
    animation: messageIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes messageIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message.agent { align-self: flex-start; align-items: flex-start; }
.chat-message.user { align-self: flex-end; align-items: flex-end; }

.message-bubble {
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.6;
}

.chat-message.agent .message-bubble {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-bottom-right-radius: 4px;
}

/* bg-input تقریباً همان سفید پنل بود و حباب پشتیبان دیده نمی‌شد */
[data-theme="light"] .chat-message.agent .message-bubble { background: var(--bg-secondary); border: 1px solid var(--border-color); }

.chat-message.user .message-bubble {
    background: var(--gradient-primary);
    color: white;
    border-bottom-left-radius: 4px;
}

.message-time { font-size: 10px; color: var(--text-muted); margin-top: 4px; padding: 0 4px; }

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 14px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-8px); opacity: 1; }
}

.chat-quick-replies {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    border-top: 1px solid var(--border-color);
    flex-wrap: nowrap;
}

.chat-quick-replies::-webkit-scrollbar { display: none; }

.quick-reply {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--primary-soft);
    border: 1px solid rgba(13, 43, 255, 0.14);
    border-radius: 100px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.2s, border-color 0.2s;
    white-space: nowrap;
}

.quick-reply:hover {
    background: #dde8ff;
    border-color: rgba(13, 43, 255, 0.28);
}

/* ردیف دکمه‌های آماده تا رسیدن سؤال‌ها از سرور (یا با ربات خاموش) خالی است */
.chat-quick-replies:empty { display: none; }

/* لبه‌ی چپ محو می‌شود تا معلوم باشد دکمه‌های بیشتری با اسکرول افقی می‌آیند */
.chat-quick-replies {
    padding-left: 24px;
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 24px);
    mask-image: linear-gradient(to left, transparent 0, #000 24px);
}

.quick-reply { cursor: pointer; }

.quick-reply.is-human {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.quick-reply.is-human:hover {
    background: var(--primary-soft);
    border-color: rgba(13, 43, 255, 0.28);
    color: var(--primary);
}

.quick-reply-ic { display: inline-flex; }
.quick-reply-ic svg { width: 13px; height: 13px; }

.message-bubble { overflow-wrap: anywhere; }
.chat-message:not(.bot) .message-bubble { white-space: pre-line; }

/* ===== پاسخ خودکار ===== */
.chat-message.bot { max-width: 88%; }

.chat-message.bot .message-bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.bot-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px 2px 7px;
    border-radius: 100px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.6;
}

.bot-tag svg { width: 11px; height: 11px; }

.bot-text { white-space: pre-line; }

.bot-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
    padding: 6px 10px 6px 12px;
    border-radius: 10px;
    background: var(--gradient-primary);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 14px -8px rgba(13, 43, 255, 0.7);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.bot-link:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(13, 43, 255, 0.8); }
.bot-link:focus-visible, .chat-suggest-item:focus-visible, .quick-reply:focus-visible { outline: none; box-shadow: var(--ring); }
.bot-link-ic { display: inline-flex; }
.bot-link-ic svg { width: 14px; height: 14px; }

.chat-suggest {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
}

.chat-suggest-item {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.chat-suggest-item:hover {
    background: var(--primary-soft);
    border-color: rgba(13, 43, 255, 0.28);
    color: var(--primary);
}

/* خطای ارسال پیام مهمان (قطعی اینترنت، محدودیت نرخ) */
.chat-message.notice .message-bubble {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.22);
    color: #b42318;
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-area input {
    flex: 1;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    padding: 10px 14px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-input-area input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.chat-input-area input::placeholder { color: var(--text-muted); }

.chat-send {
    width: 42px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px -8px rgba(13, 43, 255, 0.6);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
}

.chat-send:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(13, 43, 255, 0.7); }
.chat-send svg { width: 18px; height: 18px; transform: rotate(180deg); }

/* ===== کانفتی ===== */
#confettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== اسکرول‌بار ===== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--purple));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-light), var(--purple-light));
}

::selection { background: rgba(13, 43, 255, 0.16); color: var(--text-primary); }

/* ===== افکت‌های داینامیک (قبلاً توسط JS تزریق می‌شدند) ===== */
@keyframes rippleEffect {
    to { transform: scale(2); opacity: 0; }
}
@keyframes shakeAnim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* ===== نوتیفیکیشن (قبلاً inline در JS) ===== */
/* کارت سفید با نقطه‌ی رنگی وضعیت: متن رنگی روی زمینه‌ی نیمه‌شفاف روی
   بخش‌های تیره و روشن صفحه خوانایی یکسانی نداشت. */
.arz-notification {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    display: flex;
    align-items: center;
    gap: 11px;
    width: max-content;
    max-width: min(92vw, 460px);
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 24px 48px -16px rgba(8, 15, 43, 0.3);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.arz-notification::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.arz-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.arz-notification.success { border-color: rgba(0, 147, 95, 0.28); }
.arz-notification.success::before { background: var(--success); box-shadow: 0 0 0 4px rgba(0, 147, 95, 0.14); }
.arz-notification.error { border-color: rgba(232, 68, 58, 0.3); }
.arz-notification.error::before { background: var(--danger); box-shadow: 0 0 0 4px rgba(232, 68, 58, 0.14); }
.arz-notification.info { border-color: rgba(13, 43, 255, 0.22); }
.arz-notification.info::before { background: var(--primary); box-shadow: 0 0 0 4px rgba(13, 43, 255, 0.12); }

/* ===== صفحه‌ی ورود / ثبت‌نام ===== */
.auth-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 34px 28px 28px;
    overflow: hidden;
}
/* نوار باریک برند بالای کارت ورود */
.auth-box::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--gradient-brand);
}

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.auth-logo .logo-icon { width: 40px; height: 28px; }
/* برخلاف هدر/فوترِ تیره، اینجا زمینه روشن است پس متن باید تیره باشد */
.auth-logo .logo-text { font-family: var(--font-en); font-size: 22px; font-weight: 800; color: var(--text-primary); }
.auth-logo .logo-dot { background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.auth-subtitle { color: var(--text-secondary); font-size: 13px; margin-top: 10px; }

.auth-tabs {
    position: relative;
    display: flex;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 5px;
    margin-bottom: 24px;
}
.auth-tab {
    flex: 1;
    padding: 11px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    transition: color 0.3s;
}
.auth-tab.active { color: #fff; }
.auth-tab-indicator {
    position: absolute;
    top: 5px;
    bottom: 5px;
    right: 5px;
    width: calc(50% - 5px);
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    box-shadow: 0 6px 16px -6px rgba(13, 43, 255, 0.55);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.auth-tabs.show-signup .auth-tab-indicator { transform: translateX(-100%); }

.auth-form { display: none; }
.auth-form.active { display: block; animation: authFadeIn 0.4s ease; }
@keyframes authFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
    font-size: 13px;
}
.auth-check {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
}
.auth-check input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.auth-terms { margin-bottom: 20px; }
.auth-link { color: var(--primary); transition: color 0.2s; }
.auth-link:hover { color: var(--primary-light); text-decoration: underline; }

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), var(--shadow-glow);
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), opacity 0.2s;
}
.btn-auth:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 34px -12px rgba(13, 43, 255, 0.65); }
.btn-auth:active { transform: translateY(0) scale(0.98); }

/* حالت «در حال ارسال» دکمه‌ی ورود/ثبت‌نام */
.btn-auth { position: relative; }
.btn-auth:disabled { cursor: wait; opacity: 0.85; transform: none; }
.btn-auth.loading .btn-auth-text { visibility: hidden; }
.btn-auth.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: authSpin 0.7s linear infinite;
}
@keyframes authSpin {
    to { transform: rotate(360deg); }
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 22px 0 16px;
    color: var(--text-muted);
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}
.auth-divider span { padding: 0 12px; }

.auth-social-btn {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}
.auth-social-btn:hover { border-color: var(--border-active); background: var(--bg-card-hover); transform: translateY(-2px); }
.auth-social-btn svg { width: 22px; height: 22px; color: #2AABEE; }

/* فرم یکپارچه ورود/ثبت‌نام با موبایل */
.auth-box-simple { max-width: 440px; }
.auth-box-simple .auth-head { margin: 4px 0 18px; }
.auth-box-simple .auth-head h1 { margin-top: 16px; font-size: 22px; line-height: 1.5; }
.auth-box-simple .auth-subtitle { min-height: 25px; margin: 5px auto 0; line-height: 1.9; }
.auth-flow-progress {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin: 0 0 22px;
}
.auth-flow-progress span {
    height: 4px;
    overflow: hidden;
    background: var(--border-color);
    border-radius: 99px;
    transition: background .25s ease, transform .25s ease;
}
.auth-flow-progress span.active { background: var(--gradient-primary); transform: scaleY(1.4); }
.auth-flow-progress span.done { background: var(--success); }
.auth-unified-form .form-group { margin-bottom: 18px; }
.auth-field-help { display: block; margin-top: 7px; color: var(--text-muted); font-size: 11.5px; line-height: 1.8; }
.auth-legal-note { margin: 12px 0 0; color: var(--text-muted); font-size: 10.5px; text-align: center; }
.auth-hint-box {
    margin-bottom: 16px;
    padding: 10px 13px;
    color: #08744e;
    background: rgba(16, 185, 129, .08);
    border: 1px solid rgba(16, 185, 129, .22);
    border-radius: var(--radius-sm);
    font-size: 11.5px;
    line-height: 1.8;
}
.auth-code-input {
    width: 100%;
    min-height: 58px;
    padding: 12px 16px;
    direction: ltr;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-en);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 9px;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.auth-code-input:focus { border-color: var(--primary); background: #fff; box-shadow: var(--ring); }
#authName { direction: rtl; }
.auth-code-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }
.auth-change-mobile, .auth-resend { min-height: 40px; color: var(--primary); font-size: 12px; font-weight: 600; }
.auth-change-mobile:hover, .auth-resend:hover { text-decoration: underline; }
.auth-change-mobile:disabled, .auth-resend:disabled { opacity: .55; cursor: wait; }
.auth-new-user-copy {
    display: grid;
    justify-items: center;
    gap: 5px;
    margin: 0 0 20px;
    padding: 14px;
    color: var(--text-secondary);
    background: var(--primary-soft);
    border-radius: var(--radius-md);
    font-size: 12px;
    line-height: 1.9;
    text-align: center;
}
.auth-new-user-copy strong { color: var(--text-primary); font-size: 15px; }
.auth-new-user-icon { display: grid; width: 38px; height: 38px; place-items: center; color: #fff; background: var(--gradient-primary); border-radius: 50%; }
.auth-new-user-icon svg { width: 19px; height: 19px; }
.auth-security-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 22px;
    padding-top: 16px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    line-height: 1.7;
    text-align: center;
}

/* ===== مخفی‌سازی موقت تون کوین =====
   برای بازگرداندن تون کوین به سایت، فقط همین بلاک را حذف کنید؛
   تمام markup آن (تب سفارش، آیکون هیرو، لینک فوتر و متن‌ها) سر جایش است. */
.ton-hidden { display: none !important; }

/* ===== صفحه‌ی محصول (محتوا از CMS، خرید از کاتالوگ) =====
   دسکتاپ: ردیف بالا معرفی محصول (چسبان) و کارت خرید؛ ردیف پایین پرسش‌ها و نظرها در
   ستون باریک و توضیح در ستون پهن. تا ۱۰۲۴px همه زیر هم. کنترل‌های فرم همان ck-* پنجره‌ی
   سفارش‌اند (فیلد، شمارنده، جزئیات قیمت، دکمه‌ها). */
#productPage.pp-page {
    padding: calc(var(--header-space) + 14px) 20px 88px;
    background:
        radial-gradient(760px 320px at 88% -60px, rgba(13, 43, 255, 0.5), transparent 70%) no-repeat,
        radial-gradient(520px 260px at 8% -40px, rgba(0, 207, 255, 0.16), transparent 70%) no-repeat,
        linear-gradient(180deg, var(--night) 0, var(--night-2) 300px, var(--bg-secondary) 300px) no-repeat,
        var(--bg-secondary);
}
.pp-wrap { max-width: 1200px; margin: 0 auto; }
.pp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--night-muted); font-size: 12.5px; }
.pp-crumbs a { color: var(--night-muted); text-decoration: none; transition: color 0.15s; }
.pp-crumbs a:hover { color: #fff; }
.pp-crumb-current { color: #fff; font-weight: 600; }
.pp-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 22px; box-shadow: var(--shadow-card); }

/* ---------- ردیف بالا ---------- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 22px; }
.pp-info { position: sticky; top: calc(var(--header-space) + 12px); }
.pp-info-card { overflow: hidden; }
.pp-hero-img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; }
.pp-visual { display: grid; place-items: center; aspect-ratio: 16 / 9; color: #fff; }
.pp-visual img { width: 104px; height: 104px; display: block; object-fit: cover; background: #fff; border-radius: 28px; box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.28), 0 22px 40px -18px rgba(5, 10, 31, 0.7); }
.pp-visual.is-icon svg { width: 88px; height: 88px; filter: drop-shadow(0 16px 26px rgba(5, 10, 31, 0.35)); }
.pp-info-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.pp-chip { align-self: flex-start; padding: 3px 11px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 12px; font-weight: 700; }
.pp-info-body h1 { margin: 0; color: var(--text-primary); font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; line-height: 1.5; }
.pp-excerpt { margin: 0; color: var(--text-secondary); font-size: 14px; line-height: 2; }
.pp-trust { display: grid; gap: 12px; margin: 4px 0 0; padding: 16px 0 0; list-style: none; border-top: 1px dashed var(--border-color); }
.pp-trust li { display: flex; align-items: center; gap: 12px; }
.pp-trust-link { display: flex; flex: 1; align-items: center; gap: 12px; padding: 0; background: none; border: 0; font-family: var(--font-fa); text-align: right; cursor: pointer; }
.pp-trust-link:hover b { color: var(--purple); }
.pp-trust-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; }
.pp-trust-ic svg { width: 18px; height: 18px; display: block; }
.pp-trust-ic.is-green { color: var(--success); background: #e3f6ee; }
.pp-trust-ic.is-blue { color: var(--primary); background: var(--primary-soft); }
.pp-trust-ic.is-purple { color: var(--purple); background: #f1ecff; }
.pp-trust b { display: block; color: var(--text-primary); font-size: 13px; transition: color 0.15s; }
.pp-trust small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 12px; line-height: 1.7; }

/* ---------- کارت خرید ---------- */
.pb-head { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--border-color); }
.pb-head-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); border-radius: 14px; box-shadow: 0 0 0 4px rgba(13, 43, 255, 0.07), 0 10px 20px -10px rgba(13, 43, 255, 0.7); }
.pb-head-ic svg { width: 22px; height: 22px; display: block; }
.pb-head h2 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 800; }
.pb-head p { margin: 3px 0 0; color: var(--text-muted); font-size: 12.5px; }
.pb-body { display: flex; flex-direction: column; gap: 24px; padding: 22px 24px; }
.pb-step { display: flex; flex-direction: column; gap: 14px; }
.pb-step-head { display: flex; align-items: center; gap: 12px; }
.pb-step-no { width: 30px; height: 30px; flex: none; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); border-radius: 50%; font-size: 13px; font-weight: 800; box-shadow: 0 0 0 4px rgba(13, 43, 255, 0.1); }
.pb-step-text { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
.pb-step-text b { color: var(--text-primary); font-size: 14.5px; font-weight: 800; }
.pb-step-text small { color: var(--text-muted); font-size: 12px; line-height: 1.7; }
.pb-picked { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 5px 12px; color: var(--primary); background: var(--primary-soft); border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }

.pb-search { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--text-muted); background: var(--bg-input); border: 1.5px solid var(--border-color); border-radius: 12px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.pb-search:focus-within { background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.pb-search input { flex: 1; min-width: 0; min-height: 42px; color: var(--text-primary); background: none; border: 0; outline: none; font: 13.5px var(--font-fa); }
.pb-regions { display: flex; flex-wrap: wrap; gap: 8px; }
/* ده‌ها ریجن: فهرست اسکرول‌شونده با جست‌وجوی بالایش */
.pb-regions.is-many { max-height: 196px; padding: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d5dbe8 transparent; }
.pb-regions.is-many::-webkit-scrollbar { width: 6px; }
.pb-regions.is-many::-webkit-scrollbar-thumb { background: #d5dbe8; border-radius: 99px; }
.pb-region { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; color: var(--text-secondary); background: #fff; border: 1.5px solid var(--border-color); border-radius: 12px; font: 600 13px var(--font-fa); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.pb-region:hover { color: var(--text-primary); border-color: rgba(13, 43, 255, 0.35); }
.pb-region.is-on { color: var(--primary); background: var(--primary-soft); border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); font-weight: 800; }
.pb-none { width: 100%; margin: 4px 0; color: var(--text-muted); font-size: 12.5px; }

.pb-plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pb-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 88px;
    padding: 14px 14px 12px;
    color: var(--text-primary);
    background: #fff;
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    font-family: var(--font-fa);
    text-align: right;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.2s, transform 0.2s var(--ease-out), background 0.15s;
}
.pb-plan:hover { border-color: rgba(13, 43, 255, 0.35); box-shadow: var(--shadow-card); transform: translateY(-1px); }
/* انتخاب فعال بدون اتکا به رنگ هم پیداست: حاشیه‌ی ضخیم‌تر و تیک */
.pb-plan.is-on { background: #f5f8ff; border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary), var(--ring); }
.pb-plan-check { position: absolute; top: 10px; inset-inline-end: 10px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--primary); border-radius: 50%; opacity: 0; transform: scale(0.6); transition: opacity 0.15s, transform 0.2s var(--ease-out); }
.pb-plan-check svg { width: 13px; height: 13px; display: block; stroke-width: 2.6; }
.pb-plan.is-on .pb-plan-check { opacity: 1; transform: none; }
.pb-plan-name { max-width: calc(100% - 26px); color: var(--text-primary); font-size: 15px; font-weight: 800; line-height: 1.4; }
.pb-plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-top: auto; color: var(--text-secondary); font-size: 13px; font-weight: 700; }
.pb-plan-price small { color: var(--text-muted); font-size: 11px; font-weight: 600; }
.pb-plan.is-on .pb-plan-price { color: var(--primary); }
.pb-plan-off { padding: 1px 8px; color: var(--success); background: #e3f6ee; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }
.pb-plan.is-out { cursor: default; background: var(--bg-secondary); }
.pb-plan.is-out:hover { transform: none; box-shadow: none; border-color: var(--border-color); }
.pb-plan.is-out .pb-plan-name { opacity: 0.6; }
.pb-plan.is-out .pb-plan-price { margin-top: 0; color: var(--danger); }
.pb-notify { margin-top: auto; padding: 5px 10px; color: #a86a00; background: #fff4dc; border: 1px solid #f3dca8; border-radius: 9px; font: 700 11.5px var(--font-fa); cursor: pointer; }
.pb-notify.is-on { color: var(--success); background: #e3f6ee; border-color: #bde4c7; }
.pb-notify:disabled { opacity: 0.6; cursor: progress; }
.pb-soldout { margin: 0; color: var(--text-secondary); font-size: 12.5px; line-height: 1.9; }
.pb-fields { display: flex; flex-direction: column; gap: 14px; }

/* ---------- کد تخفیف، جزئیات قیمت، کیف پول ---------- */
.pb-summary { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px dashed var(--border-color); }
.pb-coupon-toggle { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; color: var(--primary); background: none; border: 0; border-radius: 10px; font: 700 13px var(--font-fa); cursor: pointer; transition: background 0.15s; }
.pb-coupon-toggle:hover { background: var(--primary-soft); }
.pb-coupon-form { display: flex; gap: 8px; }
.pb-coupon-form .ck-input { flex: 1; min-width: 0; min-height: 46px; font-family: var(--font-en); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.pb-coupon-form .ck-input::placeholder { font-family: var(--font-fa); font-weight: 500; letter-spacing: 0; text-transform: none; }
.pb-coupon-form .ck-ghost { min-height: 46px; padding: 0 20px; }
.pb-coupon-form .ck-ghost:disabled { cursor: wait; opacity: 0.6; }
.pb-coupon-applied { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--success); background: #eefaf4; border: 1px solid #c4ead7; border-radius: 12px; font-size: 12.5px; }
.pb-coupon-text { flex: 1; min-width: 0; }
.pb-coupon-applied b { font-family: var(--font-en); letter-spacing: 0.04em; color: #075c43; }
.pb-coupon-applied button { flex: none; padding: 4px 8px; color: var(--text-muted); background: none; border: 0; border-radius: 8px; font: 700 12px var(--font-fa); cursor: pointer; }
.pb-coupon-applied button:hover { color: var(--danger); background: #fdeceb; }
.pb-wallet { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1.5px solid var(--border-color); border-radius: 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pb-wallet.is-on { background: #f5f8ff; border-color: rgba(13, 43, 255, 0.35); }
.pb-wallet.is-empty { cursor: default; opacity: 0.75; }
.pb-wallet-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 12px; }
.pb-wallet-ic svg { width: 19px; height: 19px; display: block; }
.pb-wallet-text { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.pb-wallet-text b { color: var(--text-primary); font-size: 13.5px; }
.pb-wallet-text small { color: var(--text-secondary); font-size: 12px; line-height: 1.7; }
/* کلید روشن/خاموش (در راست‌به‌چپ، روشن = دایره سمت چپ) */
.pb-switch { position: relative; width: 46px; height: 26px; flex: none; margin: 0; background: #d5dbe8; border-radius: 999px; cursor: pointer; transition: background 0.2s; -webkit-appearance: none; appearance: none; }
.pb-switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(10, 18, 48, 0.25); transition: transform 0.2s var(--ease-out); }
.pb-switch:checked { background: var(--primary); }
.pb-switch:checked::after { transform: translateX(-20px); }
.pb-switch:disabled { cursor: not-allowed; opacity: 0.6; }
.pb-switch:focus-visible { outline: 2px solid rgba(13, 43, 255, 0.55); outline-offset: 2px; }
.pb-alert-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pb-alert-link { padding: 0; color: #9f2a22; background: none; border: 0; font: 700 12.5px var(--font-fa); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* فوتر چسبان: تا پایان کارت، مبلغ و دکمه‌ی پرداخت همیشه پایین صفحه دیده می‌شوند */
.pb-foot { position: sticky; bottom: 0; z-index: 5; display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 18px; background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--border-color); border-radius: 0 0 22px 22px; box-shadow: 0 -16px 30px -26px rgba(10, 18, 48, 0.45); }

/* ---------- حالت‌ها ---------- */
.pb-loading { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 24px; }
.pb-loading span { height: 88px; background: linear-gradient(90deg, #eef1f7 0%, #f7f9fc 50%, #eef1f7 100%); background-size: 200% 100%; border-radius: 16px; animation: acctShimmer 1.2s ease-in-out infinite; }
.pb-state { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 36px 24px; text-align: center; }
.pb-state-ic { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 4px; color: var(--primary); background: var(--primary-soft); border-radius: 18px; }
.pb-state-ic svg { width: 26px; height: 26px; display: block; }
.pb-state.is-error .pb-state-ic { color: var(--danger); background: #fdeceb; }
.pb-state b { color: var(--text-primary); font-size: 15px; }
.pb-state p { max-width: 380px; margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.9; }
.pb-state .ck-ghost { margin-top: 8px; min-height: 44px; }
.pb-done { padding: 30px 24px 26px; }
.pp-skeleton { background: linear-gradient(100deg, #e9edf5 30%, #f4f6fb 50%, #e9edf5 70%); background-size: 300% 100%; border-radius: 22px; animation: productSkeleton 1.3s ease-in-out infinite; }
.pp-skeleton-info { height: 460px; }
.pp-skeleton-buy { height: 620px; }
@keyframes productSkeleton {
    from { background-position: 200% 0; }
    to { background-position: -100% 0; }
}
.pp-missing { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 640px; margin: 0 auto; padding: 44px 28px; text-align: center; }
.pp-missing-ic { width: 60px; height: 60px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 18px; }
.pp-missing-ic svg { width: 26px; height: 26px; display: block; }
.pp-missing h2 { margin: 6px 0 0; color: var(--text-primary); font-size: 20px; }
.pp-missing p { margin: 0; color: var(--text-secondary); line-height: 2; }
.pp-missing .ck-pay { margin-top: 10px; }

/* ---------- ردیف پایین: توضیح، پرسش‌ها، نظرها ---------- */
.pp-content { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; gap: 22px; margin-top: 22px; }
.pp-side { display: flex; flex-direction: column; gap: 22px; }
.product-body { padding: 28px; line-height: 2.1; color: var(--text-secondary); }
.product-body h2 { font-size: 20px; color: var(--text-primary); margin: 26px 0 12px; }
.product-body h2:first-child { margin-top: 0; }
.product-body h3 { font-size: 16px; color: var(--text-primary); margin: 20px 0 10px; }
.product-body p { margin: 0 0 14px; }
.product-body ul, .product-body ol { margin: 0 0 16px; padding-inline-start: 22px; }
/* markdown فقط شماره‌ی ASCII را لیست می‌شناسد، ولی خواننده باید عدد فارسی
   ببیند؛ این counter style استاندارد است و در غیرِ پشتیبانی به عدد لاتین
   برمی‌گردد (نه خرابی). */
.product-body ol { list-style-type: persian; }
.product-body li { margin-bottom: 8px; }
.product-body strong { color: var(--text-primary); }
.product-body a { color: var(--primary); }
/* نقل‌قول تیم محتوا برای «نکته»ها استفاده می‌شود */
.product-body blockquote { margin: 0 0 16px; padding: 12px 16px; background: var(--bg-input); border-inline-start: 3px solid var(--primary); border-radius: var(--radius-md); }
.product-body blockquote p:last-child { margin-bottom: 0; }
/* جدول‌های markdown نباید صفحه را افقی بکشند */
.product-body table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.product-body th, .product-body td { border: 1px solid var(--border-color); padding: 8px 10px; text-align: start; }
.product-faq, .product-reviews { padding: 22px 24px; }
.product-faq h2, .product-reviews-head h2 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 800; }
.product-faq h2 { margin-bottom: 8px; }
.product-faq-item { padding: 12px 0; border-bottom: 1px solid var(--border-color); }
.product-faq-item:last-child { padding-bottom: 0; border-bottom: none; }
.product-faq-item summary { display: flex; align-items: flex-start; gap: 10px; color: var(--text-primary); font-size: 14px; font-weight: 600; line-height: 1.9; list-style: none; cursor: pointer; }
.product-faq-item summary::-webkit-details-marker { display: none; }
.product-faq-item summary::before { content: "+"; width: 22px; height: 22px; flex: none; display: grid; place-items: center; margin-top: 3px; color: var(--primary); background: var(--primary-soft); border-radius: 7px; font-weight: 800; line-height: 1; }
.product-faq-item[open] summary::before { content: "−"; color: #fff; background: var(--primary); }
.product-faq-item p { margin: 8px 0 0; padding-inline-start: 32px; color: var(--text-secondary); font-size: 13.5px; line-height: 2.1; }
.product-reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.product-rating { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 13px; }
.product-rating-stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.product-rating b { color: var(--text-primary); font-size: 17px; }
.product-review { padding: 14px 0; border-bottom: 1px solid var(--border-color); }
.product-review:last-child { padding-bottom: 0; border-bottom: none; }
.product-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--text-muted); font-size: 12.5px; }
.product-review-stars { color: #f5a623; letter-spacing: 1px; }
.product-review-author { color: var(--text-primary); font-weight: 700; }
.product-review-verified { color: var(--success); font-weight: 700; }
.product-review-text { margin: 8px 0 0; color: var(--text-secondary); font-size: 13.5px; line-height: 2; white-space: pre-line; }
.product-review-reply { margin-top: 8px; padding: 9px 12px; color: var(--text-secondary); background: var(--bg-secondary); border-radius: 10px; font-size: 12.5px; line-height: 1.9; }
.product-reviews-empty { margin: 10px 0 0; color: var(--text-muted); font-size: 13px; line-height: 1.9; }

@media (max-width: 1024px) {
    .pp-hero, .pp-content { grid-template-columns: minmax(0, 1fr); }
    .pp-info { position: static; }
    .pp-hero-img, .pp-visual { aspect-ratio: 21 / 9; }
    /* تک‌ستونه: اول توضیح، بعد پرسش‌ها و نظرها */
    .pp-content > .product-body { order: -1; }
}
@media (max-width: 640px) {
    #productPage.pp-page { padding: calc(var(--header-space) + 4px) 12px 64px; }
    .pp-crumbs { margin-bottom: 14px; font-size: 12px; }
    .pp-hero-img, .pp-visual { aspect-ratio: 16 / 9; }
    .pp-visual img { width: 84px; height: 84px; border-radius: 22px; }
    .pp-info-body { padding: 18px 16px 20px; }
    .pb-head { padding: 16px; }
    .pb-head-ic { width: 42px; height: 42px; border-radius: 13px; }
    .pb-body { gap: 22px; padding: 18px 16px; }
    .pb-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-plan { min-height: 82px; padding: 12px; }
    .pb-plan-name { font-size: 14px; }
    .pb-step-head { flex-wrap: wrap; }
    .pb-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
    .pb-loading { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
    .product-body { padding: 20px; }
    .product-faq, .product-reviews { padding: 18px 16px; }
}

/* ===== تأخیر امنیتی اولین خرید ===== */
.ck-hold-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px 12px;
    color: #1e3a8a;
    background: #eef3ff;
    border: 1px solid rgba(13, 43, 255, 0.16);
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.8;
}
.ck-hold-note .ck-ic { flex: none; margin-top: 2px; color: var(--primary); }

.cart-hold-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 4px 0 12px;
    padding: 10px 12px;
    color: #1e3a8a;
    background: #eef3ff;
    border: 1px solid rgba(13, 43, 255, 0.16);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.8;
}
.cart-hold-ic { flex: none; display: inline-flex; margin-top: 3px; color: var(--primary); }
.cart-hold-ic svg { width: 17px; height: 17px; }

.acct-hold {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    background: #f4f7ff;
    border: 1px solid #dfe7fb;
    border-radius: 14px;
}
.acct-hold-ic { flex: none; display: inline-flex; margin-top: 2px; color: var(--primary); }
.acct-hold-ic svg { width: 18px; height: 18px; }
.acct-hold b { display: block; color: var(--text-primary); font-size: 13.5px; }
.acct-hold small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: 12px; line-height: 1.8; }

/* ===== احراز هویت (پنل کاربری) ===== */
.cart-hold-note { flex-direction: column; gap: 6px; }
.cart-hold-line { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.ck-kyc-note { color: #8a5300 !important; }

.acct-nav-badge.is-alert { min-width: 20px; height: 20px; padding: 0; background: #e8590c; }
.acct-banner.is-alert { background: linear-gradient(270deg, #ffe9dd, #fff 80%); border-color: #f6cdb4; }
.acct-banner.is-alert .acct-banner-ic { color: #c2410c; background: #ffdcc7; }
.acct-hold.is-alert { align-items: center; background: #fff6ee; border-color: #f6d6bd; }
.acct-hold.is-alert .acct-hold-ic { color: #c2410c; }
.acct-hold.is-alert > div { flex: 1; min-width: 0; }
.acct-hold.is-alert .acct-btn { flex: none; }

.kyc-status { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
.kyc-status > div { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.kyc-status b { color: var(--text-primary); font-size: 15px; font-weight: 800; }
.kyc-status p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.9; }
.kyc-status small { color: var(--text-muted); font-size: 12px; }
.kyc-status-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 14px; }
.kyc-status-ic svg { width: 22px; height: 22px; display: block; }
.kyc-status.is-ok { background: linear-gradient(135deg, #e9f8f1, #fff 65%); border-color: #c4ead7; }
.kyc-status.is-ok .kyc-status-ic { color: #fff; background: var(--success); }
.kyc-status.is-wait { background: linear-gradient(135deg, #fff6e3, #fff 65%); border-color: #f3dca8; }
.kyc-status.is-wait .kyc-status-ic { color: #a86a00; background: #ffe9b8; }
.kyc-status.is-err { background: linear-gradient(135deg, #fdeeed, #fff 65%); border-color: #f5c9c5; }
.kyc-status.is-err .kyc-status-ic { color: #c9372e; background: #fbd9d6; }
.kyc-status .acct-btn { flex: none; align-self: center; }
.kyc-notes { margin: 6px 0 0; padding-inline-start: 18px; color: #8a5300; font-size: 12.5px; line-height: 1.9; }
.kyc-waiting { margin-top: 0; }

.kyc-dob { display: grid; grid-template-columns: 0.8fr 1.3fr 1fr; gap: 8px; }
.kyc-dob select {
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    color: var(--text-primary);
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    font: 14px var(--font-fa);
    cursor: pointer;
}
.kyc-dob select:focus { outline: none; background: #fff; border-color: var(--primary); box-shadow: var(--ring); }
.kyc-field-error { color: #c9372e !important; font-size: 12px; }

.kyc-upload {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 170px;
    padding: 18px;
    overflow: hidden;
    color: var(--text-secondary);
    background: #f7f9ff;
    border: 2px dashed #cbd6f2;
    border-radius: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.kyc-upload:hover { background: #f1f5ff; border-color: var(--primary); }
.kyc-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kyc-upload-ic { width: 46px; height: 46px; display: grid; place-items: center; color: var(--primary); background: #fff; border-radius: 14px; box-shadow: 0 6px 18px -10px rgba(13, 43, 255, 0.5); }
.kyc-upload-ic svg { width: 22px; height: 22px; display: block; }
.kyc-upload b { color: var(--text-primary); font-size: 14px; }
.kyc-upload small { color: var(--text-muted); font-size: 12px; }
.kyc-upload.has-photo { padding: 10px; background: #0b1226; border-style: solid; border-color: #0b1226; }
.kyc-upload img { display: block; max-width: 100%; max-height: 300px; border-radius: 10px; object-fit: contain; }
.kyc-upload-change { position: absolute; bottom: 12px; padding: 6px 14px; color: #fff; background: rgba(6, 11, 34, 0.7); border-radius: 999px; font-size: 12px; font-weight: 700; }

.kyc-mask { font-family: var(--font-en); letter-spacing: 0.06em; }
.kyc-card-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.kyc-card-inputs .kyc-mask { color: var(--text-muted); font-size: 12px; font-weight: 500; }
.kyc-error { padding: 11px 14px; color: #b3261e; background: #fdeceb; border: 1px solid #f5c9c5; border-radius: 12px; font-size: 13px; line-height: 1.8; }
.kyc-privacy { display: flex; align-items: flex-start; gap: 8px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.8; }
.kyc-privacy span { flex: none; display: inline-flex; margin-top: 2px; color: var(--success); }
.kyc-privacy svg { width: 15px; height: 15px; }
.kyc-form .acct-form-footer { align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kyc-attempts { color: var(--text-muted); font-size: 12px; }

.kyc-cards { display: flex; flex-direction: column; gap: 10px; }
.kyc-card { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; background: #fafbff; border: 1px solid var(--border-color); border-radius: 14px; }
.kyc-card-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); border-radius: 11px; }
.kyc-card-ic svg { width: 18px; height: 18px; display: block; }
.kyc-card.is-ok .kyc-card-ic { color: var(--success); background: #e3f6ee; }
.kyc-card.is-err .kyc-card-ic { color: #c9372e; background: #fdeceb; }
.kyc-card.is-warn .kyc-card-ic,
.kyc-card.is-wait .kyc-card-ic { color: #a86a00; background: #fff4dc; }
.kyc-card-body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.kyc-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kyc-card-top .kyc-mask { color: var(--text-primary); font-size: 14.5px; font-weight: 700; }
.kyc-card-body small { color: var(--text-secondary); font-size: 12px; line-height: 1.8; }
.kyc-card-body .kyc-card-wait { color: #a86a00; font-weight: 600; }
.kyc-card-entry { margin-top: 6px; }
.kyc-card-entry input { width: 220px; letter-spacing: 0.12em; }

@media (max-width: 640px) {
    .kyc-status { flex-wrap: wrap; padding: 16px; }
    .kyc-status .acct-btn { width: 100%; }
    .kyc-card-inputs { grid-template-columns: minmax(0, 1fr); }
    .kyc-card-entry input { width: 100%; }
    .acct-hold.is-alert { flex-wrap: wrap; }
    .acct-hold.is-alert .acct-btn { width: 100%; }
}

/* احراز هویت پیش از پرداخت */
.ck-hold-note.is-kyc { color: #8a4b00; background: #fff6e8; border-color: #f6d9a8; }
.ck-hold-note.is-kyc .ck-ic { color: #c26a00; }
.cart-kyc-go {
    align-self: flex-start;
    margin-inline-start: 25px;
    padding: 7px 16px;
    color: #fff;
    background: var(--gradient-primary);
    border: 0;
    border-radius: 10px;
    font: 700 12.5px var(--font-fa);
    cursor: pointer;
}
.cart-kyc-go:hover { filter: brightness(1.08); }
