/*
///////////////////////////////////////
//            Copyright ®            //
//        Eng . Faraj AlMasri        //
//          info@astjo.com           //
//   Advanced systems Technology     //
//             Jordan                //
//          +962788077780            //
//   Copyright ©  www astjo.com      //
///////////////////////////////////////
Author: Shark Social Messenger Team By  Engineer Faraj Al Masri مؤسسة ضفاف الأردن للتقنيات المتقدمة
Author URL: http://www.ASTJO.com
License: Creative Commons ASTJO 4.9 Professional Since 2013
License URL: http://ASTJO.com
*/

/* ============================================================
   ALBAY® Design System — مشتق من الهوية الرسمية للشعار
   الألوان: أزرق #2563EB → بنفسجي #7C3AED (تدرج معدني)
   ============================================================ */
:root {
    --albay-blue: #2563eb;
    --albay-blue-dark: #1d4ed8;
    --albay-purple: #7c3aed;
    --albay-purple-dark: #6d28d9;
    --albay-navy: #171833;
    --albay-navy-2: #1e1f3d;
    --albay-gradient: linear-gradient(120deg, #2563eb 0%, #4f46e5 50%, #7c3aed 100%);
    --albay-gradient-soft: linear-gradient(120deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .08));
    --albay-bg: #f5f6fa;
    --albay-card: #ffffff;
    --albay-text: #1e2135;
    --albay-muted: #6b7280;
    --albay-border: #e6e8f0;
    --albay-success: #16a34a;
    --albay-danger: #dc2626;
    --albay-warning: #f59e0b;
    --albay-radius: 14px;
    --albay-shadow: 0 4px 18px rgba(23, 24, 51, .07);
    --albay-shadow-lg: 0 10px 34px rgba(23, 24, 51, .13);
}

/* ---------- الأساسيات ---------- */
body.albay-store {
    background: var(--albay-bg);
    color: var(--albay-text);
    font-family: "Segoe UI", Tahoma, "Noto Kufi Arabic", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1 0 auto; }
a { text-decoration: none; }
.text-gradient {
    background: var(--albay-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.btn-albay {
    background: var(--albay-gradient);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    transition: .25s;
    box-shadow: 0 4px 14px rgba(79, 70, 229, .30);
}
.btn-albay:hover, .btn-albay:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(79, 70, 229, .40);
}
.btn-albay:disabled { opacity: .55; transform: none; }
.btn-outline-albay {
    border: 1.5px solid var(--albay-blue);
    color: var(--albay-blue);
    border-radius: 10px;
    font-weight: 600;
    background: transparent;
    transition: .2s;
}
.btn-outline-albay:hover { background: var(--albay-blue); color: #fff; }
.btn-outline-albay.active { background: var(--albay-gradient); border-color: transparent; color: #fff; }

/* ---------- الهيدر ---------- */
.top-bar {
    background: var(--albay-navy);
    color: #c7cbe8;
    font-size: .82rem;
    padding: .38rem 0;
}
.top-bar a { color: #c7cbe8; }
.top-bar a:hover { color: #fff; }
.main-header {
    background: #fff;
    border-bottom: 1px solid var(--albay-border);
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 10px rgba(23, 24, 51, .05);
}
.brand-logo { height: 86px; width: auto; object-fit: contain; border-radius: 16px; }
.header-search .form-control {
    border-radius: 10px 0 0 10px;
    border-color: var(--albay-border);
    padding: .62rem .9rem;
}
.header-search .btn {
    border-radius: 0 10px 10px 0;
    padding-inline: 1.1rem;
}
[dir="ltr"] .header-search .form-control { border-radius: 0 10px 10px 0; }
[dir="ltr"] .header-search .btn { border-radius: 10px 0 0 10px; }
.header-actions .action-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    color: var(--albay-text);
    font-size: .72rem;
    gap: 2px;
    position: relative;
    padding: .2rem .5rem;
    border-radius: 8px;
}
.header-actions .action-link:hover { color: var(--albay-blue); }
.header-actions .action-link i { font-size: 1.25rem; }
.badge-cart {
    position: absolute;
    top: -4px;
    inset-inline-end: -2px;
    background: var(--albay-gradient);
    color: #fff;
    border-radius: 50px;
    font-size: .62rem;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    font-weight: 700;
}
.nav-categories {
    background: #fff;
    border-bottom: 1px solid var(--albay-border);
}
/* زر قائمة الموبايل — أول عنصر يمين-أعلى (نفس موضع زر لوحة التحكم) */
.drawer-opener {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    font-size: 1.55rem;
    color: var(--albay-navy);
    background: var(--albay-gradient-soft);
    border: 1px solid var(--albay-border);
    border-radius: 10px;
    transition: color .18s, background .18s, border-color .18s;
    flex: 0 0 auto;
}
.drawer-opener:hover, .drawer-opener:focus {
    color: #fff;
    background: var(--albay-gradient);
    border-color: transparent;
}
.nav-categories .nav-link {
    color: var(--albay-text);
    font-weight: 600;
    font-size: .9rem;
    padding: .65rem .9rem;
    border-radius: 8px;
    white-space: nowrap;
}
.nav-categories .nav-link:hover, .nav-categories .nav-link.active { color: var(--albay-blue); background: var(--albay-gradient-soft); }
/* [v26.1] شريط الأقسام على المتصفح — تصغير متناسق ليبقى بسطر واحداً بدل النزول لسطر ثانٍ
   (الموبايل غير متأثر إطلاقاً: nav نفسه مخفي تحت 992px وكل شيء في القائمة المنزلقة)
   مقاسات مدروسة بالقياس الفعلي: تسع 11 رابطاً ضمن حاوية 1140px مع هامش أمان */
@media (min-width: 992px) {
    .nav-cats-row { gap: 0; }
    .nav-categories .nav-link {
        font-size: .8rem;
        padding: .5rem .4rem;
    }
    .nav-categories .nav-link i { margin-inline-end: .15rem !important; }
    .nav-categories .dropdown-toggle::after { margin-inline-start: .1em; }
}
/* [إصلاح] قوائم الأقسام الفرعية تظهر كطبقة خارجية فوق الصفحة (مثل منيو الموبايل) — لا تُقص داخل الهيدر */
.nav-cats-row { overflow: visible; }
.nav-categories .dropdown-menu {
    z-index: 1045;
    margin-top: .45rem;
    min-width: 235px;
    padding: .45rem;
    border-radius: 12px;
    border: 1px solid var(--albay-border);
    box-shadow: var(--albay-shadow-lg);
    animation: navDrop .18s ease both;
}
.nav-categories .dropdown-item {
    border-radius: 8px;
    padding: .55rem .8rem;
    font-weight: 600;
    font-size: .88rem;
    color: var(--albay-text);
}
.nav-categories .dropdown-item:hover, .nav-categories .dropdown-item:focus {
    background: var(--albay-gradient-soft);
    color: var(--albay-blue);
}
@keyframes navDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- الهيرو والبانرات ---------- */
.hero-slider { border-radius: var(--albay-radius); overflow: hidden; box-shadow: var(--albay-shadow); }
.hero-slide {
    /* [2.8] ارتفاع ثابت نهائياً — لا يتغير مهما كانت الصورة أو طول النص
       [v26.1] خُفّض الارتفاع 330→296 (طلب المالك: الارتفاع عالي شوي) */
    height: 296px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--albay-navy);
    color: #fff;
}
.hero-slide .hero-art {
    position: absolute;
    inset: 0;
    background: var(--albay-gradient);
    opacity: .92;
}
/* [2.7] درجات خلفيات البنرات — بنية واحدة ثابتة، درجات مشتقة من ألوان اللوجو (أزرق ← بنفسجي) */
.hero-grad-0 .hero-art { background: linear-gradient(120deg, #1d4ed8 0%, #4f46e5 50%, #7c3aed 100%); }
.hero-grad-1 .hero-art { background: linear-gradient(120deg, #1e3a8a 0%, #3730a3 50%, #6d28d9 100%); }
.hero-grad-2 .hero-art { background: linear-gradient(120deg, #2563eb 0%, #4338ca 50%, #8b5cf6 100%); }
.hero-grad-3 .hero-art { background: linear-gradient(120deg, #1a34c4 0%, #4032c8 50%, #7e22ce 100%); }
.hero-grad-4 .hero-art { background: linear-gradient(120deg, #1533a8 0%, #3b3ab8 50%, #6b21a8 100%); }
.hero-grad-5 .hero-art { background: linear-gradient(120deg, #2b46e0 0%, #4c3ee0 50%, #9333ea 100%); }
.hero-slide .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 30%, rgba(255,255,255,.18), transparent 45%);
}
.hero-slide .container { position: relative; z-index: 2; }
/* [v26.1] النصوص مقيدة بعدد أسطر — البنر لا يتمدد مهما زادت الكتابة (كبر شكوى المالك من التمدد) */
.hero-slide h2 {
    font-weight: 800;
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}
.hero-slide p {
    color: #e0e2ff;
    font-size: clamp(.92rem, 1.4vw, 1.05rem);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* السلايد قابل للنقر بالكامل + شارة اللوجو */
.hero-slide-link { position: absolute; inset: 0; z-index: 2; }
.hero-slide-link:focus-visible { outline: 3px solid rgba(255,255,255,.7); outline-offset: -3px; z-index: 5; }
.banner-logo-chip {
    position: absolute;
    top: 18px;
    inset-inline-start: 22px;
    background: transparent;
    border-radius: 14px;
    padding: 0;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}
.banner-logo-chip img { height: 66px; width: auto; display: block; border-radius: 12px; }
/* [2.8] الصورة الجانبية: طبقة مطلقة بارتفاع البنر كاملاً (من أعلى لأسفل) — خارجة عن تدفق النص فلا تكبّر البنر أبداً */
.hero-side {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 0;
    width: min(40%, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
    line-height: 0;
}
.hero-side img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 12px 30px rgba(0,0,0,.45));
}
.hero-side img.hero-side-fallback { filter: drop-shadow(0 10px 30px rgba(0,0,0,.4)); }
/* [v26.1] حشوات الجسم مخفّضة مع الارتفاع الجديد (96px يزاحم أرضية شارة اللوجو 84px بمارجن آمن) */
.hero-slide .hero-body { padding-top: 96px; padding-bottom: 2rem; }

/* [2.9] نوافذ التعديل المغلّفة بـ<form>: بدون هذا كان محتوى النافذة الطويل (موبايل) يدفع
   شريط «حفظ التعديلات» خارج حدود النافذة فيُقص ويختفي — الفورم نفسه يصير العمود المرن */
.modal-content > form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
}
.modal-content > form > .modal-body {
    overflow-y: auto;
    min-height: 0;
}
.modal-content > form > .modal-footer { flex-shrink: 0; }

/* [2.9] صناديق رفع الصور البارزة داخل لوحة التحكم */
.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    border: 2px dashed #c9cdea;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    background: #f8f9fe;
    transition: border-color .15s, background .15s;
    margin-bottom: .5rem;
}
.upload-box:hover, .upload-box.dragover { border-color: var(--albay-blue); background: var(--albay-gradient-soft); }
.upload-box i { font-size: 1.6rem; color: var(--albay-blue); line-height: 1; }
.upload-box .upload-title { font-weight: 700; font-size: .85rem; }
.upload-box .upload-hint { font-size: .72rem; color: var(--albay-muted); }
.upload-box .file-name { color: var(--albay-blue); font-size: .78rem; font-weight: 600; word-break: break-all; min-height: 1em; }

/* [3.0] كابتشا التسجيل — أرقام فقط، ناعمة وسلسة وواضحة */
.captcha-card {
    display: flex;
    gap: .75rem;
    align-items: stretch;
    background: #f8f9fe;
    border: 1px solid var(--albay-border);
    border-radius: 14px;
    padding: .75rem;
}
.captcha-img-wrap { line-height: 0; flex-shrink: 0; }
.captcha-img-wrap img { border-radius: 10px; border: 1px solid #e3e6f4; display: block; transition: opacity .2s; }
/* [3.0] زر التحديث عنصر مستقل بجانب الصورة — خارجها تماماً حتى لا يغطي أي رقم */
.captcha-refresh {
    flex-shrink: 0;
    align-self: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #e3e6f4;
    background: #ffffff;
    color: var(--albay-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(29,78,216,.14);
    cursor: pointer;
    transition: transform .25s, color .15s, box-shadow .2s;
    padding: 0;
}
.captcha-refresh:hover { transform: rotate(120deg); color: var(--albay-violet, #6d28d9); box-shadow: 0 3px 10px rgba(109,40,217,.22); }
.captcha-input-wrap { display: flex; flex-direction: column; justify-content: center; line-height: 1.4; }
@media (max-width: 575.98px) {
    .captcha-card { flex-direction: column; align-items: center; gap: .6rem; }
    .captcha-refresh { width: 42px; height: 42px; font-size: 1.2rem; }
    .captcha-input-wrap { width: 100%; }
    .captcha-input-wrap .form-control { text-align: center; font-size: 1.05rem; letter-spacing: .3em; }
}

/* ---------- الأقسام ---------- */
/* صف منتجات القسم: تمرير أفقي */
.cat-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: .25rem .25rem 1rem;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}
.cat-row-item { flex: 0 0 230px; scroll-snap-align: start; }
.cat-row-item > [class*="col-"] { width: 100%; max-width: 100%; flex: 1 1 auto; padding-inline: 0; margin-bottom: 0; }
.cat-row-item .product-card { height: 100%; }
.section-title {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.section-title::before {
    content: "";
    width: 6px;
    height: 26px;
    border-radius: 4px;
    background: var(--albay-gradient);
    flex-shrink: 0;
}
.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    background: var(--albay-card);
    border: 1px solid var(--albay-border);
    border-radius: var(--albay-radius);
    padding: 1.1rem .6rem;
    transition: .22s;
    height: 100%;
}
.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--albay-shadow-lg);
    border-color: rgba(79, 70, 229, .35);
}
.category-card .cat-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--albay-gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--albay-purple);
}
.category-card .cat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.category-card strong { font-size: .86rem; text-align: center; color: var(--albay-text); }

/* ---------- كروت المنتجات ---------- */
.product-card {
    background: var(--albay-card);
    border: 1px solid var(--albay-border);
    border-radius: var(--albay-radius);
    overflow: hidden;
    transition: .22s;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--albay-shadow-lg);
    border-color: rgba(79, 70, 229, .3);
}
.product-card .product-thumb {
    position: relative;
    padding-top: 100%;
    background: #fafbff;
    overflow: hidden;
}
.product-card .product-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: .8rem;
    transition: .3s;
}
.product-card:hover .product-thumb img { transform: scale(1.05); }
.product-card .product-badges {
    position: absolute;
    top: .6rem;
    inset-inline-start: .6rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    z-index: 2;
}
.product-card .product-actions {
    position: absolute;
    top: .6rem;
    inset-inline-end: .6rem;
    display: flex;
    flex-direction: column;
    gap: .35rem;
    z-index: 2;
    opacity: 0;
    transform: translateX(6px);
    transition: .22s;
}
.product-card:hover .product-actions { opacity: 1; transform: none; }
[dir="rtl"] .product-card .product-actions { transform: translateX(-6px); }
.product-card .product-actions button, .product-card .product-actions a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    border: 1px solid var(--albay-border);
    color: var(--albay-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    box-shadow: var(--albay-shadow);
}
.product-card .product-actions button:hover, .product-card .product-actions a:hover { background: var(--albay-blue); color: #fff; border-color: var(--albay-blue); }
.product-card .product-actions button.is-fav { background: #fee2e2; color: #dc2626; border-color: #fecaca; }
.product-card .product-body { padding: .85rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card .product-cat { font-size: .72rem; color: var(--albay-muted); }
.product-card .product-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--albay-text);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}
.product-card:hover .product-name { color: var(--albay-blue); }
.product-card .product-price { font-weight: 800; color: var(--albay-blue); font-size: 1.02rem; }
.product-card .product-price small.old {
    color: var(--albay-muted);
    text-decoration: line-through;
    font-weight: 500;
    font-size: .78rem;
    margin-inline-start: .4rem;
}
.product-card .add-btn { width: 100%; padding: .48rem; font-size: .86rem; margin-top: auto; }
.badge-albay { background: var(--albay-gradient); color: #fff; font-size: .68rem; border-radius: 7px; padding: .3em .6em; font-weight: 700; }
.badge-discount { background: var(--albay-danger); color: #fff; font-size: .68rem; border-radius: 7px; padding: .3em .6em; font-weight: 700; }
.badge-soft { background: var(--albay-gradient-soft); color: var(--albay-purple); font-size: .68rem; border-radius: 7px; padding: .3em .6em; font-weight: 700; }
.badge-out { background: #f3f4f6; color: #6b7280; font-size: .68rem; border-radius: 7px; padding: .3em .6em; font-weight: 700; }
.wholesale-tag { color: var(--albay-purple); font-size: .72rem; font-weight: 700; }

/* ---------- صفحة المنتج ---------- */
.product-gallery .main-img {
    border-radius: var(--albay-radius);
    border: 1px solid var(--albay-border);
    background: #fff;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-gallery .main-img img { width: 100%; height: 100%; object-fit: contain; }
.product-gallery .thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.product-gallery .thumbs img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid var(--albay-border);
    background: #fff;
    cursor: pointer;
    padding: 4px;
    transition: .2s;
}
.product-gallery .thumbs img.active, .product-gallery .thumbs img:hover { border-color: var(--albay-blue); }
.qty-input { display: inline-flex; align-items: center; border: 1.5px solid var(--albay-border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-input button {
    width: 40px;
    height: 42px;
    border: none;
    background: #f8f9ff;
    color: var(--albay-text);
    font-size: 1.15rem;
    font-weight: 700;
}
.qty-input button:hover { background: var(--albay-gradient); color: #fff; }
.qty-input input {
    width: 58px;
    height: 42px;
    border: none;
    text-align: center;
    font-weight: 700;
    outline: none;
    -moz-appearance: textfield;
}
.qty-input input::-webkit-outer-spin-button, .qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.spec-table td { padding: .55rem .9rem; }
.spec-table tr:nth-child(odd) td { background: #f8f9ff; }
.rating-stars { color: #f59e0b; font-size: .9rem; }
.rating-stars .bi-star, .rating-stars .bi-star-half { margin-inline-end: 1px; }

/* ---------- السلة والدفع ---------- */
.cart-table img { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; border: 1px solid var(--albay-border); background: #fff; }
.summary-card {
    border-radius: var(--albay-radius);
    border: 1px solid var(--albay-border);
    background: #fff;
    box-shadow: var(--albay-shadow);
    position: sticky;
    top: 90px;
}
.summary-card .summary-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .95rem; }
.summary-card .summary-total { border-top: 2px dashed var(--albay-border); margin-top: .5rem; padding-top: .8rem; font-size: 1.15rem; font-weight: 800; }
.whatsapp-btn {
    background: #25d366;
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    border: none;
}
.whatsapp-btn:hover { background: #1eb757; color: #fff; }

/* ---------- الصلاحيات والتنبيهات ---------- */
.pending-notice {
    background: linear-gradient(120deg, #fff7ed, #fef3c7);
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 12px;
    padding: .9rem 1.2rem;
}
.auth-card {
    max-width: 460px;
    margin-inline: auto;
    background: #fff;
    border-radius: 18px;
    border: 1px solid var(--albay-border);
    box-shadow: var(--albay-shadow-lg);
    overflow: hidden;
}
.auth-card .auth-head {
    background: var(--albay-gradient);
    color: #fff;
    padding: 1.6rem;
    text-align: center;
}
.auth-card .auth-head img { height: 80px; }
.auth-card .auth-body { padding: 1.6rem; }
.form-control:focus, .form-select:focus {
    border-color: var(--albay-blue);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .12);
}

/* ---------- الفوتر ---------- */
.main-footer {
    background: var(--albay-navy);
    color: #b9bdd9;
    margin-top: 3rem;
    padding: 2.4rem 0 0;
    flex-shrink: 0;
}
.main-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.main-footer a { color: #b9bdd9; display: inline-block; padding: .18rem 0; }
.main-footer a:hover { color: #fff; }
.main-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: 1.8rem;
    padding: 1rem 0;
    font-size: .82rem;
}
/* [Task 83] حقوق البرمجة الثابتة ASTJO — وسط أسفل الفوتر تحت حقوق الباي والدفع عند الاستلام */
.main-footer .footer-credit {
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: .2rem;
    padding: .85rem 0 1rem;
    font-size: .8rem;
    text-align: center;
    color: #b9bdd9;
}
.footer-logo { height: 80px; }

/* [v3.20] عداد الزوار الحقيقي — صندوق مدمج تحت بيانات «تواصل معنا» مباشرة */
.footer-visitors {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .3rem;
    margin-top: .85rem;
    padding: .6rem .85rem;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 9px;
    background: rgba(255, 255, 255, .045);
    font-size: .8rem;
    color: #b9bdd9;
}
.footer-visitors-item { display: inline-flex; align-items: center; gap: .4rem; }
.footer-visitors-item i { color: #8ea2ff; font-size: .9rem; }
.footer-visitors-item strong { color: #fff; font-size: .92rem; font-weight: 700; }

/* ---------- لوحة التحكم ---------- */
body.albay-admin {
    background: #f2f4f9;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    min-height: 100vh;
}
.admin-sidebar {
    width: 262px;
    min-height: 100vh;
    background: var(--albay-navy);
    color: #aab0d6;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 1040;
    overflow-y: auto;
    transition: .25s;
}
.admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.admin-sidebar .sidebar-brand img { height: 58px; }
.admin-sidebar .sidebar-brand span { color: #fff; font-weight: 800; font-size: 1.05rem; }
.admin-sidebar .nav-label {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .09em;
    padding: 1rem 1.25rem .35rem;
    color: #6a7099;
}
.admin-sidebar .nav-item a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #aab0d6;
    padding: .58rem 1.25rem;
    font-size: .9rem;
    border-inline-start: 3px solid transparent;
}
.admin-sidebar .nav-item a:hover { color: #fff; background: rgba(255,255,255,.05); }
.admin-sidebar .nav-item a.active {
    color: #fff;
    background: linear-gradient(90deg, rgba(79,70,229,.35), transparent);
    border-inline-start-color: #7c3aed;
}
.admin-sidebar .nav-item a i { font-size: 1.05rem; width: 22px; text-align: center; }
/* القائمة الفرعية للحسابات: التجار / العملاء */
.admin-sidebar .nav-sub a {
    padding-inline-start: 3.1rem;
    padding-block: .45rem;
    font-size: .84rem;
}
.admin-sidebar .nav-caret {
    margin-inline-start: auto;
    font-size: .72rem;
    opacity: .65;
    transition: transform .2s;
}
.admin-sidebar .nav-item a[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
/* [v3.33.3] زر إغلاق السايدبار على الموبايل — يظهر بجوار الشعار داخل الشريط العلوي للقائمة */
.admin-sidebar .sidebar-brand .admin-sidebar-close {
    margin-inline-start: auto;
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.08);
    border: 0; border-radius: 9px;
    color: #cfd3ec; font-size: 1rem; line-height: 1;
    flex: 0 0 auto;
}
.admin-sidebar .sidebar-brand .admin-sidebar-close:hover { background: rgba(255,255,255,.18); color: #fff; }
/* [v3.33.3] خلفية تعتيم قابلة للنقر لإغلاق السايدبار على الموبايل —
   z-index 1039: تحت السايدبار (1040) وفوق كل محتوى الصفحة، visibility:hidden لا تحجب النقر عند الإخفاء */
.admin-sidebar-backdrop {
    position: fixed; inset: 0;
    background: rgba(10,14,26,.55);
    z-index: 1039;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.admin-sidebar-backdrop.show { opacity: 1; visibility: visible; }
@media (min-width: 992px) { .admin-sidebar-backdrop { display: none; } }
/* شارات الفئات: عادي / فضي / ذهبي */
.badge-tier-silver {
    background: linear-gradient(135deg, #f1f5f9, #cbd5e1);
    color: #334155;
    border: 1px solid rgba(100,116,139,.4);
    box-shadow: 0 1px 4px rgba(100,116,139,.25);
}
.badge-tier-gold {
    background: linear-gradient(135deg, #f7b733, #d97706);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 1px 4px rgba(217,119,6,.35);
}
.tier-form .tier-select { max-width: 128px; font-size: .76rem; }
.tier-badge-current { min-width: 74px; text-align: center; }
.admin-content { margin-inline-start: 262px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar {
    background: #fff;
    border-bottom: 1px solid var(--albay-border);
    padding: .55rem 1.4rem;
    position: sticky;
    top: 0;
    z-index: 1035;
}
.admin-body { padding: 1.4rem; flex: 1; }
.admin-card {
    background: #fff;
    border: 1px solid var(--albay-border);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(23,24,51,.04);
}
.admin-card .card-header {
    background: #fff;
    border-bottom: 1px solid var(--albay-border);
    padding: .9rem 1.15rem;
    font-weight: 700;
    border-radius: 14px 14px 0 0 !important;
}
.stat-card {
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.stat-card .stat-icon {
    position: absolute;
    inset-inline-end: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.6rem;
    opacity: .25;
}
.stat-card h3 { font-weight: 800; margin: 0; }
.stat-card small { opacity: .85; }
.stat-blue { background: linear-gradient(130deg, #2563eb, #3b82f6); }
.stat-purple { background: linear-gradient(130deg, #7c3aed, #9333ea); }
.stat-green { background: linear-gradient(130deg, #059669, #10b981); }
.stat-orange { background: linear-gradient(130deg, #d97706, #f59e0b); }
.table-admin th { font-size: .8rem; color: var(--albay-muted); text-transform: uppercase; letter-spacing: .03em; }
.table-admin td { vertical-align: middle; }
.thumbnail-sm { width: 46px; height: 46px; object-fit: contain; border-radius: 8px; border: 1px solid var(--albay-border); background: #fff; }
/* [إصلاح] منع تجاوز النصوص الطويلة خارج البانلات المرنة: بدون min-width:0 يبقى عنصر flex
   بعرض محتواه كاملاً (min-width:auto) فيتجاوز text-truncate إطار البانل — يظهر في «مخزون منخفض» بالرئيسية */
.minw-0 { min-width: 0; }

/* ---------- قائمة الموبايل المنزلقة (Slide Panel) ---------- */
.nav-drawer-backdrop {
    position: fixed; inset: 0;
    background: rgba(10, 14, 34, .55);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: .25s;
    z-index: 1050;
}
.nav-drawer-backdrop.show { opacity: 1; visibility: visible; }
.nav-drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    /* [v26.1] العرض نقص ربعاً بطلب المالك (كان عريضاً كثيراً ومحتواها لا يملؤه): 85vw/330px → 64vw/248px */
    width: min(64vw, 248px);
    background: #fff;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
    box-shadow: -12px 0 34px rgba(10, 14, 34, .18);
}
[dir="ltr"] .nav-drawer { transform: translateX(-100%); }
.nav-drawer.open { transform: none; visibility: visible; }
body.drawer-open { overflow: hidden; }
.nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .9rem 1.1rem;
    background: var(--albay-gradient);
}
.nav-drawer-head img { height: 46px; border-radius: 10px; }
.nav-drawer-close {
    background: rgba(255, 255, 255, .16); border: 0; color: #fff;
    width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center; flex: 0 0 auto;
    transition: background .2s;
}
.nav-drawer-close:hover { background: rgba(255, 255, 255, .3); }
.nav-drawer-body { flex: 1; overflow-y: auto; padding: .55rem 0 1.2rem; overscroll-behavior: contain; }
.drawer-link {
    display: flex; align-items: center; gap: .7rem;
    width: 100%; text-align: start;
    padding: .68rem 1.15rem;
    color: var(--albay-navy); font-weight: 600; font-size: .93rem;
    transition: background .18s, color .18s;
}
.drawer-link i:first-child { color: var(--albay-blue); font-size: 1.05rem; width: 22px; text-align: center; }
.drawer-link:hover, .drawer-link.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, .09), transparent);
    color: var(--albay-blue);
}
.drawer-link .chev { font-size: .8rem; color: var(--albay-muted); transition: transform .2s; }
.drawer-link[aria-expanded="true"] .chev { transform: rotate(180deg); }
.drawer-sublink {
    display: flex; align-items: center; gap: .3rem;
    padding: .48rem 1.15rem;
    padding-inline-start: 3rem;
    color: var(--albay-muted); font-size: .88rem;
}
.drawer-sublink i { font-size: 1.1rem; line-height: 1; }
.drawer-sublink:hover, .drawer-sublink.active { color: var(--albay-blue); }
.drawer-user {
    display: flex; align-items: center; gap: .7rem;
    margin: .4rem .8rem; padding: .75rem .9rem;
    background: #f5f7ff; border-radius: 12px;
}
.drawer-user i { font-size: 1.7rem; color: var(--albay-blue); }
.drawer-user small { display: block; color: var(--albay-muted); font-size: .74rem; }
.drawer-divider { height: 1px; background: var(--albay-border); margin: .6rem 1.15rem; }
.install-app-card {
    margin: .4rem .9rem; padding: .9rem;
    border: 1px dashed rgba(124, 58, 237, .45);
    background: linear-gradient(135deg, rgba(37, 99, 235, .06), rgba(124, 58, 237, .09));
    border-radius: 14px;
}
.install-app-card small { font-size: .74rem; }
.js-install-app.install-ready { animation: installPulse 1.6s infinite; }
@keyframes installPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 58, 237, .45); }
    50% { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}
.nav-drawer-foot {
    padding: .8rem 1.15rem;
    border-top: 1px solid var(--albay-border);
    display: grid; gap: .4rem;
}
.nav-drawer-foot a {
    color: var(--albay-muted); font-size: .84rem;
    display: flex; gap: .55rem; align-items: center;
}
.nav-drawer-foot a:hover { color: var(--albay-blue); }

/* ---------- استجابة ---------- */
@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(100%); }
    [dir="ltr"] .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: none; }
    .admin-content { margin-inline-start: 0; }
    /* [v26.1] الموبايل — قيد صارم لتمدد البنر: نصوص محدودة بالأسطر + سقف أمان + إخفاء أي فيض
       (كان height:auto بلا سقف فيتمدد مع النص الطويل ويبتلع شاشة الموبايل) */
    .hero-slide { min-height: 190px; max-height: 460px; height: auto; overflow: hidden; }
    .hero-side { display: none; }
    .brand-logo { height: 62px; }
    .banner-logo-chip { top: 8px; inset-inline-start: 12px; padding: 6px 10px; border-radius: 10px; }
    .banner-logo-chip img { height: 42px; }
    /* [v26.1] تخطيط موبايل مضغوط: نص يمين + صورة يسار (نفس تكوين المتصفح) داخل بنر ≈230px
       64px حشوة النص تزاحم أرضية شارة اللوجو (62px) — موحدة مع/بدون صورة فلا حاجة لـ:has */
    .hero-slide .hero-body { padding-top: 64px; padding-bottom: 1.1rem; }
    .hero-slide .hero-body h2 { font-size: 1.2rem; margin-bottom: .4rem; }
    .hero-slide .hero-body p { margin-bottom: .65rem; }
    .hero-slide .hero-body .btn { font-size: .95rem; padding: .4rem 1rem; white-space: nowrap; max-width: 100%; }
    .cat-row-item { flex: 0 0 172px; }
}
@media (max-width: 575.98px) {
    .header-actions .action-link span.label { display: none; }
    .section-title { font-size: 1.12rem; }
}

/* تحسينات عامة */
.breadcrumb-albay { font-size: .85rem; }
.breadcrumb-albay .breadcrumb-item + .breadcrumb-item::before { content: "\E5CC"; font-family: "bootstrap-icons"; }
[dir="ltr"] .breadcrumb-albay .breadcrumb-item + .breadcrumb-item::before { content: "\F285"; }
.pagination .page-link { color: var(--albay-blue); border-radius: 8px !important; margin: 0 2px; border-color: var(--albay-border); }
.pagination .page-item.active .page-link { background: var(--albay-gradient); border-color: transparent; color: #fff; }
.table > :not(caption) > * > * { padding: .8rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--albay-muted); }
.empty-state i { font-size: 3.2rem; color: #d3d8ee; }

/* ═══════════════════════════════════════════════════════════ */
/* الإشعارات الفورية — الجرس + الشارات + القائمة + التوستات      */
/* ═══════════════════════════════════════════════════════════ */
.notif-dropdown .btn { border-radius: 10px; }

/* شارة الجرس — نبض عبر خاصية scale المستقلة (تجنب تعارض translate-middle !important) */
.notif-badge {
    font-size: .62rem;
    animation: notifPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 0 2px #fff;
}
@keyframes notifPulse {
    0%, 100% { scale: 1; }
    50% { scale: 1.22; }
}

/* شارة بند القائمة الجانبية (الطلبات / الرسائل) */
.side-badge {
    display: inline-block;
    min-width: 18px;
    margin-inline-start: auto;
    padding: 1px 6px;
    border-radius: 99px;
    font-size: .66rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    color: #fff;
    animation: notifPulse 1.6s ease-in-out infinite;
}
.admin-sidebar .nav-item a { display: flex; align-items: center; gap: 6px; }
.admin-sidebar .nav-item a .side-badge { margin-inline-start: auto; }

/* قائمة الإشعارات المنسدلة */
.notif-menu { width: 380px; max-width: 92vw; padding: 0; border-radius: 14px; overflow: hidden; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid #f1f3fa;
    cursor: pointer;
    transition: background .15s ease;
    position: relative;
}
.notif-item:hover { background: #f6f8ff; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: #f0f5ff; }
.notif-item.unread:hover { background: #e8f0ff; }
.notif-ico {
    flex: 0 0 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: var(--albay-gradient, linear-gradient(135deg,#0d6efd,#0a58ca));
    color: #fff; font-size: .95rem;
}
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: .82rem; font-weight: 700; color: #1e2a4a; }
.notif-msg {
    font-size: .74rem; color: #6b7590;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 260px;
}
.notif-time { font-size: .68rem; color: #9aa3bd; margin-top: 2px; }
.notif-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #dc3545;
    margin-top: 6px;
    animation: notifPulse 1.6s ease-in-out infinite;
}

/* التوستات المنبثقة */
.notif-toast-wrap {
    position: fixed;
    bottom: 16px;
    inset-inline-start: 16px;
    z-index: 3000;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 340px;
}
.notif-toast {
    display: flex; align-items: center; gap: 10px;
    background: #fff;
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 10px 34px rgba(20, 34, 80, .18);
    border-inline-start: 4px solid #0d6efd;
    cursor: pointer;
    animation: notifIn .35s cubic-bezier(.2,.9,.3,1.2);
    transition: opacity .4s ease, transform .4s ease;
}
.notif-toast.out { opacity: 0; transform: translateY(8px); }
.notif-toast:hover { transform: translateY(-2px); }
.notif-toast .notif-msg { white-space: normal; }
@keyframes notifIn {
    from { opacity: 0; transform: translateY(-14px) scale(.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* شريط «مَن قَبِل الصفقة» في صفحة الطلب */
.order-acceptor-bar {
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(135deg, #e7f8ef, #d4f2e2);
    border: 1px solid #b9e8cd;
    color: #14683b;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: .88rem;
    margin-bottom: 1.25rem;
}
.order-acceptor-bar .bi { font-size: 1.15rem; }
.order-acceptor-bar.pending {
    background: linear-gradient(135deg, #fff8e6, #fff1cc);
    border-color: #ffe29a;
    color: #8a6116;
}

/* ---------- [3.8] Lightbox عرض صورة المنتج بنمط المواقع العالمية ---------- */
.product-gallery .main-img { cursor: zoom-in; position: relative; }
.product-gallery .main-img::after {
    content: "\f14a"; /* bi-arrows-angle-expand */
    font-family: "bootstrap-icons";
    position: absolute;
    bottom: 10px;
    inset-inline-end: 10px;
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(17, 24, 39, .62);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: .95rem;
    pointer-events: none;
    opacity: .85;
    transition: .2s;
}
.product-gallery .main-img:hover::after { opacity: 1; background: rgba(17, 24, 39, .8); }

.lb-overlay {
    position: fixed; inset: 0; z-index: 3000;
    background: rgba(9, 11, 17, .93);
    display: none; align-items: center; justify-content: center;
    animation: lbFade .22s ease;
}
.lb-overlay.open { display: flex; }
.lb-overlay img.lb-img {
    max-width: 93vw; max-height: 90vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 60px rgba(0,0,0,.55);
    animation: lbZoom .24s ease;
    user-select: none; -webkit-user-drag: none;
}
.lb-btn {
    position: fixed;
    width: 46px; height: 46px;
    border-radius: 50%;
    border: none; cursor: pointer;
    background: rgba(255,255,255,.12);
    color: #fff; font-size: 1.35rem;
    display: flex; align-items: center; justify-content: center;
    transition: .18s;
    z-index: 3002;
}
.lb-btn:hover { background: rgba(255,255,255,.26); transform: scale(1.06); }
.lb-btn:active { transform: scale(.96); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(.96); }
.lb-counter {
    position: fixed; bottom: 20px; inset-inline-start: 50%; transform: translateX(50%);
    background: rgba(255,255,255,.14); color: #fff;
    padding: .3em .95em; border-radius: 999px;
    font-size: .85rem; letter-spacing: .5px;
    z-index: 3002; direction: ltr;
}
.lb-single .lb-prev, .lb-single .lb-next, .lb-single .lb-counter { display: none; }
body.lb-open { overflow: hidden; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbZoom { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@media (max-width: 576px) {
    .lb-overlay img.lb-img { max-width: 97vw; max-height: 82vh; }
    .lb-btn { width: 40px; height: 40px; font-size: 1.1rem; }
    .lb-prev { inset-inline-start: 8px; } .lb-next { inset-inline-end: 8px; }
}

/* ═══════════════════════════════════════════════════════════ */
/* [3.12.3] البانر المربع 1:1 — الصورة تُعرض مربعة (قص مركزي 900×900) */
/* ═══════════════════════════════════════════════════════════ */
.hero-side.is-square img.hero-square-img {
    width: auto;
    height: calc(100% - 2.5rem);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
    filter: none;
}
/* احتياط البانرات القديمة (قبل توليد النسخة المربعة): CSS يقص العرض مربعاً */
.hero-side.is-square img:not(.hero-square-img):not(.hero-side-fallback) {
    width: auto;
    height: calc(100% - 2.5rem);
    max-width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, .28);
    box-shadow: 0 18px 44px rgba(0, 0, 0, .38);
}
/* الموبايل: الصورة المربعة تظهر فوق نص البانر بدل إخفائها */
@media (max-width: 991.98px) {
    .hero-side.is-square {
        display: flex;
        position: relative;
        inset: auto;
        width: 100%;
        /* [v26.1] صورة أكبر وأوضح داخل العمود الجانبي مضغوط رأسياً */
        padding: 50px .75rem 14px;
        pointer-events: none;
    }
    .hero-side.is-square img.hero-square-img,
    .hero-side.is-square img:not(.hero-square-img):not(.hero-side-fallback) {
        width: min(62%, 148px);
        height: auto;
        aspect-ratio: 1 / 1;
    }
}

/* [3.12.3] قسم تحت الفوتر — شريط محتوى أسفل الفوتر (نص ترويجي/تعريفي من الإعدادات) */
.footer-below {
    background: #0a0f1f;
    border-top: 1px solid rgba(255, 255, 255, .06);
    color: #aeb3d2;
    padding: 1.4rem 0;
    font-size: .88rem;
    line-height: 1.75;
}
.footer-below a { color: #cdd3f4; text-decoration: underline; }
.footer-below a:hover { color: #fff; }
.footer-below strong, .footer-below b { color: #e8eafc; }

/* ============================================================
   [Task 34] بلاطات الأيقونات المتدرجة الحديثة — تسوق حسب القسم
   ============================================================ */
.cat-tile {
    --ct-c1: #6366f1;
    --ct-c2: #4f46e5;
    background: linear-gradient(135deg, var(--ct-c1) 0%, var(--ct-c2) 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 18px -8px var(--ct-c2), inset 0 1px 0 rgba(255, 255, 255, .25);
    flex: none;
    line-height: 1;
}
.cat-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .32) 0%, rgba(255, 255, 255, 0) 52%);
    pointer-events: none;
    border-radius: inherit;
}
.cat-tile .bi { position: relative; z-index: 1; }

/* أحجام البلاطات */
.ct-sm { width: 36px; height: 36px; font-size: 1.05rem; border-radius: 11px; }
.ct-lg { width: 64px; height: 64px; font-size: 1.85rem; border-radius: 18px; }

/* لوحات الألوان التدرجية */
.ct-sky     { --ct-c1: #38bdf8; --ct-c2: #0284c7; }
.ct-blue    { --ct-c1: #60a5fa; --ct-c2: #2563eb; }
.ct-indigo  { --ct-c1: #818cf8; --ct-c2: #4f46e5; }
.ct-violet  { --ct-c1: #a78bfa; --ct-c2: #7c3aed; }
.ct-fuchsia { --ct-c1: #e879f9; --ct-c2: #c026d3; }
.ct-rose    { --ct-c1: #fb7185; --ct-c2: #e11d48; }
.ct-red     { --ct-c1: #f87171; --ct-c2: #dc2626; }
.ct-orange  { --ct-c1: #fb923c; --ct-c2: #ea580c; }
.ct-amber   { --ct-c1: #fbbf24; --ct-c2: #d97706; }
.ct-lime    { --ct-c1: #a3e635; --ct-c2: #65a30d; }
.ct-green   { --ct-c1: #4ade80; --ct-c2: #16a34a; }
.ct-teal    { --ct-c1: #2dd4bf; --ct-c2: #0d9488; }
.ct-cyan    { --ct-c1: #22d3ee; --ct-c2: #0891b2; }

/* بلاطة كرت القسم في الصفحة الرئيسية */
.category-card .cat-icon.cat-tile {
    width: 60px;
    height: 60px;
    font-size: 1.7rem;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--ct-c1) 0%, var(--ct-c2) 100%);
    color: #fff;
    transition: transform .25s cubic-bezier(.34, 1.56, .64, 1), box-shadow .25s;
}
.category-card:hover .cat-icon.cat-tile {
    transform: scale(1.1) rotate(-4deg);
    box-shadow: 0 14px 24px -10px var(--ct-c2), inset 0 1px 0 rgba(255, 255, 255, .3);
}
/* حلقة بيضاء لبلاطة فوق لافتة القسم المتدرجة */
.cat-ring { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55), 0 10px 20px -8px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }

/* ============================================================
   [Task 34] منتقي الأيقونات — إدارة الأقسام
   ============================================================ */
.iconpicker { position: relative; }
.iconpicker-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: .55rem .8rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    text-align: start;
    transition: border-color .15s, box-shadow .15s;
    cursor: pointer;
}
.iconpicker-btn:hover { border-color: #a5b4fc; }
.iconpicker-btn:focus-visible, .iconpicker.open .iconpicker-btn {
    outline: none;
    border-color: #818cf8;
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .18);
}
.iconpicker.open .iconpicker-caret { transform: rotate(180deg); }
.iconpicker-caret { margin-inline-start: auto; transition: transform .2s; color: #6c757d; }
.iconpicker-text { display: flex; flex-direction: column; min-width: 0; }
.iconpicker-text strong { font-size: .95rem; color: var(--albay-text, #1e293b); }
.iconpicker-text small { color: #8b93a7; direction: ltr; text-align: start; font-size: .72rem; }
.iconpicker-panel {
    position: absolute;
    z-index: 1050;
    top: calc(100% + .4rem);
    inset-inline-start: 0;
    width: min(420px, 92vw);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: .9rem;
    box-shadow: 0 20px 45px -18px rgba(15, 23, 42, .35);
    overflow: hidden;
}
.iconpicker-search-wrap { display: flex; align-items: center; gap: .5rem; padding: .65rem .8rem; border-bottom: 1px solid #eef1f6; }
.iconpicker-search-wrap .bi { color: #94a3b8; }
.iconpicker-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: .9rem;
    background: transparent;
}
.iconpicker-scroll { max-height: 300px; overflow-y: auto; padding: .6rem .8rem .8rem; }
.iconpicker-group-title { font-size: .72rem; font-weight: 700; color: #8b93a7; margin: .55rem 0 .4rem; letter-spacing: .02em; }
.iconpicker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .45rem; }
.iconpicker-item {
    background: #f8fafc;
    border: 1.5px solid transparent;
    border-radius: 12px;
    padding: .3rem;
    display: flex;
    justify-content: center;
    cursor: pointer;
    transition: .15s;
}
.iconpicker-item:hover { background: #eef2ff; border-color: #c7d2fe; transform: translateY(-2px); }
.iconpicker-item.is-selected { border-color: #4f46e5; background: #eef2ff; box-shadow: 0 0 0 2px rgba(79, 70, 229, .25); }
.iconpicker-item.is-selected::after {
    content: "\f26e"; /* bi-check */
    font-family: bootstrap-icons;
    position: absolute;
    transform: translate(-38%, -38%);
    font-size: .8rem;
    color: #4f46e5;
    z-index: 2;
    font-weight: bold;
}
.iconpicker-item .cat-tile { position: relative; }
.iconpicker-empty { text-align: center; color: #8b93a7; padding: 1.2rem 0; font-size: .9rem; }
.iconpicker-clear {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    font-size: .78rem;
    color: #e11d48;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.iconpicker-clear:hover { text-decoration: underline; }
[dir="rtl"] .iconpicker-text small { text-align: right; }
/* صورة كخلفية بلاطة (عند رفع صورة للقسم) */
.cat-icon-img { display: inline-flex; overflow: hidden; border-radius: 16px; flex: none; }
.cat-icon-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-icon-img.ct-sm { width: 36px; height: 36px; border-radius: 11px; }
.cat-icon-img.ct-lg { width: 64px; height: 64px; border-radius: 18px; }

/* ═══════════ [v3.21] بانر تثبيت التطبيق التلقائي + دليل الآيفون ═══════════ */
.albay-install-banner {
    position: fixed; inset-inline: .75rem; bottom: .75rem; z-index: 1060;
    max-width: 420px; margin-inline: auto;
    padding: .85rem .95rem;
    background: rgba(10, 14, 34, .96);
    border: 1px solid rgba(124, 58, 237, .55);
    border-radius: 16px;
    color: #fff;
    box-shadow: 0 12px 34px rgba(10, 14, 34, .45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: albayBannerUp .45s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes albayBannerUp {
    from { transform: translateY(110%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.albay-install-banner .albay-install-sub { color: rgba(255, 255, 255, .72); font-size: .72rem; }
.albay-install-close {
    position: absolute; top: .3rem; inset-inline-end: .55rem;
    background: none; border: 0; color: rgba(255, 255, 255, .55);
    font-size: 1.25rem; line-height: 1; padding: .15rem .35rem; cursor: pointer;
}
.albay-install-close:hover { color: #fff; }
.albay-install-later { background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, .22); }
.albay-install-ios-steps { margin-top: .55rem; display: grid; gap: .4rem; }
.albay-ios-step {
    display: flex; align-items: center; gap: .55rem;
    font-size: .76rem; color: rgba(255, 255, 255, .92);
}
.albay-ios-badge {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    font-size: .85rem;
}
/* إبراز قسم جهاز الزائر داخل مودال الدليل */
.pwa-howto-section { border: 1px solid transparent; border-radius: 12px; padding: .55rem .7rem; }
.pwa-howto-focus { border-color: rgba(124, 58, 237, .5); background: rgba(124, 58, 237, .06); }
/* مسافة أسفل الصفحة حتى لا يغطي البانر زر الواتساب العائم عند ظهوره */
body:has(.albay-install-banner[hidden="false"]) { }
@media (max-width: 575.98px) {
    .albay-install-banner { inset-inline: .5rem; bottom: 5rem; }
}
