/*
|----------------------------------------------------------------------------------
|   1) Base
|----------------------------------------------------------------------------------
*/
:root {
    --bs-body-bg: #f2f2f7;
    --bs-body-color: #000;
    --bs-secondary-color: #6c6c70;   /* T11: تباين 4.69:1 بدل 2.92:1 */
    --bs-body-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", Tahoma, sans-serif;
    --bs-primary: #007aff;
    --bs-primary-rgb: 0, 122, 255;
    --bs-link-color: #007aff;
    --bs-link-color-rgb: 0, 122, 255;
    --bs-link-hover-color: #0062cc;
    --bs-link-hover-color-rgb: 0, 98, 204;
    --bs-success: #34c759;
    --bs-success-rgb: 52, 199, 89;
    --bs-danger: #ff3b30;
    --bs-danger-rgb: 255, 59, 48;
    --bs-warning: #ff9500;
    --bs-warning-rgb: 255, 149, 0;
    --bs-info: #5ac8fa;
    --bs-info-rgb: 90, 200, 250;
    --bs-secondary: #8e8e93;
    --bs-secondary-rgb: 142, 142, 147;
    --bs-border-color: #e5e5ea;
    --bs-border-radius: .75rem;
}

/* T11: نص الأخضر/الأحمر بدرجة iOS المخصّصة للتباين؛ الأزرار والخلفيات كما هي */
.text-success { --bs-success-rgb: 30, 126, 52; }
.text-danger { --bs-danger-rgb: 215, 0, 21; }
.fs-14{font-size: 14px}
.fs-13{font-size: 13px}
.card,
.accordion,
.list-group,
.modal {
    --bs-card-bg: #fff;
    --bs-accordion-bg: #fff;
    --bs-list-group-bg: #fff;
    --bs-modal-bg: #fff;
    --bs-card-border-width: 0;
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: .75rem;
    --bs-accordion-inner-border-radius: .75rem;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-bg: #fff;
    --bs-accordion-active-color: #000;
}

.table { --bs-table-bg: transparent; }
.btn { --bs-btn-border-radius: .75rem; font-weight: 600; }
.btn-primary {
    --bs-btn-bg: #007aff;
    --bs-btn-border-color: #007aff;
    --bs-btn-hover-bg: #0062cc;
    --bs-btn-hover-border-color: #0062cc;
    --bs-btn-active-bg: #0058b8;
    --bs-btn-active-border-color: #0058b8;
    --bs-btn-disabled-bg: #007aff;
    --bs-btn-disabled-border-color: #007aff;
}

.ios-nav {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(249, 249, 249, .85);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: .5px solid #c6c6c8;
}

.ios-h { font-size: .85rem; color: #6c6c70; margin: 1.6rem .9rem .4rem; }
.ios-ico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; font-size: 1.1rem; }
.ios-act { display: block; width: 100%; border: 0; border-radius: .75rem; background: #fff; color: #007aff; padding: .6rem .2rem; font-size: .78rem; text-align: center; text-decoration: none; }
.ios-act i { display: block; font-size: 1.5rem; }
.table-ios th { color: #6c6c70; font-weight: 400; width: 42%; }
.table-ios td { font-weight: 500; }
.accordion-item + .accordion-item { border-top: .5px solid #e5e5ea; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e5f0ff; color: #007aff; font-weight: 700; flex: none; }
.i-md { font-size: 1.25rem; vertical-align: -.2em; }
.i-lg { font-size: 1.5rem; }
html { scroll-behavior: smooth; scroll-padding-top: 80px }
body { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; overflow-x: clip; }
.fs-15 { font-size: 15px; }


/*
|----------------------------------------------------------------------------------
|   2) Bootstrap tuning
|----------------------------------------------------------------------------------
*/
.list-group {
    --bs-list-group-active-bg: #007aff;
    --bs-list-group-active-border-color: #007aff;
    --bs-list-group-border-color: #e5e5ea;
}
.dropdown-menu { --bs-dropdown-link-active-bg: #007aff; }
.pagination {
    --bs-pagination-color: #007aff;
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: transparent;
    --bs-pagination-hover-color: #0062cc;
    --bs-pagination-hover-bg: #e5f0ff;
    --bs-pagination-active-bg: #007aff;
    --bs-pagination-active-border-color: #007aff;
    --bs-pagination-disabled-bg: #fff;
    --bs-pagination-disabled-border-color: transparent;
}
.page-link { border-radius: .6rem !important; min-width: 2.4rem; text-align: center; }
.form-control:focus,
.form-select:focus { border-color: #66afff; box-shadow: 0 0 0 .2rem rgba(0, 122, 255, .15); }
.form-check-input:checked { background-color: #007aff; border-color: #007aff; }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(0, 122, 255, .15); }
.badge { font-weight: 500; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #e5e5ea; --bs-btn-hover-border-color: #e5e5ea; --bs-btn-active-bg: #d1d1d6; --bs-btn-active-border-color: #d1d1d6; }
.card .btn-light,
.modal .btn-light,
.input-group .btn-light { --bs-btn-bg: #f2f2f7; --bs-btn-border-color: #f2f2f7; }
.rate-bar.is-done::-webkit-progress-value { background: #34c759; }
.rate-bar.is-done::-moz-progress-bar { background: #34c759; }
.day-name { min-width: 4.5rem; }
.alert { --bs-alert-border-radius: .75rem; }
.breadcrumb { --bs-breadcrumb-divider: '‹'; }
.breadcrumb::-webkit-scrollbar { display: none; }
.breadcrumb { scrollbar-width: none; }
.min-w-0 { min-width: 0; }
.fs-12 { font-size: 12px; }
.menu-w { min-width: 240px; }
.sheet-handle { width: 40px; height: 5px; }
.sheet-body { max-width: 560px; }
.text-body-tertiary { color: #c7c7cc !important; }


/*
|----------------------------------------------------------------------------------
|   3) Quick search (نفس شكل البحث السريع في الموقع القديم)
|----------------------------------------------------------------------------------
*/
.sr-box {
    z-index: 1050;
    background: #fff;
    box-shadow: 0 1px 2px rgba(60, 64, 67, .3), 0 1px 3px 1px rgba(60, 64, 67, .15);
    padding: 15px;
    border-radius: 5px;
    max-height: 500px;
    overflow: auto;
    overscroll-behavior: contain;
    text-align: right;
    color: #000;
}
.sr-head { font-size: 12px; color: #6c6c70; padding: 0 5px 6px; }
.sr-row {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e6e6e6;
    line-height: 24px;
    padding: 5px;
    border-radius: 5px;
    font-size: 15px;
    color: #000;
    text-decoration: none;
}
.sr-row:last-child { border-bottom: 0; }
.sr-row:hover,
.sr-row.active { background: #f3f3f3; color: #000; }
.sr-row img { width: 30px; height: 30px; object-fit: contain; flex: none; border-radius: 4px; }
.sr-row .ph { width: 30px; text-align: center; font-size: 1.3rem; color: #6c6c70; flex: none; }
.sr-text { min-width: 0; flex: 1; }
.sr-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-meta { font-size: 11px; margin-top: 2px; color: #555; line-height: 1.5; }
.sr-meta span { display: inline-block; margin-left: 8px; }
.sr-meta .sr-price { color: #000; font-weight: 600; }
.sr-msg { padding: 10px 5px; text-align: center; font-size: 13px; color: #555; line-height: 1.8; }
.sr-loader { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0; font-size: 13px; color: #555; }
.sr-loader::before {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid #e5e5ea;
    border-top-color: #007aff;
    border-radius: 50%;
    animation: sr-spin .7s linear infinite;
}
.sr-all { display: block; text-align: center; padding: 8px 0 0; font-size: 13px; font-weight: 600; text-decoration: none; }
@keyframes sr-spin { to { transform: rotate(360deg); } }

/* الجوال: النتائج بعرض الهيدر كاملاً، الشاشات الكبيرة: تحت خانة البحث فقط */
#sf { position: static; }
@media (min-width: 768px) {
    #sf { position: relative; }
}


/*
|----------------------------------------------------------------------------------
|   Header menus (الأدوات · القائمة · حسابي)
|----------------------------------------------------------------------------------
|   كمبيوتر: قائمة منسدلة تفتح بالمرور · هاتف وتابلت: ورقة من الأسفل (#tools · #menu)
*/
.btn.nav-btn.show { background: #e5f0ff; box-shadow: none; }
.nav-btn .ph-caret-down { transition: transform .18s ease; }
.nav-btn.show .ph-caret-down { transform: rotate(180deg); }
.nav-dd { --bs-dropdown-link-hover-bg: #f2f2f7; --bs-dropdown-link-active-bg: #e5f0ff; --bs-dropdown-link-active-color: #000; }
.nav-dd.show { animation: nav-in .18s ease; }
.nav-dd::before { content: ""; position: absolute; top: -6px; left: 2.6rem; width: 12px; height: 12px; background: #fff; border-radius: 2px; transform: rotate(45deg); }
.nav-dd-tools { width: 600px; }
.nav-dd-menu { width: 780px; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } }


/*
|----------------------------------------------------------------------------------
|   4) Home
|----------------------------------------------------------------------------------
*/
.hero {
    color: #fff;
    border-radius: 1.5rem;
    position: relative;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, .18) 0, transparent 32%),
        radial-gradient(circle at 88% 85%, rgba(255, 255, 255, .14) 0, transparent 30%),
        linear-gradient(135deg, #0062cc 0%, #007aff 45%, #34aadc 100%);
}
.hero h1 { font-size: clamp(1.55rem, 4vw, 2.4rem); }
.hero-search { position: relative; z-index: 5; }
.hero-search .form-control { height: 52px; font-size: 1rem; }
.hero-search .input-group-text { background: #fff; }
.hero-stat b { display: block; font-size: 1.45rem; line-height: 1.25; }
.hero-stat small { opacity: .85; font-size: .8rem; }
.hero .badge.bg-white { --bs-bg-opacity: .2; }

.cta-ph {
    color: #fff;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, .2) 0, transparent 35%),
        linear-gradient(135deg, #1e9e4a 0%, #34c759 55%, #30b0c7 100%);
}
.cta-ph .btn-light { color: #13692f; --bs-btn-bg: #fff; --bs-btn-border-color: #fff; }
.cta-ph .stat-card { background: rgba(255, 255, 255, .96); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .35rem .85rem;
    border-radius: 50rem;
    background: #fff;
    color: #007aff;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    border: .5px solid #e5e5ea;
    transition: background-color .15s ease, color .15s ease;
}
.chip:hover { background: #e5f0ff; color: #0062cc; }
.chip.active { background: #007aff; border-color: #007aff; color: #fff; }
.chip small { opacity: .7; }
.chip:not(.active) small { opacity: 1; color: #6c6c70; }
.chip-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chip-scroll::-webkit-scrollbar { display: none; }

.cat-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    height: 100%;
    padding: .9rem .5rem;
    background: #fff;
    border-radius: .75rem;
    text-align: center;
    text-decoration: none;
    color: #000;
}
.cat-tile img { width: 56px; height: 56px; object-fit: contain; }
.cat-tile span { font-size: .85rem; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-tile small { font-size: .72rem; color: #6c6c70; }
.card-hover { transition: transform .15s ease, box-shadow .15s ease; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0px 4px 4px rgba(0, 0, 0, .08)}

.stat-card { background: #fff; border-radius: .75rem; padding: .75rem .5rem; height: 100%; }
.stat-card b { display: block; font-size: 1.3rem; line-height: 1.3; }
.stat-card small { display: block; color: #6c6c70; font-size: .75rem; }

.ios-ico-lg { width: 44px; height: 44px; border-radius: 11px; font-size: 1.5rem; }
.card-img-top.object-fit-cover { background: #e5e5ea; }


/*
|----------------------------------------------------------------------------------
|   5) Drug page
|----------------------------------------------------------------------------------
*/
#img img { aspect-ratio: 1 / 1; height: auto; object-fit: contain; }
.thumb { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: .6rem; border: .5px solid #e5e5ea; padding: 2px; flex: none; }
.thumb-sm { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: .5rem; border: .5px solid #e5e5ea; padding: 2px; flex: none; }

/* كارت الدواء: drugs_view($drugs, 'card') */
.drug-card-img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #fff; border-radius: .6rem; overflow: hidden; }
.drug-card-img img { width: 70%; height: 100%; object-fit: contain; }
.drug-card-img.is-empty { background: #f2f2f7; }
.drug-card-img.is-empty img { width: 60%; height: 60%; }
.drug-card-name { line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
img.avatar { display: block; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .8rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.3rem; }
.comment:last-child { border-bottom: 0 !important; padding-bottom: 0 !important; }
.comment-text { overflow-wrap: anywhere; }

.star-input { display: inline-flex; flex-direction: row-reverse; gap: .1rem; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input label { font-size: 1.5rem; line-height: 1; color: #c7c7cc; cursor: pointer; transition: color .1s ease; }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: #ff9500; }
.star-input input:focus-visible + label { outline: 2px solid #007aff; border-radius: 4px; }

#article h4 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .4rem; }
#article ul { padding-right: 1.25rem; }
#article .table { font-size: .92rem; }

.content { line-height: 1.9; overflow-wrap: anywhere; }
.content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.content h3 { font-size: 1.05rem; font-weight: 700; margin: 1.25rem 0 .5rem; }
.content h4 { font-size: 1rem; font-weight: 700; margin: 1rem 0 .5rem; }
.content p { margin-bottom: 1rem; }
.content ul,
.content ol { padding-right: 1.25rem; margin-bottom: 1rem; }
.content li { margin-bottom: .35rem; }
.content img { max-width: 100%; height: auto; border-radius: .75rem; }
.content table { width: 100%; margin-bottom: 1rem; }
.content > :last-child { margin-bottom: 0; }

.ad-slot { margin: 1.5rem 0; text-align: center; background: red;}
.ad-slot small { display: block; font-size: .7rem; color: #6c6c70; margin-bottom: .25rem; }
.ad-slot ins { display: block; min-height: 90px; }


/*
|----------------------------------------------------------------------------------
|   6) Pharmacies
|----------------------------------------------------------------------------------
*/
.ph-cover {
    height: 150px;
    border-radius: .75rem .75rem 0 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 30%, rgba(255, 255, 255, .3) 0, transparent 40%),
        linear-gradient(135deg, #34c759 0%, #30b0c7 50%, #007aff 100%);
}
.ph-cover img { width: 100%; height: 100%; object-fit: cover; }
.ph-logo {
    width: 92px;
    height: 92px;
    object-fit: cover;
    border-radius: 24px;
    border: 4px solid #fff;
    background: #fff;
    margin-top: -46px;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.ph-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 14px; border: .5px solid #e5e5ea; background: #fff; flex: none; }
.ph-card.is-vip { box-shadow: inset 0 0 0 1.5px #FF9800; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.offer { background: #fff8eb; border: 1px dashed #ff9500; border-radius: .75rem; }
.service { display: flex; align-items: center; gap: .5rem; height: 100%; background: #f2f2f7; border-radius: .6rem; padding: .55rem .75rem; font-size: .9rem; }
.service i { color: #007aff; font-size: 1.25rem; flex: none; }
.hours-table tr.today th,
.hours-table tr.today td { color: #007aff; font-weight: 700; }
.map-frame { display: block; width: 100%; height: 260px; border: 0; border-radius: .75rem; background: #e5e5ea; }
.gallery a { display: block; }
.gallery img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: .6rem; }
.rate-bar { flex: 1; height: 6px; -webkit-appearance: none; appearance: none; border: 0; border-radius: 3px; background: #e5e5ea; overflow: hidden; }
.rate-bar::-webkit-progress-bar { background: #e5e5ea; border-radius: 3px; }
.rate-bar::-webkit-progress-value { background: #ff9500; border-radius: 3px; }
.rate-bar::-moz-progress-bar { background: #ff9500; border-radius: 3px; }


/*
|----------------------------------------------------------------------------------
|   7) Accounts · login · panel
|----------------------------------------------------------------------------------
*/
.role-pick {
    display: block;
    height: 100%;
    padding: 1rem .75rem;
    background: #fff;
    border-radius: .75rem;
    border: 2px solid transparent;
    text-decoration: none;
    color: #000;
    transition: border-color .15s ease, background-color .15s ease;
}
.role-pick i { font-size: 2.2rem; }
.role-pick:hover { border-color: #b3d7ff; color: #000; }
.role-pick.active { border-color: #007aff; background: #f0f7ff; }

.letter-nav .btn { min-width: 2.1rem; padding: .2rem .45rem; font-weight: 500; }

.check-list .ph-check-circle { color: #34c759; }
.check-list .ph-circle { color: #c7c7cc; }
.bars { display: flex; align-items: stretch; gap: 6px; height: 150px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; }
.bar-fill { display: block; width: 100%; max-width: 28px; background: #007aff; border-radius: 4px 4px 0 0; }
.bar-fill.today { background: #34c759; }
.bar small { font-size: .7rem; color: #6c6c70; margin-top: 4px; }
.bh-5 { height: 5%; }
.bh-10 { height: 10%; }
.bh-15 { height: 15%; }
.bh-20 { height: 20%; }
.bh-25 { height: 25%; }
.bh-30 { height: 30%; }
.bh-35 { height: 35%; }
.bh-40 { height: 40%; }
.bh-45 { height: 45%; }
.bh-50 { height: 50%; }
.bh-55 { height: 55%; }
.bh-60 { height: 60%; }
.bh-65 { height: 65%; }
.bh-70 { height: 70%; }
.bh-75 { height: 75%; }
.bh-80 { height: 80%; }
.bh-85 { height: 85%; }
.bh-90 { height: 90%; }
.bh-95 { height: 95%; }
.bh-100 { height: 100%; }
.photo-tile { position: relative; }
.photo-tile img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: .6rem; }
.photo-tile form { position: absolute; top: .4rem; left: .4rem; }
.hours-row + .hours-row { border-top: .5px solid #e5e5ea; }
.service-check { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; background: #f2f2f7; border-radius: .6rem; height: 100%; cursor: pointer; }
.service-check i { color: #007aff; font-size: 1.25rem; }


/*
|----------------------------------------------------------------------------------
|   8) Small screens
|----------------------------------------------------------------------------------
*/
@media (min-width: 768px) {
    .ph-cover { height: 210px; }
}

@media (max-width: 575.98px) {
    .ios-act { font-size: .72rem; }
    .hero,
    .cta-ph { border-radius: 1.1rem; }
    .display-6 { font-size: 2rem; }
    .stat-card b { font-size: 1.15rem; }
}

/*
|----------------------------------------------------------------------------------
|   الصفحة الرئيسية: الروابط السريعة + الأدوات الصحية
|----------------------------------------------------------------------------------
|   الروابط السريعة (7):  هاتف = سطر واحد يُسحب بالإصبع · من 576px = 7 في سطر واحد
|   الأدوات الصحية (7):   هاتف = عمودين · تابلت = 3 · كمبيوتر = 4 · شاشة كبيرة = 8 (سطر واحد)
|                         والأداة الأولى بطاقة عريضة دائماً، فلا يبقى كرت وحيد في أي شاشة.
*/
.quick-nav { display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px; padding: 2px 12px 6px; }
.quick-nav::-webkit-scrollbar { display: none; }
.quick-nav > * { flex: 0 0 86px; scroll-snap-align: start; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .15s ease, box-shadow .15s ease; }
@media (min-width: 576px) {
    .quick-nav { overflow: visible; margin: 0; padding: 0; }
    .quick-nav > * { flex: 1 1 0; min-width: 0; }
}

.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.htool { position: relative; display: flex; flex-direction: column; gap: .6rem; min-height: 124px; padding: .9rem; border-radius: 1rem; background: #fff; color: #000; text-decoration: none; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: transform .15s ease, box-shadow .15s ease; }
.htool-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex: none; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #fff)) }
.htool-txt { position: relative; z-index: 1; min-width: 0; }
.htool b { display: block; font-size: .95rem; line-height: 1.4; }
.htool small { display: block; font-size: .76rem; line-height: 1.5; color: #6c6c70; margin-top: .15rem; }
.htool-go { position: absolute; top: .95rem; left: .95rem; font-size: 1.05rem; color: #c7c7cc; transition: transform .15s ease, color .15s ease; }
.htool:hover .htool-go { color: var(--c); transform: translateX(-3px); }

/* الأداة الأولى: بطاقة عريضة ملونة */
.htool-main { grid-column: 1 / -1; flex-direction: row; align-items: center; min-height: 96px; color: #fff; background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .22) 0, transparent 40%), linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #000), var(--c) 55%, color-mix(in srgb, var(--c) 55%, #fff)); box-shadow: 0 10px 24px color-mix(in srgb, var(--c) 30%, transparent); }
.htool-main::after { background: #fff; opacity: .12; }
.htool-main:hover { color: #fff; }
.htool-main .htool-ico { width: 56px; height: 56px; font-size: 1.85rem; background: rgba(255, 255, 255, .2); box-shadow: none; }
.htool-main b { font-size: 1.1rem; }
.htool-main small { color: rgba(255, 255, 255, .88); font-size: .82rem; }
.htool-main .htool-go { position: static; margin-inline-start: auto; color: #fff; font-size: 1.3rem; }
.htool-main:hover .htool-go { color: #fff; }

@media (min-width: 576px) {
    .tools-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 992px) {
    .tools-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .htool-main { grid-column: span 2; }
}
@media (min-width: 1400px) {
    .tools-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .htool { min-height: 132px; }
}


.article-cover { aspect-ratio: 2 / 1; height: auto; object-fit: cover; background: #e5e5ea; }


/*
|----------------------------------------------------------------------------------
|   9) السعر بالدولار · التقييم السريع
|----------------------------------------------------------------------------------
*/
.usd-chip { display: inline-flex; align-items: center; gap: .3rem; background: #eaf7ee; color: #1e7b34; border-radius: 50rem; padding: .25rem .75rem; font-size: .85rem; }
.usd-chip i { font-size: 1.05rem; }
.usd-chip small { color: #6c757d; }
.quick-rate { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.quick-stars { display: inline-flex; gap: .05rem; }
.quick-stars button { border: 0; background: none; padding: 0 .1rem; font-size: 1.6rem; line-height: 1; color: #c7c7cc; cursor: pointer; transition: color .1s ease, transform .1s ease; }
.quick-stars:hover button { color: #ff9500; }
.quick-stars button:hover ~ button { color: #c7c7cc; }
.quick-stars button:hover { transform: scale(1.12); }
.quick-stars button:focus-visible { outline: 2px solid #007aff; border-radius: .25rem; }


/*
|----------------------------------------------------------------------------------
|   10) لوحة التحكم
|----------------------------------------------------------------------------------
*/
.price-input { width: 6.5rem; }
.rank-input { width: 4.5rem; }
.code-area { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.7; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { border-bottom: 0; }
.table-admin { font-size: .875rem; }
.table-admin th { font-weight: 600; color: #6c757d; white-space: nowrap; }
.table-admin td,
.table-admin th { vertical-align: middle; }
.list-group-item .btn-light { background-color: #f2f2f7; border-color: #f2f2f7; }

/* شريط موافقة ملفات الارتباط */
#consent { max-width: 28rem; z-index: 1085; }
