/* ============================================================
   Boostly Insta — تصميم متجر بأسلوب إنستغرام (معزول تماماً)
   كل القواعد مقيّدة بـ body.bz-body حتى لا تتعارض مع تصميم المتجر الأصلي.
   ثيم هجين مطابق لتطبيق الموبايل: أسطح التصفّح فاتحة، ومشغّل الريلز يبقى داكناً.
   ============================================================ */

/* خط Cairo — مطابق لتطبيق الموبايل (مستضاف ذاتياً؛ المسار نسبي لموقع هذا الملف). */
@font-face { font-family: "Cairo"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Cairo-Regular.woff2") format("woff2"), url("fonts/Cairo-Regular.ttf") format("truetype"); }
@font-face { font-family: "Cairo"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/Cairo-Medium.woff2") format("woff2"), url("fonts/Cairo-Medium.ttf") format("truetype"); }
@font-face { font-family: "Cairo"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/Cairo-SemiBold.woff2") format("woff2"), url("fonts/Cairo-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "Cairo"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/Cairo-Bold.woff2") format("woff2"), url("fonts/Cairo-Bold.ttf") format("truetype"); }
@font-face { font-family: "Cairo"; font-weight: 800; font-style: normal; font-display: swap; src: url("fonts/Cairo-ExtraBold.woff2") format("woff2"), url("fonts/Cairo-ExtraBold.ttf") format("truetype"); }

.bz-body * { box-sizing: border-box; }

.bz-body {
    /* لوحة الألوان — مطابقة لـ COLORS في تطبيق الموبايل (config.ts) */
    --bz-accent: #6c5ce7;        /* بنفسجي العلامة (CTA/نشِط) */
    --bz-accent-2: #5848c9;
    --bz-bg: #F6F6FB;            /* خلفية التصفّح (أبيض مائل لرمادي بارد) */
    --bz-surface: #FFFFFF;       /* البطاقات/الأسطح */
    --bz-surface-alt: #EEEEF4;   /* حقول/خلفيات ثانوية */
    --bz-border: #E7E7EF;        /* حدود خفيفة */
    --bz-text: #16131F;          /* نص أساسي شبه أسود */
    --bz-muted: #6C6880;         /* نص ثانوي/خافت */
    --bz-faint: #C2BFD0;         /* أيقونات/عناصر نائبة باهتة على الفاتح */
    --bz-like: #E0507A;          /* قلب الإعجاب (مطابق للتطبيق) */
    --bz-wa: #25D366;            /* واتساب */
    --bz-media: #0B0914;         /* خلفية الريلز/الوسائط (تبقى داكنة) */
    --bz-on-media: #FFFFFF;      /* نص/أيقونات فوق الوسائط */
    --bz-nav-idle: #8a86a0;      /* لون تبويب غير نشِط (مطابق للتطبيق) */
    margin: 0;
    padding: 0;
    background: var(--bz-bg);
    color: var(--bz-text);
    font-family: "Cairo", "Segoe UI", Tahoma, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
}

.bz-body img { max-width: 100%; display: block; }
.bz-body a { color: inherit; text-decoration: none; }
.bz-body button { font-family: inherit; cursor: pointer; }
/* مكوّنات قد تُصيَّر كروابط <a> (عنوان البطاقة فوق الصورة، الأزرار الملوّنة):
   يجب أن يتفوّق لون نصّها الأبيض على إعادة ضبط ".bz-body a { color: inherit }" أعلاه */
.bz-body a.bz-title,
.bz-body a.bz-btn-primary,
.bz-body a.bz-btn-wa,
.bz-body a.bz-follow-btn,
.bz-body a.bz-slide-getprice { color: #fff; }

/* محتوى عام بعرض موبايل ومتمركز على الشاشات الكبيرة */
.bz-app {
    max-width: 680px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bz-bg);
    position: relative;
    padding-bottom: calc(78px + env(safe-area-inset-bottom));
}

/* ----------------------------- شريط علوي ----------------------------- */
.bz-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 52px;
    padding: 0 14px;
    background: rgba(246,246,251,0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-topbar .bz-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: var(--bz-text);
}
.bz-topbar .bz-brand img { height: 26px; width: auto; }
.bz-topbar .bz-top-actions { margin-inline-start: auto; display: flex; gap: 6px; }
.bz-topbar .bz-icon-btn {
    background: transparent; border: 0; color: var(--bz-text); padding: 6px;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-topbar .bz-icon-btn svg { width: 24px; height: 24px; }

/* شريط البحث المنبثق من النافبار */
.bz-searchbar {
    display: none; align-items: center; gap: 8px;
    position: sticky; top: 52px; z-index: 49;
    padding: 8px 12px;
    background: rgba(246,246,251,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-searchbar.is-open { display: flex; }
.bz-searchbar input {
    flex: 1; min-width: 0;
    background: var(--bz-surface-alt); border: 0; border-radius: 10px;
    color: var(--bz-text); padding: 10px 12px; font-size: 14px; outline: none;
}
.bz-searchbar input::placeholder { color: var(--bz-muted); }
.bz-searchbar .bz-search-go { background: transparent; border: 0; color: var(--bz-text); padding: 6px; display: inline-flex; }
.bz-searchbar .bz-search-go svg { width: 22px; height: 22px; }

/* ----------------- شريط التصنيفات (متل تيليغرام — مطابق للموبايل) ----------------- */
.bz-catbar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    position: sticky; top: 52px; z-index: 49; /* لاصق تحت الشريط العلوي */
    padding: 8px 12px;
    background: rgba(246,246,251,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* إخفاء شريط التمرير (فايرفوكس) */
}
.bz-catbar::-webkit-scrollbar { display: none; }
.bz-catbar .bz-chip {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: 18px;
    background: var(--bz-surface);
    border: 1px solid var(--bz-border);
    color: var(--bz-muted);
    font-weight: 700;
    font-size: 13px;
    transition: background .15s, color .15s, border-color .15s;
}
.bz-catbar .bz-chip.is-active {
    background: var(--bz-accent);
    border-color: var(--bz-accent);
    color: #fff;
}

/* رأس صفحة فرعية (رجوع) */
.bz-subhead {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 12px;
    height: 52px; padding: 0 10px;
    background: rgba(246,246,251,0.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-subhead .bz-back { background: transparent; border: 0; color: var(--bz-text); padding: 6px; display: inline-flex; }
.bz-subhead .bz-back svg { width: 24px; height: 24px; }
.bz-subhead .bz-subhead-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* زر مشاركة بروفايل التاجر — يُعرض ضمن صف أزرار التاجر (متل الموبايل بعد e688e6c) */
.bz-seller-actions .bz-share-profile { cursor: pointer; }
.bz-seller-actions .bz-share-profile svg { width: 18px; height: 18px; }
.bz-subhead-search { flex: 1; min-width: 0; }
.bz-subhead-search input {
    width: 100%;
    background: var(--bz-surface-alt); border: 0; border-radius: 10px;
    color: var(--bz-text); padding: 9px 12px; font-size: 14px; outline: none;
}
.bz-subhead-search input::placeholder { color: var(--bz-muted); }

/* ----------------------------- عناوين الأقسام ----------------------------- */
.bz-section-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 14px 8px;
}
.bz-section-head h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--bz-text); }
.bz-section-head .bz-section-link { font-size: 13px; color: var(--bz-accent); }

/* ----------------------------- شبكة المنتجات ----------------------------- */
.bz-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;  /* عمودان فقط */
    column-gap: 0;                    /* الصور ملتصقة أفقياً */
    row-gap: 2px;                     /* الصور شبه ملتصقة عمودياً */
}

/* البطاقة = صورة بكامل الحجم والمعلومات عائمة فوقها (نسبة مطابقة للتطبيق 1:1.42) */
.bz-card {
    position: relative;
    aspect-ratio: 1 / 1.42;   /* مطابق لتطبيق الموبايل (ارتفاع = عرض × 1.42) */
    overflow: hidden;
    background: var(--bz-surface-alt);
}
.bz-card-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-card-link { position: absolute; inset: 0; z-index: 1; }
.bz-card-badge {
    position: absolute; top: 8px; inset-inline-end: 8px; z-index: 3;
    background: var(--bz-like); color: #fff; font-size: 11px; font-weight: 700;
    padding: 2px 7px; border-radius: 6px;
}
/* عدّاد المشاهدات في الزاوية العلوية (مطابق GridCell.tsx بالموبايل — top-left، دائري خلفية نصف شفافة) */
.bz-card-views {
    position: absolute; top: 6px; inset-inline-start: 6px; z-index: 3;
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(0,0,0,0.5); color: #fff;
    padding: 3px 7px; border-radius: 10px;
    font-size: 11px; font-weight: 700; line-height: 1;
}
.bz-card-views svg { width: 12px; height: 12px; fill: none; stroke: currentColor; flex-shrink: 0; }

/* الطبقة العائمة أسفل الصورة (نص أبيض فوق الصورة — يبقى كما هو) */
.bz-card-overlay {
    position: absolute; inset-inline: 0; bottom: 0; z-index: 2;
    padding: 26px 8px 8px;
    direction: rtl; text-align: right;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0) 100%);
}
.bz-card-overlay a, .bz-card-overlay button { pointer-events: auto; }
.bz-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.bz-seller { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bz-seller-ava {
    width: 22px; height: 22px; border-radius: 50%; object-fit: cover;
    flex: 0 0 auto; background: var(--bz-surface-alt); border: 1px solid rgba(255,255,255,0.55);
}
.bz-seller-name {
    font-size: 12px; color: #fff; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

.bz-like {
    background: transparent; border: 0; padding: 2px; color: #fff;
    display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
}
.bz-like svg { width: 24px; height: 24px; stroke: #fff; fill: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); transition: transform .12s ease; }
.bz-like.is-liked svg { fill: var(--bz-like); stroke: var(--bz-like); }
.bz-like:active svg { transform: scale(1.25); }
.bz-like .bz-like-count { font-size: 12px; color: #fff; }

.bz-title {
    margin-top: 6px;
    font-size: 13.5px; font-weight: 600; color: #fff; line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,0.85);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.bz-price { margin-top: 3px; font-size: 14px; font-weight: 800; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.85); }
.bz-price .bz-old { color: #ccc; font-weight: 400; font-size: 11px; margin-inline-start: 6px; text-decoration: line-through; }
.bz-price.bz-free { color: #2ee87a; }
.bz-price .bz-quote { color: #e6e8ff; font-weight: 600; font-size: 13px; }

/* حالات التحميل والنهاية */
.bz-loader { padding: 22px; display: flex; justify-content: center; }
.bz-spinner {
    width: 26px; height: 26px; border-radius: 50%;
    border: 3px solid var(--bz-border); border-top-color: var(--bz-accent); animation: bz-spin .8s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }
.bz-sentinel { height: 1px; }
.bz-end-note { text-align: center; color: var(--bz-muted); font-size: 13px; padding: 18px; }
.bz-empty { text-align: center; color: var(--bz-muted); padding: 60px 20px; }

/* ----------------------------- رأس صفحة البائع ----------------------------- */
/* صفحة التاجر بأسلوب إنستغرام (مطابق للجوال): بلا غلاف، صف علوي أفاتار دائري + إحصائيات أفقية */
.bz-seller-header { padding: 14px 16px; border-bottom: 1px solid var(--bz-border); }
.bz-seller-header .bz-seller-toprow {
    display: flex; align-items: center; gap: 18px;
}
.bz-seller-header .bz-seller-avatar {
    width: 88px; height: 88px; border-radius: 50%; object-fit: cover;
    border: 1px solid var(--bz-border); background: var(--bz-surface-alt); flex-shrink: 0;
}
.bz-seller-header .bz-seller-stats {
    flex: 1; display: flex; justify-content: space-around; align-items: center; color: var(--bz-muted);
}
.bz-seller-header .bz-stat { text-align: center; }
.bz-seller-header .bz-stat b { display: block; font-size: 18px; color: var(--bz-text); font-weight: 800; }
.bz-seller-header .bz-stat span { display: block; font-size: 12px; color: var(--bz-muted); margin-top: 2px; }

/* اسم ونبذة بمحاذاة يمين تحت RTL (start = right) */
.bz-seller-header .bz-seller-title { font-size: 16px; font-weight: 800; margin: 14px 0 0; text-align: start; }
.bz-seller-header .bz-seller-about { color: var(--bz-muted); font-size: 13px; line-height: 19px; margin: 4px 0 0; text-align: start; }

/* صف أزرار: متابعة + واتساب + مكالمة (كلها flex:1) + مربّع مشاركة 44 */
.bz-seller-header .bz-seller-actions {
    display: flex; gap: 8px; margin-top: 14px; align-items: stretch;
}
.bz-seller-header .bz-seller-actions .bz-follow-btn,
.bz-seller-header .bz-seller-actions .bz-btn-wa,
.bz-seller-header .bz-seller-actions .bz-btn-ghost:not(.bz-btn-icon) {
    flex: 1; border-radius: 10px; padding: 10px 6px; min-width: 0; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-size: 13px;
}
.bz-seller-header .bz-seller-actions .bz-btn span { overflow: hidden; text-overflow: ellipsis; }
.bz-seller-header .bz-seller-actions .bz-btn-icon {
    width: 44px; padding: 0; flex-shrink: 0; border-radius: 10px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); color: var(--bz-text);
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-seller-header .bz-seller-actions .bz-btn-icon svg { width: 20px; height: 20px; }

/* زر المشاركة في الشريط العلوي (subhead) — أيقونة بسيطة يمين. نستهدف .bz-subhead-center تحديداً
   لتفادي التعارض مع نمط `.bz-body .bz-subhead-action` القديم (زر حذف مطلق الموضع في نموذج التعديل) */
.bz-subhead-center .bz-subhead-action {
    background: transparent; border: 0; color: var(--bz-text); padding: 6px;
    margin-inline-start: auto; position: relative; z-index: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-subhead-center .bz-subhead-action svg { width: 22px; height: 22px; }

.bz-btn {
    border: 0; border-radius: 14px; padding: 9px 18px; font-size: 14px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 8px; justify-content: center;
}
.bz-btn-primary { background: var(--bz-accent); color: #fff; }
.bz-btn-block { width: 100%; padding: 14px; font-size: 15px; }
.bz-btn-wa { background: var(--bz-wa); color: #fff; }
.bz-btn-ghost { background: var(--bz-surface-alt); color: var(--bz-text); border: 1px solid var(--bz-border); }
.bz-btn svg { width: 18px; height: 18px; }
.bz-seller-divider { height: 1px; background: var(--bz-border); margin: 14px 0 2px; }

/* ============================================================
   الريلز — صفحة المنتج بملء الشاشة (تبقى داكنة — وسائط)
   ============================================================ */
.bz-reel {
    height: 100vh; height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    background: var(--bz-media);
    scrollbar-width: none;
}
.bz-reel::-webkit-scrollbar { display: none; }

.bz-slide {
    position: relative;
    height: 100vh; height: 100dvh;
    scroll-snap-align: start; scroll-snap-stop: always;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
/* خلفية ضبابية تملأ الفراغ */
.bz-slide-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(28px) brightness(0.45); transform: scale(1.2);
}
.bz-slide-img,
.bz-slide-video {
    position: relative; z-index: 1;
    max-width: 100%; max-height: 100%;
    width: 100%; height: 100%; object-fit: contain;
}
.bz-slide-video { background: #000; }
.bz-slide-shade {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 32%, rgba(0,0,0,0) 55%);
}

/* معرض صور المنتج داخل الريل (سحب أفقي + تبديل تلقائي) */
.bz-slide-gallery { position: absolute; inset: 0; z-index: 1; }
.bz-gallery-track {
    position: absolute; inset: 0;
    display: flex; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.bz-gallery-track::-webkit-scrollbar { display: none; }
.bz-gallery-img {
    flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain;
    scroll-snap-align: center; scroll-snap-stop: always;
    -webkit-user-drag: none; user-select: none;
}
.bz-gallery-dots {
    position: absolute; z-index: 5; top: calc(env(safe-area-inset-top) + 20px);
    inset-inline: 0; display: flex; justify-content: center; gap: 6px; pointer-events: none;
}
.bz-gallery-dots span {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.45); transition: width .25s, background .25s;
}
.bz-gallery-dots span.is-active { background: #fff; width: 18px; border-radius: 3px; }

.bz-reel-top {
    position: fixed; top: 0; inset-inline: 0; z-index: 6;
    max-width: 680px; margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    padding: 14px; padding-top: max(14px, env(safe-area-inset-top));
    pointer-events: none;
}
.bz-reel-top .bz-back { pointer-events: auto; }
.bz-reel-top .bz-back { background: rgba(0,0,0,0.35); border: 0; color: #fff; border-radius: 50%; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; }
.bz-reel-top .bz-back svg { width: 22px; height: 22px; }

/* معلومات أسفل-يمين */
.bz-slide-info {
    position: absolute; z-index: 5; bottom: 0; right: 0;
    width: 74%; max-width: 460px;
    /* رفع الكتلة (زر "احصل على السعر" + رقاقة السعر) فوق شريط المتصفّح السفلي/شريط الـHome
       على الويب-فيوهات التي لا تدعم dvh — تماماً كما يفعل .bz-slide-actions (84px) — كي لا يُقصّ الزر */
    padding: 16px; padding-bottom: calc(80px + env(safe-area-inset-bottom));
    direction: rtl; text-align: right; /* محاذاة لليمين (معلومات المنتج على اليمين) */
}
.bz-slide-seller { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.bz-slide-seller img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 1.5px solid #fff; background: #241f36; }
.bz-slide-seller .bz-slide-seller-name { font-size: 15px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.6); }
.bz-slide-title { font-size: 17px; font-weight: 800; color: #fff; margin: 0 0 6px; text-shadow: 0 1px 6px rgba(0,0,0,0.7); }
/* سعر واضح داخل رقاقة (مطابق لتطبيق الموبايل) */
.bz-slide-price {
    display: inline-block; font-size: 20px; font-weight: 800; color: #fff;
    margin: 8px 0 0; padding: 7px 14px; border-radius: 12px;
    background: rgba(0,0,0,0.45); border: 1px solid rgba(255,255,255,0.22);
    letter-spacing: 0.3px; text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}
.bz-slide-price .bz-old { color: #cfcfcf; font-weight: 400; font-size: 13px; margin-inline-start: 8px; text-decoration: line-through; }
.bz-slide-price.bz-free { color: #2ee87a; }
/* زر "احصل على السعر" (واتساب) للمنتجات بدون سعر — مطابق لتطبيق الموبايل */
.bz-slide-getprice {
    display: inline-flex; align-items: center; gap: 8px;
    margin: 8px 0 0; padding: 10px 18px; border-radius: 22px;
    background: var(--bz-wa); color: #fff; font-size: 15px; font-weight: 800;
}
.bz-slide-getprice svg { width: 18px; height: 18px; fill: #fff; }

.bz-slide-desc { font-size: 13.5px; line-height: 1.5; color: #ededed; margin: 8px 0 0; text-shadow: 0 1px 4px rgba(0,0,0,0.6); cursor: pointer; }
.bz-slide-desc.is-open { cursor: auto; }
.bz-slide-desc .bz-desc-short { display: inline; }
.bz-slide-desc .bz-desc-full { display: none; white-space: pre-line; }
.bz-slide-desc.is-open .bz-desc-short { display: none; }
.bz-slide-desc.is-open .bz-desc-full { display: inline; }
.bz-desc-toggle { background: transparent; border: 0; color: #e6e8ff; font-size: 13px; font-weight: 700; padding: 0; margin-inline-start: 4px; }

/* أزرار الإجراءات على اليسار */
.bz-slide-actions {
    position: absolute; z-index: 6; left: 8px;
    bottom: calc(84px + env(safe-area-inset-bottom)); /* مرفوعة قليلاً للأعلى */
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.bz-act { background: transparent; border: 0; color: #fff; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.bz-act svg { width: 32px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.6)); }
.bz-act.bz-like svg, .bz-act.bz-share svg { stroke: #fff; fill: none; }
.bz-act.bz-call svg { fill: #fff; stroke: none; }
.bz-act.bz-wa svg { fill: var(--bz-wa); stroke: none; }
.bz-act.bz-views { cursor: default; }
.bz-act.bz-views svg { stroke: #fff; fill: none; }
.bz-act .bz-act-label { font-size: 11px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.6); }
.bz-act.bz-like.is-liked svg { fill: var(--bz-like); stroke: var(--bz-like); }
.bz-act.bz-like:active svg { transform: scale(1.2); }

/* قلب نابض عند الإعجاب المزدوج */
.bz-heart-pop {
    position: absolute; z-index: 7; top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0); opacity: 0;
    color: #fff; pointer-events: none;
}
.bz-heart-pop svg { width: 110px; height: 110px; fill: #fff; }
.bz-heart-pop.animate { animation: bz-heart .9s ease; }
@keyframes bz-heart {
    0% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
    15% { transform: translate(-50%,-50%) scale(1.1); opacity: .95; }
    35% { transform: translate(-50%,-50%) scale(0.92); opacity: .95; }
    100% { transform: translate(-50%,-50%) scale(1.3); opacity: 0; }
}

/* ----------------------------- نافذة التواصل (Bottom sheet) ----------------------------- */
.bz-sheet-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.45); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.bz-sheet-overlay.is-open { opacity: 1; visibility: visible; }
.bz-sheet {
    position: fixed; z-index: 201; left: 0; right: 0; bottom: 0;
    max-width: 680px; margin: 0 auto;
    background: var(--bz-surface); color: var(--bz-text);
    border-radius: 18px 18px 0 0;
    padding: 10px 18px max(22px, env(safe-area-inset-bottom));
    transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
    box-shadow: 0 -8px 30px rgba(22,19,31,0.12);
}
.bz-sheet.is-open { transform: translateY(0); }
.bz-sheet .bz-sheet-grip { width: 40px; height: 4px; background: var(--bz-border); border-radius: 4px; margin: 6px auto 14px; }
.bz-sheet .bz-sheet-title { font-size: 16px; font-weight: 800; text-align: center; margin: 0 0 4px; }
.bz-sheet .bz-sheet-seller { font-size: 13px; color: var(--bz-muted); text-align: center; margin: 0 0 16px; }
.bz-sheet .bz-sheet-actions { display: flex; flex-direction: column; gap: 10px; }
.bz-sheet .bz-sheet-actions .bz-btn { width: 100%; padding: 13px; font-size: 15px; }
.bz-sheet .bz-sheet-none { text-align: center; color: var(--bz-muted); font-size: 14px; padding: 8px 0 16px; }

/* ----------------------------- شريط التنقل السفلي ----------------------------- */
.bz-bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    max-width: 680px; margin: 0 auto;
    height: 72px; padding-top: 6px; padding-bottom: env(safe-area-inset-bottom);
    display: flex; align-items: center; justify-content: space-around;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
    border-top: 1px solid var(--bz-border);
}
.bz-bottomnav a { color: var(--bz-nav-idle); flex: 1; display: inline-flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.bz-bottomnav a.is-active { color: var(--bz-accent); }
.bz-bottomnav a svg { width: 26px; height: 26px; }

/* شريط التنقل لا يظهر في صفحة الريلز — والصفحة تبقى داكنة (وسائط) */
.bz-body.bz-reel-page { padding-bottom: 0; background: var(--bz-media); }
.bz-body.bz-reel-page .bz-bottomnav { display: none; }

/* شاشات أوسع: تكبير الشبكة قليلاً مع الإبقاء على عمودين بحسب الطلب */
@media (min-width: 560px) {
    .bz-seller-name { max-width: 160px; }
}

/* ----------------------------- شريط علوي بعنوان (اكتشف/الأحدث/حسابي) ----------------------------- */
.bz-topbar-titled { justify-content: space-between; }
.bz-topbar-titled .bz-brand img { height: 30px; }
.bz-page-title { font-size: 20px; font-weight: 800; color: var(--bz-text); }

/* شريط بحث بارز داخل الهيدر (اكتشف/الأحدث) — رابط بصريّ يشبه صندوق إدخال */
.bz-topbar-search-wrap .bz-brand img { height: 30px; }
.bz-topbar-search {
    flex: 1; display: flex; align-items: center; gap: 8px;
    padding: 0 12px; height: 40px;
    background: var(--bz-surface-alt); border-radius: 12px;
    color: var(--bz-muted); text-decoration: none;
}
.bz-topbar-search svg { width: 18px; height: 18px; flex-shrink: 0; }
.bz-topbar-search span { font-size: 14px; color: var(--bz-muted); }

/* ------------- شريحة المحافظات في الشريط العلوي + ورقة الاختيار المتعدد ------------- */
.bz-body .bz-prov-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px;
    max-width: 108px; height: 34px; padding: 0 10px;
    border-radius: 17px; border: 1px solid var(--bz-border);
    background: var(--bz-surface); color: var(--bz-text);
    font-family: inherit; font-size: 12.5px; font-weight: 700;
}
.bz-body .bz-prov-chip svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--bz-accent); }
.bz-body .bz-prov-chip-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-body .bz-prov-chip:active { background: var(--bz-surface-alt); }
/* الشريحة تتقاسم عرض الشريط مع صندوق البحث: نمنع الشعار من الانكماش ونسمح للبحث به */
.bz-body .bz-topbar-search-wrap .bz-brand { flex: 0 0 auto; }
.bz-body .bz-topbar-search-wrap .bz-topbar-search { min-width: 0; }
.bz-body .bz-topbar-search-wrap .bz-topbar-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 380px) {
    .bz-body .bz-prov-chip { max-width: 86px; padding: 0 8px; gap: 3px; }
}

.bz-body .bz-prov-sheet { max-height: 86vh; overflow-y: auto; }
.bz-body .bz-prov-sheet .bz-sheet-seller { margin-bottom: 12px; }
.bz-body .bz-prov-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    margin-top: 8px;
}
.bz-body .bz-prov-row {
    display: flex; align-items: center; gap: 8px; width: 100%;
    padding: 11px 12px; border-radius: 14px;
    background: var(--bz-surface-alt); border: 1px solid transparent;
    color: var(--bz-text); font-family: inherit; font-size: 14px; font-weight: 700;
    text-align: start; transition: background .15s, border-color .15s, color .15s;
}
.bz-body .bz-prov-row-all { background: var(--bz-surface); border-color: var(--bz-border); }
.bz-body .bz-prov-row .bz-prov-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-body .bz-prov-row .bz-prov-flag { font-size: 17px; line-height: 1; }
.bz-body .bz-prov-row .bz-prov-check {
    flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: transparent; border: 1.5px solid var(--bz-faint);
}
.bz-body .bz-prov-row .bz-prov-check svg { width: 12px; height: 12px; }
.bz-body .bz-prov-row.is-active {
    background: rgba(108, 92, 231, 0.10);
    border-color: var(--bz-accent); color: var(--bz-accent);
}
.bz-body .bz-prov-row.is-active .bz-prov-check {
    background: var(--bz-accent); border-color: var(--bz-accent); color: #fff;
}
.bz-body .bz-prov-actions {
    display: flex; align-items: center; gap: 12px;
    margin-top: 16px; padding-top: 4px;
}
.bz-body .bz-prov-actions .bz-btn-primary { flex: 1; padding: 13px; font-size: 15px; }
.bz-body .bz-prov-link {
    flex: 0 0 auto; background: none; border: 0; padding: 6px 2px;
    color: var(--bz-muted); font-family: inherit; font-size: 13px; font-weight: 700;
    text-decoration: underline; text-underline-offset: 3px;
}

/* ----------------------------- صفحة البحث ----------------------------- */
.bz-searchhead {
    position: sticky; top: 0; z-index: 50;
    padding: 12px 14px;
    background: rgba(246,246,251,0.85); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--bz-border);
}
.bz-searchhead-form {
    display: flex; align-items: center; gap: 8px;
    background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 0 12px; height: 44px;
}
.bz-searchhead-icon { display: inline-flex; color: var(--bz-muted); }
.bz-searchhead-icon svg { width: 20px; height: 20px; }
.bz-searchhead-form input {
    flex: 1; background: transparent; border: 0; outline: none;
    color: var(--bz-text); font-size: 15px; font-family: inherit;
}
.bz-searchhead-form input::placeholder { color: var(--bz-muted); }

.bz-search-tabs { display: flex; gap: 6px; padding: 12px 14px 2px; }
.bz-search-tab {
    flex: 1; text-align: center; padding: 10px; border-radius: 10px;
    background: var(--bz-surface); color: var(--bz-muted); font-size: 14px; font-weight: 700;
    border: 1px solid var(--bz-border); font-family: inherit; cursor: pointer;
}
/* البحث الحيّ: عناصر النتائج تُبدَّل عبر hidden لكن أصنافها تضبط display صراحةً → أجبر hidden على الفوز */
.bz-searchpage [hidden] { display: none !important; }
.bz-search-tab.is-active { background: var(--bz-accent); color: #fff; border-color: var(--bz-accent); }

.bz-search-empty { text-align: center; color: var(--bz-muted); padding: 70px 24px; }
.bz-search-empty-icon { display: inline-flex; color: var(--bz-faint); }
.bz-search-empty-icon svg { width: 64px; height: 64px; stroke-width: 1.6; }
.bz-search-empty p { margin: 16px 0 0; font-size: 15px; color: var(--bz-muted); }

/* سجلّ البحث الأخير (محلي في localStorage) — يعرض داخل نفس حاوية #bzRecentSearches */
#bzRecentSearches:has(.bz-recent-row) { text-align: start; padding: 12px 16px 4px; }
.bz-recent-title { color: var(--bz-text); font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.bz-recent-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 0; border-bottom: 1px solid var(--bz-border);
}
.bz-recent-term {
    flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0;
    color: var(--bz-text); text-decoration: none;
}
.bz-recent-icon { display: inline-flex; color: var(--bz-muted); flex-shrink: 0; }
.bz-recent-icon svg { width: 17px; height: 17px; }
.bz-recent-text { color: var(--bz-text); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bz-recent-remove {
    background: transparent; border: 0; color: var(--bz-muted); padding: 6px;
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bz-recent-remove svg { width: 18px; height: 18px; }

/* زر الرجوع في هيدر البحث */
.bz-searchhead { display: flex; align-items: center; gap: 8px; }
.bz-searchhead .bz-back { background: transparent; border: 0; color: var(--bz-text); padding: 6px; display: inline-flex; }
.bz-searchhead .bz-back svg { width: 22px; height: 22px; }
.bz-searchhead .bz-searchhead-form { flex: 1; }

/* ----------------------------- بطاقات البائعين في البحث ----------------------------- */
.bz-seller-list { display: flex; flex-direction: column; gap: 12px; padding: 12px 14px; }
.bz-seller-card { background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; overflow: hidden; }
.bz-seller-card-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.bz-seller-card-ava { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-seller-card-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.bz-seller-card-name { font-size: 15px; font-weight: 800; color: var(--bz-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-seller-card-count { font-size: 12px; color: var(--bz-muted); }
.bz-seller-card-go { color: var(--bz-accent); display: inline-flex; flex-shrink: 0; }
.bz-seller-card-go svg { width: 22px; height: 22px; }
.bz-seller-card-strip { display: flex; gap: 4px; padding: 0 6px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bz-seller-thumb { flex: 0 0 auto; width: 28%; max-width: 130px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--bz-surface-alt); }
.bz-seller-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ----------------------------- صفحة حسابي ----------------------------- */
.bz-account { padding: 18px 22px; text-align: center; }
.bz-account-guest { padding-top: 70px; }
.bz-account-ava {
    width: 92px; height: 92px; border-radius: 50%; object-fit: cover;
    margin: 12px auto 0; background: var(--bz-surface-alt);
}
.bz-account-ava-empty {
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bz-faint); background: var(--bz-surface-alt);
}
.bz-account-ava-empty svg { width: 56px; height: 56px; }
.bz-account-name { font-size: 22px; font-weight: 800; margin: 16px 0 0; color: var(--bz-text); }
.bz-account-sub { font-size: 14px; color: var(--bz-muted); line-height: 1.7; margin: 12px auto 0; max-width: 320px; }
.bz-account-actions { display: flex; flex-direction: column; gap: 12px; margin: 30px auto 0; max-width: 420px; }
.bz-account-links { display: flex; flex-direction: column; gap: 8px; margin: 26px auto 0; max-width: 420px; }
.bz-account-link {
    display: flex; align-items: center; gap: 12px; padding: 15px 16px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 12px;
    color: var(--bz-text); font-size: 15px; font-weight: 600;
}
.bz-account-link svg { width: 22px; height: 22px; color: var(--bz-accent); }
.bz-account-logout { margin: 22px auto 0; max-width: 420px; }

/* ----------------------------- نوافذ الدخول/التاجر السفلية ----------------------------- */
.bz-auth-sheet { padding-top: 18px; text-align: center; }
.bz-sheet-close {
    position: absolute; top: 14px; right: 16px;
    width: 34px; height: 34px; border-radius: 50%;
    background: transparent; border: 0; color: var(--bz-muted);
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-sheet-close svg { width: 22px; height: 22px; }
.bz-auth-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--bz-accent); color: #fff;
    font-size: 14px; font-weight: 800;
    padding: 8px 18px; border-radius: 999px; margin: 4px 0 14px;
}
.bz-auth-badge svg { width: 18px; height: 18px; }
.bz-auth-sheet .bz-sheet-title { font-size: 22px; margin-bottom: 4px; }
.bz-auth-sheet .bz-sheet-seller { margin-bottom: 18px; }
.bz-auth-alt-plain { margin: 20px 0 10px; color: var(--bz-muted); }
.bz-auth-sheet .bz-btn-wa { margin-top: 2px; }
.bz-auth-sheet .bz-auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.bz-auth-row { display: flex; gap: 12px; }
.bz-auth-row input { flex: 1; min-width: 0; }
.bz-auth-or {
    display: flex; align-items: center; gap: 12px;
    color: var(--bz-muted); font-size: 13px; margin: 16px 2px;
}
.bz-auth-or::before, .bz-auth-or::after { content: ""; flex: 1; height: 1px; background: var(--bz-border); }
.bz-btn.bz-btn-google { background: #fff; color: #1f1f1f; border: 1px solid var(--bz-border); }
.bz-btn-google svg { width: 20px; height: 20px; flex: 0 0 auto; }
.bz-auth-switch {
    display: block; width: 100%; background: transparent; border: 0;
    margin: 18px 0 2px; padding: 6px; font-size: 14.5px; color: var(--bz-muted); font-family: inherit;
}
.bz-auth-switch b { color: var(--bz-accent); font-weight: 800; }

/* ----------------------------- حسابي (مسجّل) ----------------------------- */
.bz-account-me { padding-top: max(28px, env(safe-area-inset-top)); }
.bz-account-email { font-size: 14px; color: var(--bz-muted); margin: 8px 0 0; word-break: break-all; }
.bz-account-type { display: inline-block; font-size: 13px; color: var(--bz-muted); }
.bz-account-type-row {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 6px;
    flex-wrap: wrap; justify-content: center;
}
.bz-account-share {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bz-surface-alt); color: var(--bz-accent);
    border: 0; border-radius: 999px; padding: 5px 12px;
    font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
}
.bz-account-share svg { width: 14px; height: 14px; }
.bz-account-share:hover { background: rgba(108, 92, 231, 0.12); }

.bz-acct-menu {
    margin: 26px auto 0; max-width: 460px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 16px; overflow: hidden;
}
.bz-acct-row {
    display: flex; align-items: center; gap: 14px; width: 100%;
    padding: 17px 16px; background: transparent; border: 0; font-family: inherit;
    color: var(--bz-text); font-size: 15.5px; font-weight: 600; text-align: start; cursor: pointer;
    border-bottom: 1px solid var(--bz-border);
}
.bz-acct-menu .bz-acct-row:last-child { border-bottom: 0; }
.bz-acct-ic { display: inline-flex; color: var(--bz-text); flex-shrink: 0; }
.bz-acct-ic svg { width: 23px; height: 23px; fill: none; stroke: currentColor; }
.bz-acct-label { flex: 1; min-width: 0; }
.bz-acct-go { display: inline-flex; color: var(--bz-faint); flex-shrink: 0; }
.bz-acct-go svg { width: 18px; height: 18px; }
.bz-acct-row-danger { color: #e0433f; }
.bz-acct-row-danger .bz-acct-ic { color: #e0433f; }

/* ----------------------------- ترويسة فرعية بعنوان موسّط ----------------------------- */
/* sticky لا relative: كلاهما يرسّخ العنوان المطلق، لكن relative مع
   body.bz-has-appbar .bz-subhead { top:52px } يُزاح 52px فوق المحتوى فيبتلع نقراته */
.bz-subhead-center { position: sticky; justify-content: flex-start; }
.bz-subhead-center .bz-subhead-title {
    position: absolute; inset-inline: 52px; text-align: center; pointer-events: none;
    font-size: 17px; font-weight: 800;
}

/* ----------------------------- التجار الذين أتابعهم ----------------------------- */
.bz-follow-list { display: flex; flex-direction: column; }
.bz-follow-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px; border-bottom: 1px solid var(--bz-border); color: var(--bz-text);
}
.bz-follow-ava { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-follow-name { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-follow-go { display: inline-flex; color: var(--bz-faint); flex-shrink: 0; }
.bz-follow-go svg { width: 18px; height: 18px; }

/* ----------------------------- تعديل الملف ----------------------------- */
.bz-editprofile { padding: 20px 18px 30px; max-width: 520px; margin: 0 auto; }
.bz-avatar-edit { position: relative; width: 120px; margin: 6px auto 26px; }
.bz-avatar-edit-img {
    width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
    background: var(--bz-surface-alt); display: flex; align-items: center; justify-content: center;
}
.bz-avatar-edit-empty { color: var(--bz-faint); }
.bz-avatar-edit-empty svg { width: 64px; height: 64px; }
.bz-avatar-cam {
    position: absolute; bottom: 2px; inset-inline-start: 2px;
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--bz-accent); border: 3px solid var(--bz-bg);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bz-avatar-cam svg { width: 20px; height: 20px; color: #fff; }
.bz-field { margin-bottom: 18px; }
.bz-field-row { display: flex; gap: 14px; }
.bz-field-row .bz-field { flex: 1; min-width: 0; }
.bz-field label { display: block; margin-bottom: 8px; font-size: 14px; color: var(--bz-muted); }
.bz-field input, .bz-field textarea, .bz-field select {
    width: 100%; background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 15px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-field input::placeholder, .bz-field textarea::placeholder { color: var(--bz-muted); }
.bz-field input:focus, .bz-field textarea:focus, .bz-field select:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-field textarea { resize: vertical; min-height: 120px; }
.bz-save-btn { margin-top: 8px; }

/* ----------------------------- زر المتابعة ----------------------------- */
.bz-follow-btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bz-accent); color: #fff;
    border: 1.5px solid var(--bz-accent); border-radius: 20px;
    padding: 9px 28px; font-size: 14px; font-weight: 800; font-family: inherit;
    line-height: 1; cursor: pointer; white-space: nowrap;
}
.bz-follow-btn .bz-follow-done { display: none; }
.bz-follow-btn.is-following { background: var(--bz-surface-alt); color: var(--bz-text); border-color: var(--bz-border); }
.bz-follow-btn.is-following .bz-follow-do { display: none; }
.bz-follow-btn.is-following .bz-follow-done { display: inline; }

/* صفحة البائع: زر تحت الاسم */
.bz-seller-header .bz-follow-btn { margin-top: 12px; min-width: 168px; }

/* الريل: زر مدمج بجانب اسم التاجر (فوق الوسائط — يبقى أبيض) */
.bz-slide-sellerrow { display: flex; align-items: center; gap: 10px; }
.bz-slide-sellerrow .bz-slide-seller { min-width: 0; }
.bz-follow-btn-sm { padding: 6px 16px; font-size: 12.5px; border-radius: 16px; flex-shrink: 0; }
.bz-slide-sellerrow .bz-follow-btn-sm.is-following { background: rgba(255,255,255,0.22); color: #fff; border-color: rgba(255,255,255,0.7); }
.bz-auth-sheet .bz-auth-form input {
    background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 14px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-auth-sheet .bz-auth-form input::placeholder { color: var(--bz-muted); }
.bz-auth-sheet .bz-auth-form input:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-auth-sheet .bz-auth-msg { color: #e0433f; font-size: 13px; text-align: center; min-height: 0; }
.bz-auth-sheet .bz-auth-msg.is-error { padding: 2px 0; }
.bz-auth-sheet .bz-auth-alt { text-align: center; font-size: 14px; color: var(--bz-muted); margin: 14px 0 2px; }
.bz-auth-sheet .bz-auth-alt a { color: var(--bz-accent); font-weight: 700; }

/* ============================================================
   ميزات إضافية: إشعارات · منتجاتي · نموذج المنتج · شارة الحساب
   ============================================================ */

/* شارة عدد الإشعارات في قائمة الحساب */
.bz-acct-badge {
    background: var(--bz-like); color: #fff; font-size: 12px; font-weight: 800;
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* ترويسة فرعية بزر إضافة في الطرف */
.bz-subhead-add {
    margin-inline-start: auto; color: #fff; background: var(--bz-accent);
    width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bz-subhead-add svg { width: 20px; height: 20px; }
.bz-subhead-center .bz-subhead-add { position: relative; z-index: 1; }

/* حالة فارغة بأيقونة */
.bz-empty-ic { display: inline-flex; color: var(--bz-faint); margin-bottom: 6px; }
.bz-empty-ic svg { width: 56px; height: 56px; stroke-width: 1.6; }

/* ----------------------------- الإشعارات ----------------------------- */
.bz-notif-list { display: flex; flex-direction: column; }
.bz-notif {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 14px 16px; border-bottom: 1px solid var(--bz-border); color: var(--bz-text); position: relative;
}
.bz-notif.is-unread { background: var(--bz-surface-alt); }
.bz-notif-ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(108,92,231,0.14); color: var(--bz-accent);
}
.bz-notif-ic svg { width: 22px; height: 22px; }
.bz-notif-like .bz-notif-ic { background: rgba(224,80,122,0.16); color: #e0507a; }
.bz-notif-follow .bz-notif-ic { background: rgba(62,142,208,0.16); color: #3e8ed0; }
.bz-notif-new_product .bz-notif-ic { background: rgba(108,92,231,0.16); color: #6c5ce7; }
.bz-notif-promo .bz-notif-ic { background: rgba(232,163,61,0.16); color: #e8a33d; }
.bz-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bz-notif-title { font-size: 14.5px; font-weight: 700; color: var(--bz-text); line-height: 1.4; }
.bz-notif-text { font-size: 13px; color: var(--bz-muted); line-height: 1.5; }
.bz-notif-time { font-size: 12px; color: var(--bz-muted); margin-top: 2px; }
.bz-notif-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--bz-accent); margin-top: 6px; }

/* ----------------------------- منتجاتي ----------------------------- */
.bz-prod-list { display: flex; flex-direction: column; }
.bz-prod {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-bottom: 1px solid var(--bz-border);
}
.bz-prod-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--bz-text); }
.bz-prod-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--bz-surface-alt); flex-shrink: 0; }
.bz-prod-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bz-prod-title {
    font-size: 14.5px; font-weight: 700; color: var(--bz-text); line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bz-prod-price { font-size: 14px; font-weight: 800; color: var(--bz-text); }
.bz-prod-onreq { color: var(--bz-wa); font-weight: 700; font-size: 13px; }
.bz-prod-stock { font-size: 12px; color: var(--bz-muted); }
.bz-prod-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.bz-prod-actions form { margin: 0; }
.bz-prod-edit, .bz-prod-del, .bz-prod-share {
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--bz-border); background: var(--bz-surface);
    display: inline-flex; align-items: center; justify-content: center; color: var(--bz-text); cursor: pointer;
}
.bz-prod-edit svg, .bz-prod-del svg, .bz-prod-share svg { width: 19px; height: 19px; }
.bz-prod-del { color: #e0433f; border-color: rgba(224,67,63,0.35); }
.bz-prod-share { color: var(--bz-accent); border-color: rgba(108,92,231,0.35); }

/* زر "تعديل التاجر" على صفحة عرض التاجر — يظهر للسوبر أدمن بجانب زر المتابعة */
.bz-body .bz-seller-edit {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px;
    background: var(--bz-surface-alt); color: var(--bz-accent);
    border: 1px solid rgba(108, 92, 231, 0.35);
    font-size: 13px; font-weight: 700;
    margin-inline-start: 8px;
}
.bz-body .bz-seller-edit svg { width: 15px; height: 15px; }
.bz-body .bz-seller-edit:hover { background: rgba(108, 92, 231, 0.12); }

/* ----------------------------- نموذج المنتج ----------------------------- */
.bz-prodform { padding: 16px 18px 30px; max-width: 560px; margin: 0 auto; }
.bz-form-error {
    margin: 12px 18px 0; max-width: 560px; background: rgba(224,67,63,0.10);
    border: 1px solid rgba(224,67,63,0.35); color: #c0392b;
    padding: 12px 14px; border-radius: 12px; font-size: 14px;
}
.bz-form-hint { font-size: 12.5px; color: var(--bz-muted); margin: -8px 0 16px; line-height: 1.6; }
.bz-opt { color: var(--bz-muted); font-weight: 400; }
.bz-prodform select {
    width: 100%; background: var(--bz-surface-alt); border: 0; border-radius: 12px;
    padding: 14px; color: var(--bz-text); font-size: 15px; font-family: inherit; outline: none;
}
.bz-prodform select:focus { box-shadow: 0 0 0 2px rgba(108,92,231,0.30); }
.bz-prodform .bz-file {
    width: 100%; background: var(--bz-surface-alt); border: 1px dashed var(--bz-border); border-radius: 12px;
    padding: 14px; color: var(--bz-muted); font-size: 13px; font-family: inherit;
}
.bz-prodform-thumb { margin-bottom: 10px; }
.bz-prodform-thumb img { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.bz-prodform-thumbs img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-thumbs .is-main { outline: 2px solid var(--bz-accent); outline-offset: -2px; }
.bz-prodform-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.bz-prodform-preview img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bz-surface-alt); }
.bz-prodform-preview .bz-prev-main { outline: 2px solid var(--bz-accent); outline-offset: -2px; }
.bz-prodform-video, .bz-prodform-preview video { width: 100%; max-height: 260px; border-radius: 12px; background: #000; margin-top: 6px; display: block; }
.bz-prodform .bz-save-btn { margin-top: 10px; }

/* ----------------------------- انضمام بائع عبر رابط (seller-join) ----------------------------- */
.bz-sellerjoin { padding: 8px 18px 30px; max-width: 460px; margin: 0 auto; }
.bz-sellerjoin-intro { text-align: center; color: var(--bz-muted); font-size: 14px; margin: 4px 0 18px; line-height: 1.7; }
.bz-join-tabs { display: flex; gap: 8px; background: var(--bz-surface-alt); border-radius: 12px; padding: 5px; margin-bottom: 22px; }
.bz-join-tab {
    flex: 1; padding: 11px 8px; border: 0; border-radius: 9px;
    background: transparent; color: var(--bz-muted); font-size: 14px; font-weight: 700; font-family: inherit;
}
.bz-join-tab.is-active { background: var(--bz-accent); color: #fff; }
.bz-join-avahint { text-align: center; margin: -18px 0 18px; }
.bz-join-avahint.is-error { color: #ff5a67; font-weight: 600; }

/* ----------------------------- تكبير صورة المنتج (Lightbox — يبقى داكناً) ----------------------------- */
.bz-act.bz-zoom svg { stroke: #fff; fill: none; }
.bz-zoom-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(0,0,0,0.96);
    display: none; touch-action: none; overscroll-behavior: contain;
}
.bz-zoom-overlay.is-open { display: block; }
.bz-zoom-stage {
    position: absolute; inset: 0; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.bz-zoom-img {
    max-width: 100%; max-height: 100%; object-fit: contain;
    transform-origin: center center; will-change: transform;
    user-select: none; -webkit-user-drag: none; touch-action: none; cursor: zoom-in;
}
.bz-zoom-close {
    position: absolute; z-index: 2; top: max(14px, env(safe-area-inset-top)); inset-inline-end: 14px;
    width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,0.5); border: 0; color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-zoom-close svg { width: 24px; height: 24px; }
.bz-zoom-controls {
    position: absolute; z-index: 2; inset-inline: 0; bottom: calc(env(safe-area-inset-bottom) + 24px);
    display: flex; justify-content: center; gap: 16px; pointer-events: none;
}
.bz-zoom-controls button {
    pointer-events: auto; width: 50px; height: 50px; border-radius: 50%;
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28); color: #fff;
    font-size: 26px; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.bz-zoom-controls button:active { background: rgba(255,255,255,0.28); }
.bz-zoom-hint {
    position: absolute; z-index: 2; inset-inline: 0; top: calc(env(safe-area-inset-top) + 64px);
    text-align: center; color: rgba(255,255,255,0.65); font-size: 13px; pointer-events: none;
}

/* ----------------- إحصائيات المتجر (لوحة التاجر) — مطابقة لـ SellerStatsScreen ----------------- */
.bz-stats { padding: 14px; }
.bz-stats-period { color: var(--bz-muted); font-size: 13px; text-align: center; margin: 0 0 12px; }

.bz-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.bz-stat-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 14px 8px;
}
.bz-stat-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 19px;
}
.bz-stat-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* أيقونات الفئة "fill" (whatsapp) يجب أن تُملأ باللون بدل الرسم بخط: يستثنى من قاعدة أعلاه */
.bz-stat-ic svg[fill="currentColor"] { fill: currentColor; stroke: none; }
.bz-stat-val { color: var(--bz-text); font-size: 20px; font-weight: 800; }
.bz-stat-lab { color: var(--bz-muted); font-size: 12px; font-weight: 600; }

.bz-stats-totals {
    display: flex; justify-content: center; gap: 10px; margin-top: 12px; flex-wrap: wrap;
}
.bz-total-chip {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 18px;
    padding: 8px 14px; color: var(--bz-text); font-size: 13px; font-weight: 700;
}
.bz-total-chip svg { width: 15px; height: 15px; color: var(--bz-accent); }
.bz-total-chip b { font-weight: 800; }

.bz-stats-sec { color: var(--bz-text); font-size: 15px; font-weight: 800; margin: 22px 0 10px; }

.bz-chart {
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 14px 8px;
}
.bz-chart-bars { display: flex; align-items: flex-end; justify-content: space-between; gap: 4px; }
.bz-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.bz-bar-val { color: var(--bz-muted); font-size: 9px; font-weight: 700; line-height: 1; height: 10px; }
.bz-bar { width: 12px; border-radius: 6px; background: var(--bz-accent); display: block; }
.bz-bar.is-empty { background: var(--bz-surface-alt); }
.bz-bar-day { color: var(--bz-muted); font-size: 10px; line-height: 1; }

.bz-top-list {
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
    padding: 0 12px;
}
.bz-top-row {
    display: flex; align-items: center; gap: 10px; padding: 12px 0;
}
.bz-top-row.has-border { border-top: 1px solid var(--bz-border); }
.bz-top-rank {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border-radius: 13px;
    background: var(--bz-surface-alt); color: var(--bz-text);
    font-size: 13px; font-weight: 800; flex: 0 0 auto;
}
.bz-top-rank.is-gold { background: var(--bz-accent); color: #fff; }
.bz-top-title { flex: 1; min-width: 0; color: var(--bz-text); font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-top-count { color: var(--bz-accent); font-size: 12px; font-weight: 800; flex: 0 0 auto; }

/* ============================================================
   Bulk Upload — رفع دفعة منتجات (مقابل AdminBulkScreen في الموبايل)
   ============================================================ */
.bz-body .bz-bulk { min-height: 100dvh; padding-bottom: 180px; /* الفوتر الثابت + شريط nav السفلي */ }
.bz-body .bz-bulk [hidden] { display: none !important; }
.bz-body .bz-bulk-step { display: none; padding: 12px; }
.bz-body .bz-bulk-step.is-active { display: block; }

/* البحث عن التاجر */
.bz-body .bz-bulk-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 12px; padding: 0 12px; height: 44px;
    margin-bottom: 12px;
}
.bz-body .bz-bulk-search-ic { color: var(--bz-muted); display: inline-flex; }
.bz-body .bz-bulk-search-ic svg { width: 18px; height: 18px; }
.bz-body .bz-bulk-search input {
    flex: 1; border: 0; outline: none; background: transparent;
    font-size: 15px; color: var(--bz-text); font-family: inherit;
}
.bz-body .bz-bulk-search-spin { display: inline-flex; }

.bz-body .bz-bulk-sellers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-body .bz-bulk-seller {
    display: flex; align-items: center; gap: 12px; padding: 10px;
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 12px; cursor: pointer;
}
.bz-body .bz-bulk-seller:active { background: var(--bz-surface-alt); }
.bz-body .bz-bulk-seller-avatar {
    width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
    background: var(--bz-surface-alt); flex: 0 0 auto;
}
.bz-body .bz-bulk-seller-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-body .bz-bulk-seller-name { color: var(--bz-text); font-weight: 700; font-size: 15px; }
.bz-body .bz-bulk-seller-meta { color: var(--bz-muted); font-size: 12px; }
.bz-body .bz-bulk-seller-go { color: var(--bz-muted); display: inline-flex; }
.bz-body .bz-bulk-seller-go svg { width: 18px; height: 18px; }

.bz-body .bz-bulk-empty {
    color: var(--bz-muted); text-align: center;
    padding: 40px 20px; font-size: 14px;
}

/* منطقة رفع الصور */
.bz-body .bz-bulk-upload {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 16px 12px;
    border-bottom: 1px solid var(--bz-border);
    margin: -12px -12px 12px;
    background: var(--bz-surface);
}
.bz-body .bz-bulk-upload .bz-btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; border-radius: 24px;
    font-weight: 800; font-size: 15px;
}
.bz-body .bz-bulk-upload .bz-btn-primary svg { width: 20px; height: 20px; }
.bz-body .bz-bulk-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--bz-text); font-weight: 700; }
.bz-body .bz-bulk-hint { color: var(--bz-muted); font-size: 12px; margin: 0; }

.bz-body .bz-bulk-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    margin-bottom: 12px;
}
.bz-body .bz-bulk-thumb {
    position: relative; aspect-ratio: 1;
    background: var(--bz-surface-alt); border-radius: 10px; overflow: hidden;
}
.bz-body .bz-bulk-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bz-body .bz-bulk-thumb-del {
    position: absolute; top: 4px; inset-inline-start: 4px;
    background: rgba(0, 0, 0, 0.6); color: #fff;
    border: 0; border-radius: 11px;
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.bz-body .bz-bulk-thumb-del svg { width: 14px; height: 14px; }
.bz-body .bz-bulk-grid-empty { padding: 24px 12px; }

/* بطاقات التفاصيل */
.bz-body .bz-bulk-cards { display: flex; flex-direction: column; gap: 12px; }
.bz-body .bz-bulk-card {
    background: var(--bz-surface); border: 1px solid var(--bz-border);
    border-radius: 14px; padding: 10px;
}
.bz-body .bz-bulk-card-head { display: flex; gap: 10px; }
.bz-body .bz-bulk-card-thumb {
    width: 76px; height: 76px; border-radius: 10px;
    object-fit: cover; background: var(--bz-surface-alt); flex: 0 0 auto;
}
.bz-body .bz-bulk-card-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bz-body .bz-bulk-card-row { display: flex; gap: 8px; }
.bz-body .bz-bulk-card input,
.bz-body .bz-bulk-card textarea {
    background: var(--bz-bg); border: 1px solid var(--bz-border);
    border-radius: 10px; padding: 9px 12px; font-size: 14px;
    color: var(--bz-text); font-family: inherit; width: 100%;
    outline: none;
}
.bz-body .bz-bulk-card input:focus,
.bz-body .bz-bulk-card textarea:focus { border-color: var(--bz-accent); }
.bz-body .bz-bulk-card-row input { flex: 1; min-width: 0; }
.bz-body .bz-bulk-card textarea { margin-top: 8px; min-height: 60px; resize: vertical; }
.bz-body .bz-bulk-card-del {
    display: inline-flex; align-items: center; gap: 4px;
    background: transparent; border: 0; padding: 4px;
    color: var(--bz-like); font-size: 13px; font-weight: 700;
    margin-top: 8px;
}
.bz-body .bz-bulk-card-del svg { width: 15px; height: 15px; }

.bz-body .bz-bulk-card-apply {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 10px; padding-top: 10px;
    border-top: 1px dashed var(--bz-border);
}
.bz-body .bz-bulk-apply-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: color-mix(in srgb, var(--bz-accent) 12%, transparent);
    color: var(--bz-accent); border: 1px solid var(--bz-accent);
    border-radius: 20px; padding: 7px 14px;
    font-size: 13px; font-weight: 800; font-family: inherit;
}
.bz-body .bz-bulk-apply-btn svg { width: 15px; height: 15px; }
.bz-body .bz-bulk-apply-undo {
    background: transparent; border: 0; padding: 6px 4px;
    color: var(--bz-muted); font-size: 13px; font-weight: 700;
    font-family: inherit; text-decoration: underline;
}
.bz-body .bz-bulk-apply-hint {
    flex: 1 1 100%; color: var(--bz-muted); font-size: 11px; line-height: 1.5;
}

/* الفوتر الثابت — فوق شريط التنقل السفلي (bz-bottomnav: 72px + safe-area) */
.bz-body .bz-bulk-footer {
    position: fixed;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    inset-inline: 0;
    max-width: 680px; margin: 0 auto;
    background: var(--bz-surface);
    border-top: 1px solid var(--bz-border);
    padding: 12px;
    z-index: 61; /* أعلى من bz-bottomnav (60) */
}
.bz-body .bz-bulk-step-3 .bz-bulk-footer,
.bz-body .bz-bulk-step-2 .bz-bulk-footer { display: block; }
.bz-body .bz-bulk-step-1 .bz-bulk-footer { display: none; }
.bz-body .bz-bulk-footer .bz-btn-block { padding: 14px; font-size: 16px; font-weight: 800; }
.bz-body .bz-bulk-footer .bz-btn-block:disabled { opacity: 0.5; }
.bz-body .bz-bulk-footer-hint { color: var(--bz-muted); font-size: 11px; text-align: center; margin: 6px 0 0; }

/* دوّار خفيف مشترك */
.bz-body .bz-spinner {
    display: inline-block; width: 14px; height: 14px;
    border: 2px solid var(--bz-surface-alt); border-top-color: var(--bz-accent);
    border-radius: 50%; animation: bz-spin 0.8s linear infinite;
}
@keyframes bz-spin { to { transform: rotate(360deg); } }

/* زر تعديل داخل شريط الريل (بجانب like/share) */
.bz-body .bz-slide-actions .bz-edit { color: #fff; }
.bz-body .bz-slide-actions .bz-edit svg { width: 26px; height: 26px; }

/* زر حذف داخل رأس نموذج التعديل */
.bz-body .bz-subhead-action {
    position: absolute; top: 50%; inset-inline-end: 10px; transform: translateY(-50%);
    margin: 0;
}
.bz-body .bz-btn-icon {
    background: transparent; border: 0; padding: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--bz-text);
}
.bz-body .bz-btn-icon.bz-btn-danger { color: var(--bz-like); }
.bz-body .bz-btn-icon svg { width: 22px; height: 22px; }
.bz-body .bz-subhead-center { position: sticky; }

/* ═══════════ بحث بالصورة (شازام) — زر الكاميرا + النتائج ═══════════ */
.bz-body .bz-searchhead-cam,
.bz-body .bz-topbar-cam {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 12px;
    background: var(--bz-accent); color: #fff; border: 0;
}
.bz-body .bz-searchhead-cam svg,
.bz-body .bz-topbar-cam svg { width: 20px; height: 20px; }
.bz-body .bz-topbar-cam { text-decoration: none; }

.bz-body .bz-imgsearch { padding: 12px 14px 90px; }
.bz-body .bz-imgsearch-banner {
    display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 10px;
    background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px;
}
.bz-body .bz-imgsearch-thumb {
    width: 52px; height: 52px; border-radius: 10px; object-fit: cover;
    background: var(--bz-surface-alt); flex-shrink: 0;
}
.bz-body .bz-imgsearch-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bz-body .bz-imgsearch-kicker { color: var(--bz-accent); font-size: 13px; font-weight: 800; }
.bz-body .bz-imgsearch-caption { color: var(--bz-muted); font-size: 13px; line-height: 1.4; }
.bz-body .bz-imgsearch-close {
    flex-shrink: 0; background: transparent; border: 0; color: var(--bz-muted);
    display: inline-flex; padding: 4px;
}
.bz-body .bz-imgsearch-close svg { width: 22px; height: 22px; }
.bz-body .bz-imgsearch-empty { text-align: center; padding: 40px 24px; color: var(--bz-muted); }
.bz-body .bz-imgsearch-empty-ic { display: inline-flex; color: var(--bz-faint); margin-bottom: 10px; }
.bz-body .bz-imgsearch-empty-ic svg { width: 46px; height: 46px; }
.bz-body .bz-imgsearch-empty p { margin: 0 0 16px; font-size: 14px; line-height: 1.6; }
.bz-body .bz-imgsearch-retry { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 11px 22px; }
.bz-body .bz-imgsearch-retry svg { width: 18px; height: 18px; }

/* ═══════════ هياكل تحميل (skeleton) بوميض ═══════════ */
.bz-body .bz-skel-grid {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; row-gap: 2px;
}
.bz-body .bz-skel-card {
    display: block; aspect-ratio: 1 / 1.42;
    background: linear-gradient(100deg, var(--bz-surface-alt) 30%, var(--bz-surface) 50%, var(--bz-surface-alt) 70%);
    background-size: 200% 100%;
    animation: bz-shimmer 1.3s ease-in-out infinite;
}
@keyframes bz-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════ دعوة «افتح متجرك» في صفحة الحساب ═══════════ */
.bz-body .bz-open-shop {
    display: flex; align-items: center; gap: 12px;
    margin: 0 16px 14px; padding: 16px;
    background: var(--bz-accent); border-radius: 16px; color: #fff; text-decoration: none;
}
.bz-body a.bz-open-shop { color: #fff; }
.bz-body .bz-open-shop-ic {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 21px;
    background: rgba(255,255,255,0.18); display: inline-flex; align-items: center; justify-content: center;
}
.bz-body .bz-open-shop-ic svg { width: 22px; height: 22px; stroke: #fff; }
.bz-body .bz-open-shop-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bz-body .bz-open-shop-txt b { font-size: 16px; font-weight: 800; }
.bz-body .bz-open-shop-txt small { font-size: 12px; color: rgba(255,255,255,0.85); }
.bz-body .bz-open-shop-go { flex-shrink: 0; display: inline-flex; opacity: 0.9; }
.bz-body .bz-open-shop-go svg { width: 20px; height: 20px; stroke: #fff; }

.bz-body .bz-account-note {
    margin: 10px 24px 0; color: var(--bz-muted); font-size: 13px; text-align: center; line-height: 1.6;
}

/* ═══════════ نموذج «افتح متجرك» ═══════════ */
.bz-body .bz-openshop-form { padding: 8px 18px 40px; max-width: 520px; margin: 0 auto; }
.bz-body .bz-openshop-hero { text-align: center; margin: 8px 0 22px; }
.bz-body .bz-openshop-hero-ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 32px; background: var(--bz-accent); margin-bottom: 12px;
}
.bz-body .bz-openshop-hero-ic svg { width: 30px; height: 30px; stroke: #fff; }
.bz-body .bz-openshop-hero-title { margin: 0; font-size: 19px; font-weight: 800; color: var(--bz-text); }
.bz-body .bz-openshop-hero-sub { margin: 6px 0 0; color: var(--bz-muted); font-size: 13px; line-height: 1.5; }
.bz-body .bz-req { color: var(--bz-like); }
.bz-body .bz-opt { color: var(--bz-muted); font-weight: 400; font-size: 12px; }

/* ═══════════ بوابة اختيار المحافظة (معطّلة افتراضياً) ═══════════ */
.bz-body.bz-province-page { background: #15103a; }
.bz-body .bz-province-gate {
    min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; padding: 32px 22px 26px;
    background: linear-gradient(135deg, #15103a, #241a5e 55%, #1c2a66);
    color: #fff;
}
.bz-body .bz-province-top { text-align: center; margin-bottom: 6px; }
.bz-body .bz-province-logo { width: 92px; height: auto; margin: 8px auto 14px; }
.bz-body .bz-province-title { margin: 0; font-size: 24px; font-weight: 800; }
.bz-body .bz-province-sub { margin: 8px 0 0; color: #d6d0ee; font-size: 14px; line-height: 1.5; }
.bz-body .bz-province-form { display: flex; flex-direction: column; flex: 1; }
.bz-body .bz-province-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 auto;
}
.bz-body .bz-province-chip {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 14px 12px; border-radius: 14px; cursor: pointer; text-align: center;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
    color: #e7e2ff; font-size: 15px; font-weight: 700;
}
.bz-body .bz-province-chip.is-active { background: rgba(108,92,231,0.55); border-color: #fff; color: #fff; font-weight: 800; }
.bz-body .bz-province-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.bz-body .bz-province-btn {
    margin-top: 18px; background: #fff; color: #241a5e; border: 0; border-radius: 26px;
    padding: 15px; font-size: 16px; font-weight: 800; font-family: inherit; cursor: pointer;
}
.bz-body .bz-province-btn:disabled { opacity: 0.5; cursor: default; }


/* ════════════════════════ استوديو AI (نظير AiStudioScreen) ════════════════════════ */
/* حاسم: عناصر الاستوديو تُبدَّل عبر خاصية hidden، لكن أصنافها تضبط display صراحةً
   (يتجاوز [hidden] الافتراضي) → نُجبر hidden على الفوز دائماً (يمنع ظهور المودال/العارض عند التحميل). */
.bz-ai [hidden], .bz-ai-viewer[hidden], .bz-ai-modal[hidden], .bz-ai-preview[hidden] { display: none !important; }
.bz-ai-credit { display: inline-flex; align-items: center; gap: 4px; background: var(--bz-accent); color: #fff; padding: 5px 10px; border-radius: 14px; font-weight: 800; font-size: 13px; }
.bz-ai-credit svg { width: 13px; height: 13px; }
.bz-ai-loading { display: flex; justify-content: center; padding: 60px 0; }
.bz-ai-body { padding-bottom: 30px; }

.bz-ai-images { display: flex; gap: 10px; padding: 8px 14px 0; }
.bz-ai-imgbox { position: relative; flex: 1; aspect-ratio: 0.8; border-radius: 14px; overflow: hidden; background: var(--bz-surface); border: 1px solid var(--bz-border); padding: 0; cursor: pointer; }
.bz-ai-imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bz-ai-imgph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--bz-muted); font-size: 12px; text-align: center; padding: 10px; }
.bz-ai-imgph svg { width: 40px; height: 40px; color: var(--bz-faint); }
.bz-ai-busy { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--bz-muted); font-size: 12px; text-align: center; background: var(--bz-surface); }
.bz-ai-imglabel { position: absolute; top: 8px; inset-inline-start: 8px; background: rgba(0,0,0,0.55); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.bz-ai-imglabel-after { background: var(--bz-accent); }

.bz-ai-result-actions { display: flex; gap: 10px; margin: 12px 14px 0; }
.bz-ai-result-actions .bz-btn { flex: 1; }
.bz-ai-use { background: var(--bz-wa); color: #fff; border: 0; }
.bz-ai-download { background: var(--bz-surface); color: var(--bz-accent); border: 1.5px solid var(--bz-accent); }

.bz-ai-warn { display: flex; align-items: center; gap: 8px; background: #FEF3C7; color: #92400E; margin: 12px 14px 0; padding: 12px; border-radius: 12px; font-size: 13px; }
.bz-ai-warn svg { width: 18px; height: 18px; flex-shrink: 0; }

.bz-ai-section { color: var(--bz-text); font-size: 15px; font-weight: 800; margin: 18px 16px 10px; }
.bz-ai-custom { margin: 0 14px; background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bz-ai-custom textarea { width: 100%; border: 0; background: transparent; color: var(--bz-text); font: inherit; font-size: 14px; resize: vertical; min-height: 54px; outline: none; }

.bz-ai-grid { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px; }
.bz-ai-chip { background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 14px; padding: 10px 13px; color: var(--bz-text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bz-ai-chip.is-active { background: var(--bz-accent); border-color: var(--bz-accent); color: #fff; }
.bz-ai-chip.is-disabled { opacity: 0.5; pointer-events: none; }

.bz-ai-second { display: flex; align-items: center; gap: 8px; margin: 12px 14px 0; padding: 12px; width: calc(100% - 28px); background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 12px; color: var(--bz-muted); font: inherit; font-size: 13px; cursor: pointer; text-align: start; }
.bz-ai-second svg { width: 18px; height: 18px; flex-shrink: 0; }
.bz-ai-second.is-ready { color: var(--bz-wa); }
.bz-ai-second.is-ready svg { color: var(--bz-wa); }

.bz-ai-collapse { display: flex; align-items: center; gap: 8px; margin: 18px 14px 0; padding: 12px; width: calc(100% - 28px); background: var(--bz-surface); border: 1px solid var(--bz-border); border-radius: 12px; color: var(--bz-text); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.bz-ai-collapse span:nth-of-type(1) { flex: 1; text-align: start; }
.bz-ai-chev { width: 18px; height: 18px; transition: transform 0.2s; }
.bz-ai-collapse.is-open .bz-ai-chev { transform: rotate(90deg); }
.bz-ai-count { background: var(--bz-surface-alt); color: var(--bz-muted); min-width: 22px; text-align: center; border-radius: 11px; padding: 1px 6px; font-size: 13px; font-weight: 700; }
#bzAiShoesGrid { margin-top: 10px; }

.bz-ai-viewer { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,0.95); display: flex; flex-direction: column; }
.bz-ai-viewer-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; }
.bz-ai-viewer-btn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; background: transparent; border: 0; cursor: pointer; }
.bz-ai-viewer-btn svg { width: 26px; height: 26px; }
.bz-ai-viewer img { flex: 1; width: 100%; object-fit: contain; min-height: 0; }

.bz-ai-modal { position: fixed; inset: 0; z-index: 3100; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; padding: 24px; }
.bz-ai-modal-card { width: 100%; max-width: 420px; background: var(--bz-surface); border-radius: 18px; padding: 20px; }
.bz-ai-modal-card h3 { color: var(--bz-text); font-size: 17px; font-weight: 800; margin: 0; text-align: start; }
.bz-ai-modal-sub { color: var(--bz-muted); font-size: 13px; margin: 6px 0 0; line-height: 1.5; text-align: start; }
.bz-ai-modal-card input { width: 100%; background: var(--bz-surface-alt); border: 0; border-radius: 12px; padding: 12px 14px; color: var(--bz-text); font: inherit; font-size: 15px; margin-top: 14px; outline: none; }
.bz-ai-modal-row { display: flex; gap: 10px; margin-top: 16px; }
.bz-ai-modal-row .bz-btn { flex: 1; }

/* زر «حسّن الصورة» في فورم المنتج */
.bz-ai-enhance { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px; background: var(--bz-accent); color: #fff; border-radius: 12px; font-weight: 800; font-size: 14px; text-decoration: none; }
.bz-ai-enhance svg { width: 18px; height: 18px; }
.bz-ai-preview img { width: 100%; max-height: 260px; object-fit: contain; border-radius: 12px; background: var(--bz-surface-alt); }

/* ===================== شريط تحميل التطبيق (أعلى كل الصفحات) ===================== */
/* لاصق فوق كل شيء؛ نُزيح العناصر اللاصقة الأخرى بمقدار ارتفاعه حتى لا تختفي تحته. */
.bz-appbar {
    position: sticky; top: 0; z-index: 60;
    background: linear-gradient(90deg, #5B3FD6 0%, #7C63F0 100%);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.bz-appbar-in {
    max-width: 680px; margin: 0 auto;
    display: flex; flex-direction: row-reverse; align-items: center; gap: 10px;
    padding: 8px 12px;
}
.bz-appbar-icon { border-radius: 8px; flex: 0 0 auto; background: #fff; }
.bz-appbar-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; text-align: right; }
.bz-appbar-txt strong { font-size: 13.5px; font-weight: 800; line-height: 1.35; }
.bz-appbar-txt span { font-size: 11.5px; opacity: .92; line-height: 1.4; }
.bz-appbar-btn {
    flex: 0 0 auto; background: #fff !important;
    /* نحصّن اللون: بعض القواعد العامة للروابط داخل الأسطح الملوّنة تجعله أبيض فيختفي */
    color: #5B3FD6 !important;
    -webkit-text-fill-color: #5B3FD6;
    font-size: 13.5px; font-weight: 800; line-height: 1.2; text-decoration: none;
    padding: 9px 18px; border-radius: 999px; border: 0; white-space: nowrap;
    display: inline-flex; align-items: center; justify-content: center;
}
.bz-appbar-btn:hover, .bz-appbar-btn:visited, .bz-appbar-btn:active {
    color: #5B3FD6 !important; -webkit-text-fill-color: #5B3FD6;
}
.bz-appbar-btn:active { transform: scale(.97); }

/* إزاحة العناصر اللاصقة الأخرى تحت الشريط */
body.bz-has-appbar { --bz-appbar-h: 52px; }
body.bz-has-appbar .bz-topbar,
body.bz-has-appbar .bz-subhead { top: var(--bz-appbar-h); }
body.bz-has-appbar .bz-catbar,
body.bz-has-appbar .bz-searchbar { top: calc(52px + var(--bz-appbar-h)); }
/* مشغّل الريلز يملأ الشاشة — لا شريط فوقه */
body.bz-reels .bz-appbar { display: none; }
