/* تي ماس — مكوّنات إضافية (تُبنى تباعاً بحسب صفحات المرحلة 2) */

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px 8px;
    box-shadow: var(--shadow-md);
}
.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
}
.trust-badge__icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--tint, var(--brand-blue));
    background: color-mix(in srgb, var(--tint, var(--brand-blue)) 13%, transparent);
}
.trust-badge__label { font-size: 11.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease;
}
.category-card:active { transform: scale(.96); }
.category-card__icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

/* ---------- بانرات التصنيفات (سطح المكتب) ---------- */
.category-banners { display: none; }
.cat-banner {
    position: relative;
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1005 / 340;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-alt);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.cat-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cat-banner__text {
    position: absolute; top: 50%; left: 26px; transform: translateY(-50%);
    max-width: 46%; display: flex; flex-direction: column; gap: 4px;
}
.cat-banner__text strong { font-size: 19px; color: #0A2552; line-height: 1.3; }
.cat-banner__text span { font-size: 12.5px; color: #4A5A72; }
.cat-banner__arrow {
    position: absolute; bottom: 18px; left: 26px;
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}

@media (min-width: 900px) {
    .category-grid { display: none; }
    .category-banners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* ---------- شعارات "موثوق من جهات رائدة" ---------- */
/* خلفية بيضاء ثابتة بغض النظر عن الوضع الداكن/الفاتح — بعض الشعارات المرفوعة
   بخلفية بيضاء مدمجة (JPEG لا يدعم الشفافية)، فتبقى النتيجة متسقة دائماً. */
.client-logo-card {
    width: 132px; height: 68px;
    background: #fff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    display: flex; align-items: center; justify-content: center;
    padding: 10px 16px;
    flex-shrink: 0;
}
.client-logo-card img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- شرائح التصنيفات (أزرار أيقونية) ---------- */
.cat-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to left, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    padding: 7px 16px 7px 7px;
    border-radius: 999px;
    background: var(--surface);
    border: 1.5px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease, border-color .2s ease;
}
.cat-pill:active { transform: scale(.95); }
.cat-pill__icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(46, 79, 158, .09);
    color: var(--brand-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cat-pill.is-selected {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px -6px rgba(46, 79, 158, .55);
}
.cat-pill.is-selected .cat-pill__icon { background: rgba(255, 255, 255, .25); color: #fff; }

/* ---------- بطاقة منتج ---------- */
.product-card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(10, 37, 82, .06), 0 8px 20px -12px rgba(10, 37, 82, .12);
    transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -12px rgba(10, 37, 82, .22); }
.product-card:active { transform: translateY(-1px) scale(.99); }
.product-card__link { display: flex; flex-direction: column; color: inherit; text-decoration: none; flex: 1; }
.product-card__image {
    aspect-ratio: 1 / 1;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    position: relative;
    overflow: hidden;
    padding: 14px;
    border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .product-card__image { background: #16264a; }
.product-card__image img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.05); }

.product-card__badges {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    display: flex; flex-direction: column; gap: 6px; align-items: flex-end;
}
.product-card__ribbon {
    display: flex; align-items: center; gap: 4px;
    font-size: 10.5px; font-weight: 800;
    padding: 5px 10px; border-radius: 999px; color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
    white-space: nowrap;
    line-height: 1;
}
.product-card__ribbon--featured { background: var(--brand-gradient); }
.product-card__ribbon--sale { background: linear-gradient(135deg, #EF6448, #B3261E); }

.product-card__compare {
    position: absolute; top: 10px; left: 10px; z-index: 3;
    width: 30px; height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    border: 1.5px solid rgba(10, 37, 82, .10);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
    cursor: pointer;
    transition: all .18s ease;
}
:root[data-theme="dark"] .product-card__compare { background: rgba(15, 34, 69, .92); border-color: rgba(255, 255, 255, .15); }
.product-card__compare input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.product-card__compare svg { opacity: 0; transform: scale(.4); transition: all .18s ease; color: #fff; }
.product-card__compare.is-checked { background: var(--brand-gradient); border-color: transparent; box-shadow: 0 4px 12px -2px rgba(46, 79, 158, .6); }
.product-card__compare.is-checked svg { opacity: 1; transform: scale(1); }
.product-card__compare:active { transform: scale(.88); }

.product-card__body { padding: 13px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-card__cat { font-size: 10.5px; color: var(--brand-teal); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.product-card__name {
    font-size: 14px; font-weight: 700; line-height: 1.45; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__price-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }
.product-card__price-current { font-size: 16px; font-weight: 800; color: var(--brand-blue); }
.product-card__price-old { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }
.product-card__discount { font-size: 10px; font-weight: 800; color: #fff; background: var(--danger); padding: 2px 7px; border-radius: 7px; }
.product-card__price-quote { font-size: 12.5px; font-weight: 700; color: var(--muted); margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); }

/* ---------- جدول المواصفات ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 10px 6px; }
.spec-table td:first-child { color: var(--muted); width: 45%; }
.spec-table td:last-child { font-weight: 600; }

.feature-pill {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--surface-alt); border: 1px solid var(--line);
    border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
}

/* ---------- معرض الصور ---------- */
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gallery::-webkit-scrollbar { display: none; }
.gallery__item {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 1 / 1;
    background: var(--surface-alt);
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted);
    overflow: hidden;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- جدول المقارنة ---------- */
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.compare-table th, .compare-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: right; color: var(--muted); position: sticky; right: 0; background: var(--surface); }
.compare-table thead th { font-size: 13px; font-weight: 700; }

/* ---------- سلة طلب التسعير ---------- */
.cart-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--surface-alt); flex-shrink: 0; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 700; }
.cart-item__qty { font-size: 12px; color: var(--muted); }

/* ---------- ورقة الفلاتر ---------- */
.filter-sheet__header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.filter-sheet__close {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--surface-alt); border: none;
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); cursor: pointer;
}
.filter-section { margin-bottom: 22px; }
.filter-section__label { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: block; }
.filter-sheet__footer {
    position: sticky; bottom: 0;
    background: var(--surface);
    padding-top: 14px; margin-top: 4px;
    border-top: 1px solid var(--line);
    display: flex; gap: 10px;
}
.filter-sheet__footer .btn-outline { flex: 0 0 auto; padding-inline: 18px; }

/* ---------- بطاقات إحصاء الحساب ---------- */
.greet-card {
    background: var(--brand-gradient);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.greet-card::after {
    content: "";
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.14) 0, transparent 45%);
}
.greet-card h1 { position: relative; font-size: 17px; margin: 0; }
.greet-card p { position: relative; opacity: .85; font-size: 12.5px; margin: 4px 0 0; }

.stat-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.stat-tile:active { transform: scale(.97); }
.stat-tile__icon {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.stat-tile__value { font-size: 20px; font-weight: 800; line-height: 1; color: var(--ink); }
.stat-tile__label { font-size: 11.5px; color: var(--muted); margin-top: 3px; }

/* ---------- بطاقة سجل (طلب/عرض سعر/تذكرة) ---------- */
.record-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 13px 14px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.record-card:active { transform: scale(.98); }
.record-card__icon {
    width: 40px; height: 40px; border-radius: var(--radius-md);
    background: var(--surface-alt); color: var(--brand-blue);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.record-card__body { flex: 1; min-width: 0; }
.record-card__title { font-size: 13.5px; font-weight: 700; }
.record-card__meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.status-pill { font-size: 10.5px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.status-pill--new, .status-pill--received, .status-pill--open { background: rgba(46, 79, 158, .12); color: var(--brand-blue); }
.status-pill--reviewing, .status-pill--processing, .status-pill--pending { background: var(--warning-bg); color: var(--warning); }
.status-pill--sent, .status-pill--scheduled { background: rgba(19, 145, 143, .14); color: var(--brand-teal); }
.status-pill--accepted, .status-pill--completed, .status-pill--installed { background: var(--success-bg); color: var(--success); }
.status-pill--rejected, .status-pill--cancelled, .status-pill--closed { background: var(--danger-bg); color: var(--danger); }

/* ---------- قائمة الحساب (شبكة أيقونات) ---------- */
.account-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.account-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 16px 8px;
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
    position: relative;
}
.account-menu-item:active { transform: scale(.95); }
.account-menu-item__icon {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.account-menu-item__label { font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.account-menu-item__badge {
    position: absolute; top: 8px; left: 8px;
    background: var(--danger); color: #fff;
    font-size: 10px; font-weight: 800;
    min-width: 17px; height: 17px; border-radius: 999px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
}

.account-back {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--muted); font-size: 13px; font-weight: 600;
    margin-bottom: 12px;
}

/* ---------- عدّاد الكمية ---------- */
.qty-stepper {
    display: flex; align-items: center;
    border: 1.5px solid var(--line); border-radius: var(--radius-md);
    overflow: hidden; flex-shrink: 0;
}
.qty-stepper__btn {
    width: 38px; height: 44px;
    background: var(--surface-alt); border: none;
    font-size: 18px; font-weight: 700; color: var(--ink);
    cursor: pointer;
}
.qty-stepper__btn:active { background: var(--line); }
.qty-stepper input {
    width: 34px; height: 44px; text-align: center;
    border: none; border-inline: 1px solid var(--line);
    font-size: 14px; font-weight: 700; background: var(--surface); color: var(--ink);
}

/* ---------- بطاقة منتج بنمط قائمة (صفحة المنتجات الرئيسية) ---------- */
.product-list-item {
    display: flex;
    gap: 12px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(10, 37, 82, .06), 0 8px 20px -12px rgba(10, 37, 82, .12);
    padding: 12px;
    position: relative;
    overflow: hidden;
}
.product-list-item__media {
    position: relative;
    flex: 0 0 116px;
    width: 116px; height: 116px;
    border-radius: var(--radius-md);
    background: #fff;
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
:root[data-theme="dark"] .product-list-item__media { background: #16264a; }
.product-list-item__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.product-list-item__badges { position: absolute; top: 6px; right: 6px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; z-index: 2; }

.product-list-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.product-list-item__link { color: inherit; text-decoration: none; }
.product-list-item__name {
    font-size: 13.5px; font-weight: 700; line-height: 1.4;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-list-item__rating { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.product-list-item__info { font-size: 11px; color: var(--brand-teal); font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.product-list-item__price-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 6px; }
.product-list-item__price-current { font-size: 17px; font-weight: 800; color: var(--brand-blue); }
.product-list-item__price-old { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }

.product-list-item__actions { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-add-cart {
    flex: 1;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--brand-gradient); color: #fff;
    border: none; border-radius: var(--radius-md);
    padding: 9px 10px; font-size: 12.5px; font-weight: 700;
    cursor: pointer;
}
.btn-add-cart:active { transform: scale(.96); }
.btn-icon-toggle {
    position: relative;
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface-alt); border: 1.5px solid var(--line);
    color: var(--muted); cursor: pointer;
}
.btn-icon-toggle.is-active { color: #B3261E; border-color: transparent; background: rgba(179, 38, 30, .1); }
.btn-icon-toggle.is-checked { background: var(--brand-gradient); border-color: transparent; color: #fff; }
.btn-icon-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.product-list { display: flex; flex-direction: column; gap: 12px; }

/* ---------- خطوات مساعد الاختيار ---------- */
.finder-step { display: none; }
.finder-step.is-active { display: block; }
.finder-progress { display: flex; gap: 6px; margin-bottom: 20px; }
.finder-progress span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.finder-progress span.is-done { background: var(--brand-gradient); }

/* ---------- دردشة الذكاء الصناعي ---------- */
.ai-chat-fab {
    position: fixed; z-index: 60;
    inset-inline-start: 16px;
    bottom: calc(76px + env(safe-area-inset-bottom, 0));
    width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-gradient); color: #fff; box-shadow: var(--shadow-md, 0 8px 24px rgba(10, 37, 82, .25));
}
.ai-chat-fab[hidden], .ai-chat[hidden] { display: none; }
.ai-chat {
    position: fixed; z-index: 70;
    inset-inline-start: 12px; inset-inline-end: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    max-width: 380px; height: min(520px, 70vh);
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: 0 12px 40px rgba(10, 37, 82, .25); overflow: hidden;
}
.ai-chat__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: var(--brand-gradient); color: #fff;
}
.ai-chat__head button { background: none; border: 0; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
.ai-chat__log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-alt); }
.ai-msg { max-width: 85%; padding: 8px 12px; border-radius: var(--radius-md); font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ai-msg a { color: var(--brand-blue); text-decoration: underline; }
.ai-msg--assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.ai-msg--user { align-self: flex-end; background: var(--brand-blue); color: #fff; }
.ai-msg.is-pending { opacity: .6; }
.ai-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-chat__form input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); color: var(--ink); }
@media (min-width: 900px) {
    .ai-chat-fab { bottom: 24px; }
    .ai-chat { bottom: 24px; inset-inline-end: auto; width: 380px; }
}

/* الجوال: نافذة ملء الشاشة تتكيف مع الكيبورد بدل تغطيته للحقل */
.ai-chat__form input { font-size: 16px; } /* يمنع تكبير iOS التلقائي عند التركيز */
@media (max-width: 899px) {
    .ai-chat {
        inset: 0; top: 0; bottom: auto; max-width: none; width: 100%;
        height: 100dvh; border: 0; border-radius: 0;
    }
    .ai-chat__head { padding-top: calc(12px + env(safe-area-inset-top, 0)); }
    .ai-chat__form { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)); }
    .ai-chat__log { overscroll-behavior: contain; }
    body.ai-chat-open { overflow: hidden; }
}

/* ---------- قسم التواصل + روابط التواصل الاجتماعي ---------- */
.contact-section { margin-top: 40px; }
.contact-section__head { text-align: center; margin-bottom: 18px; }
.contact-section__head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.contact-wa {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 12px;
    border-radius: var(--radius-lg); color: #fff; background: linear-gradient(135deg, #1FAF5A, #128C7E);
    box-shadow: 0 8px 22px rgba(18, 140, 126, .28); transition: transform .15s ease;
}
.contact-wa:active { transform: scale(.98); }
.contact-wa__icon { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-wa__icon svg { width: 26px; height: 26px; }
.contact-wa__text { display: flex; flex-direction: column; gap: 2px; }
.contact-wa__text strong { font-size: 16px; }
.contact-wa__text small { opacity: .9; font-size: 13px; text-align: start; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.contact-card {
    display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
    padding: 16px 10px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--ink); min-width: 0;
    transition: transform .15s ease, border-color .15s ease;
}
.contact-card:hover { border-color: var(--brand-teal); transform: translateY(-2px); }
.contact-card__icon { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-alt); color: var(--brand-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.contact-card__label { font-size: 12px; color: var(--muted); }
.contact-card__value { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.contact-section__social { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.social-links a {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; background: rgba(255, 255, 255, .12); transition: background .15s ease, transform .15s ease;
}
.social-links a:hover { background: var(--brand-teal); transform: translateY(-2px); }
.social-links--lg a { width: 46px; height: 46px; color: var(--brand-blue); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.social-links--lg a:hover { color: #fff; background: var(--brand-blue); }
@media (min-width: 900px) {
    .contact-section { max-width: 860px; }
    .contact-grid { grid-template-columns: repeat(4, 1fr); }
}
.social-links--footer { margin: 0 0 14px; }

/* ---------- المكالمة الصوتية مع الوكيل ---------- */
.btn-call { display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.btn-call svg { flex: none; }
.voice-call[hidden] { display: none; }
.voice-call {
    position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
    padding: calc(56px + env(safe-area-inset-top, 0)) 24px calc(48px + env(safe-area-inset-bottom, 0));
    background: radial-gradient(circle at 50% 30%, #1B6FA8 0%, #0A2552 60%, #061638 100%); color: #fff; text-align: center;
}
body.voice-open { overflow: hidden; }
.voice-call__body { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8vh; }
.voice-call__avatar {
    position: relative; width: 132px; height: 132px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; box-shadow: 0 0 0 0 rgba(126, 231, 226, .6); animation: voice-ring 1.8s ease-out infinite;
}
.voice-call__avatar img { width: 84px; height: auto; }
.voice-call.is-connected .voice-call__avatar { animation: none; box-shadow: 0 0 0 6px rgba(126, 231, 226, .35); }
.voice-call.is-speaking .voice-call__avatar { animation: voice-speak 1s ease-in-out infinite; }
@keyframes voice-ring { 0% { box-shadow: 0 0 0 0 rgba(126, 231, 226, .6); } 100% { box-shadow: 0 0 0 44px rgba(126, 231, 226, 0); } }
@keyframes voice-speak { 0%, 100% { box-shadow: 0 0 0 6px rgba(126, 231, 226, .5); } 50% { box-shadow: 0 0 0 22px rgba(126, 231, 226, .15); } }
.voice-call__name { font-size: 22px; margin: 0; }
.voice-call__status { font-size: 15px; opacity: .85; margin: 0; }
.voice-call__timer { font-size: 15px; opacity: .7; direction: ltr; margin: 0; font-variant-numeric: tabular-nums; }
.voice-call__actions { display: flex; gap: 28px; align-items: center; }
.voice-call__btn {
    width: 68px; height: 68px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
    background: rgba(255, 255, 255, .16); display: flex; align-items: center; justify-content: center;
}
.voice-call__btn[hidden] { display: none; }
.voice-call__btn--end { background: #D93025; box-shadow: 0 8px 22px rgba(217, 48, 37, .45); }
.voice-call__btn--end svg { transform: rotate(135deg); }
.voice-call__slash { opacity: 0; }
.voice-call__btn.is-on { background: #fff; color: #0A2552; }
.voice-call__btn.is-on .voice-call__slash { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .voice-call__avatar, .voice-call.is-speaking .voice-call__avatar { animation: none; } }
