/* ============================================================
   FoodStation — نظام التصميم
   نفس الهوية البصرية للنظام القديم: برتقالي #f97316 (orange-500)،
   خط Cairo، حواف مدورة كبيرة، RTL أولاً.
   ============================================================ */

:root {
    /* الألوان الأساسية — مطابقة لتدرجات Tailwind المستخدمة قديماً */
    --primary: #f97316;          /* orange-500 */
    --primary-hover: #ea580c;    /* orange-600 */
    --primary-dark: #c2410c;     /* orange-700 */
    --primary-light: #ffedd5;    /* orange-100 */
    --primary-lighter: #fff7ed;  /* orange-50 */

    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --green-50: #f0fdf4;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --green-700: #15803d;
    --red-50: #fef2f2;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --yellow-50: #fefce8;
    --yellow-600: #ca8a04;
    --blue-50: #eff6ff;
    --blue-600: #2563eb;
    --emerald-600: #059669;

    /* ألوان ثانوية — للتمييز بين البيانات وكسر أحادية البرتقالي بمساحات كبيرة، بلا مساس
       بالألوان الدلالية (أخضر=نجاح/نشط، أحمر=خطر، برتقالي=العلامة والتنبيه). */
    --accent-purple: #7c3aed;
    --accent-purple-soft: #f3e8ff;
    --accent-teal: #0d9488;
    --accent-teal-soft: #ccfbf1;
    --accent-navy: #1f2937;

    --background: var(--gray-50);
    --card: #ffffff;
    --border: var(--gray-200);

    --radius: 0.75rem;       /* rounded-xl */
    --radius-lg: 1rem;       /* rounded-2xl */
    --radius-xl: 1.5rem;     /* rounded-3xl */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.05);

    --font: 'Cairo', ui-sans-serif, system-ui, -apple-system, sans-serif;
}

/* ── إعادة الضبط ── */
*, *::before, *::after { box-sizing: border-box; border: 0 solid var(--border); }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ── تسلسل تايبوغرافي عام — وزن/تباعد يميّز كل مستوى بدل الاعتماد على أحجام متقاربة ── */
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 900; letter-spacing: -.01em; color: var(--gray-900); line-height: 1.25; }
h1 { font-size: 1.9rem; letter-spacing: -.02em; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; }
@media (min-width: 768px) { h1 { font-size: 2.5rem; } h2 { font-size: 1.65rem; } }
p { color: var(--gray-600); }

/* كلمة استهلالية صغيرة فوق عنوان رئيسي — تعطي طبقة بصرية إضافية قبل العنوان */
.eyebrow {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .72rem; font-weight: 800; letter-spacing: .06em;
    color: var(--brand, var(--primary)); text-transform: uppercase;
    margin-bottom: .5rem;
}
/* فقرة تمهيدية أكبر وأخف وزناً من الفقرات العادية — للنصوص التعريفية أسفل العناوين */
.lead { font-size: 1.05rem; line-height: 1.8; color: var(--gray-500); font-weight: 400; }
button { font: inherit; cursor: pointer; background: none; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ── الحاويات ── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

/* ── البطاقات ── */
.card {
    background: var(--card);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}
.card-body { padding: 1.5rem; }
@media (min-width: 640px) { .card-body { padding: 2rem; } }

/* ── الأزرار ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-size: .875rem; font-weight: 700;
    transition: background-color .15s, color .15s, opacity .15s, box-shadow .15s;
    white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgb(249 115 22 / .3); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-200); }
.btn-outline { background: #fff; color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-outline:hover:not(:disabled) { background: var(--gray-50); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover:not(:disabled) { background: var(--red-600); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover:not(:disabled) { background: var(--green-700); }
.btn-block { width: 100%; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }
.btn-ghost { color: var(--gray-500); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-700); }
.btn.is-loading, button.is-loading { position: relative; pointer-events: none; }
.btn.is-loading .btn-label, button.is-loading .btn-label { visibility: hidden; }
.btn.is-loading::after, button.is-loading::after {
    content: ''; position: absolute; inset: 0; margin: auto;
    width: 1rem; height: 1rem; border-radius: 50%;
    border: 2px solid currentColor; border-inline-start-color: transparent;
    animation: btn-spin .65s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ── النماذج ── */
.field { margin-bottom: 1.15rem; }
.field label {
    display: block; margin-bottom: .4rem;
    font-size: .875rem; font-weight: 600; color: var(--gray-700);
}
.input, .select, .textarea {
    width: 100%;
    padding: .75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-50);
    font-size: .875rem;
    color: var(--gray-900);
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--gray-400); }
/* حقول التاريخ/الوقت الأصلية تُعرض بترميز غريب داخل صفحة RTL — نجبرها LTR داخلياً مع محاذاة يمين */
input[type="date"], input[type="time"], input[type="datetime-local"], input[type="month"] {
    direction: ltr; text-align: right;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: #fb923c;
    background: #fff;
    box-shadow: 0 0 0 3px var(--primary-light);
}
.input-icon { position: relative; }
.input-icon .input { padding-inline-start: 2.5rem; }
.input-icon > svg, .input-icon > .icon {
    position: absolute; inset-inline-start: .8rem; top: 50%;
    transform: translateY(-50%);
    width: 1rem; height: 1rem; color: var(--gray-400); pointer-events: none;
}
.field-error { margin-top: .35rem; font-size: .75rem; color: var(--red-500); }
.hint { font-size: .78rem; color: var(--gray-400); margin-top: .3rem; }
input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--primary); border-radius: .25rem; }

/* ── التنبيهات ── */
.alert {
    display: flex; align-items: flex-start; gap: .6rem;
    padding: .8rem 1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; margin-bottom: 1rem;
}
.alert::before {
    content: ''; flex-shrink: 0; width: 1.1rem; height: 1.1rem; margin-top: .05rem;
    background-color: currentColor;
    -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
    -webkit-mask-size: contain; mask-size: contain;
    -webkit-mask-position: center; mask-position: center;
}
.alert-success { background: var(--green-50); color: var(--green-700); }
.alert-success::before { -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpolyline points="7.5,12.5 10.5,15.5 16.5,9"/%3E%3C/svg%3E'); mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cpolyline points="7.5,12.5 10.5,15.5 16.5,9"/%3E%3C/svg%3E'); }
.alert-error { background: var(--red-50); color: var(--red-700); }
.alert-error::before { -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cline x1="9" y1="9" x2="15" y2="15"/%3E%3Cline x1="15" y1="9" x2="9" y2="15"/%3E%3C/svg%3E'); mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cline x1="9" y1="9" x2="15" y2="15"/%3E%3Cline x1="15" y1="9" x2="9" y2="15"/%3E%3C/svg%3E'); }
.alert-warning { background: var(--yellow-50); color: var(--yellow-600); }
.alert-warning::before { -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 3.5 22 20.5H2Z"/%3E%3Cline x1="12" y1="9.5" x2="12" y2="14"/%3E%3Cline x1="12" y1="17" x2="12" y2="17.01"/%3E%3C/svg%3E'); mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 3.5 22 20.5H2Z"/%3E%3Cline x1="12" y1="9.5" x2="12" y2="14"/%3E%3Cline x1="12" y1="17" x2="12" y2="17.01"/%3E%3C/svg%3E'); }
.alert-info { background: var(--blue-50); color: var(--blue-600); }
.alert-info::before { -webkit-mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cline x1="12" y1="11" x2="12" y2="16.5"/%3E%3Cline x1="12" y1="7.5" x2="12" y2="7.51"/%3E%3C/svg%3E'); mask-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9"/%3E%3Cline x1="12" y1="11" x2="12" y2="16.5"/%3E%3Cline x1="12" y1="7.5" x2="12" y2="7.51"/%3E%3C/svg%3E'); }

/* ── إشعارات Toast (تحل محل شريط التنبيه الثابت لرسائل النجاح العابرة) ── */
.toast-viewport {
    position: fixed; top: 1rem; inset-inline-end: 1rem; z-index: 300;
    display: flex; flex-direction: column; gap: .6rem;
    width: min(360px, calc(100vw - 2rem));
    pointer-events: none;
}
.toast-viewport .toast {
    pointer-events: auto; margin-bottom: 0;
    box-shadow: 0 10px 30px -8px rgb(0 0 0 / .25), 0 0 0 1px rgb(0 0 0 / .04);
    animation: toast-in .25s ease;
    position: relative; overflow: hidden; padding-inline-end: 2.2rem;
}
.toast-viewport .toast.leaving { animation: toast-out .18s ease forwards; }
.toast-close {
    position: absolute; top: .55rem; inset-inline-end: .6rem;
    width: 1.3rem; height: 1.3rem; border-radius: 50%;
    display: grid; place-items: center; line-height: 1;
    font-size: 1rem; color: inherit; opacity: .55;
}
.toast-close:hover { opacity: 1; background: rgb(0 0 0 / .06); }
.toast-progress {
    position: absolute; inset-inline-start: 0; bottom: 0; height: 2px;
    background: currentColor; opacity: .35; width: 100%;
    transform-origin: inline-start;
}
.toast-progress.running { animation-name: toast-progress; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes toast-in { from { transform: translateY(-14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes toast-out { to { transform: translateY(-10px); opacity: 0; } }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) {
    .toast-viewport { top: .6rem; inset-inline-end: .6rem; inset-inline-start: .6rem; width: auto; }
}

/* ── الشارات (حالات الحجوزات وغيرها) ── */
.badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .2rem .7rem; border-radius: 999px;
    font-size: .75rem; font-weight: 700;
}
.badge-yellow { background: var(--yellow-50); color: var(--yellow-600); }
.badge-blue { background: var(--blue-50); color: var(--blue-600); }
.badge-green { background: var(--green-50); color: var(--green-600); }
.badge-red { background: var(--red-50); color: var(--red-600); }
.badge-gray { background: var(--gray-100); color: var(--gray-500); }
.badge-emerald { background: #ecfdf5; color: var(--emerald-600); }
.badge-orange { background: var(--primary-lighter); color: var(--primary-dark); }

/* ── الجداول ── */
/* بلا min-width كانت الجداول تنكمش وتلف نصها بدل التمرير الأفقي على الجوال (overflow-x
   في .table-wrap لا يعمل إطلاقاً إن كان الجدول نفسه يتقلص ليلائم العرض المتاح). */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--gray-100); background: #fff; -webkit-overflow-scrolling: touch; }
.table { min-width: 640px; }
.table th {
    padding: .8rem 1rem; text-align: start;
    font-size: .75rem; font-weight: 700; color: var(--gray-500);
    background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
    white-space: nowrap;
}
.table td { padding: .9rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--gray-50); }

/* ── أدوات مساعدة ── */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.text-small { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.text-primary { color: var(--primary); }
.text-danger { color: var(--red-500); }
.text-success { color: var(--green-600); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: .25rem; } .gap-2 { gap: .5rem; } .gap-3 { gap: .75rem; } .gap-4 { gap: 1rem; } .gap-6 { gap: 1.5rem; }
.mt-1 { margin-top: .25rem; } .mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* ── شاشة المصادقة (تصميم صفحة الدخول القديمة: لوح برتقالي + نموذج) ── */
.auth-screen { display: flex; min-height: 100vh; }
.auth-hero {
    display: none;
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem; text-align: center;
}
@media (min-width: 1024px) { .auth-hero { display: flex; width: 50%; } }
.auth-hero::before, .auth-hero::after {
    content: ''; position: absolute; border-radius: 50%; background: rgb(255 255 255 / .05);
}
.auth-hero::before { width: 20rem; height: 20rem; top: -5rem; left: -5rem; }
.auth-hero::after { width: 15rem; height: 15rem; bottom: 2.5rem; right: 2.5rem; }
.auth-hero-logo {
    width: 5rem; height: 5rem; margin: 0 auto 2rem;
    display: grid; place-items: center;
    background: rgb(255 255 255 / .2); border-radius: var(--radius-xl);
    backdrop-filter: blur(4px);
    font-size: 2.5rem;
}
.auth-hero h1 { font-size: 2.5rem; font-weight: 900; margin-bottom: .75rem; }
.auth-hero .tagline { font-size: 1.25rem; color: var(--primary-light); font-weight: 500; margin-bottom: 2rem; }
.auth-hero-features { position: relative; z-index: 1; display: grid; gap: 1rem; text-align: start; }
.auth-hero-features li {
    display: flex; align-items: center; gap: .75rem;
    background: rgb(255 255 255 / .1); border-radius: var(--radius-lg);
    padding: .75rem 1rem; font-weight: 500;
}
.auth-hero-features .emoji { font-size: 1.5rem; }
.auth-form-panel {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--gray-50); padding: 3rem 1.5rem;
}
.auth-form-box { width: 100%; max-width: 28rem; }
.auth-mobile-logo { display: flex; flex-direction: column; align-items: center; margin-bottom: 2rem; }
@media (min-width: 1024px) { .auth-mobile-logo { display: none; } }
.auth-mobile-logo .logo-badge {
    width: 3.5rem; height: 3.5rem; margin-bottom: .75rem;
    display: grid; place-items: center;
    background: var(--primary); border-radius: var(--radius-lg);
    font-size: 1.8rem;
}
.auth-mobile-logo h1 { font-size: 1.5rem; font-weight: 900; }

/* ── OTP ── */
.otp-inputs { display: flex; gap: .5rem; direction: ltr; justify-content: center; }
.otp-inputs .input { width: 3rem; text-align: center; font-size: 1.25rem; font-weight: 700; padding: .6rem 0; }

/* ── تبويبات ── */
.tabs { display: flex; gap: .25rem; background: var(--gray-100); border-radius: var(--radius); padding: .25rem; margin-bottom: 1.5rem; }
.tabs .tab {
    flex: 1; padding: .55rem 1rem; border-radius: calc(var(--radius) - .25rem);
    font-size: .85rem; font-weight: 700; color: var(--gray-500); text-align: center;
    transition: all .15s;
}
.tabs .tab.active { background: #fff; color: var(--gray-900); box-shadow: var(--shadow-sm); }

/* ============================================================
   واجهة الموقع العام — مطابقة لتصميم main-layout القديم
   اللون الأساسي للموقع: #E8490F
   ============================================================ */

:root {
    --brand: #E8490F;
    --brand-hover: #d03d0a;
    --brand-soft: #fff7ed; /* orange-50 */
}

/* ── الهيدر ── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgb(255 255 255 / .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow-sm);
}
.site-header .inner {
    max-width: 80rem; margin-inline: auto;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .6rem 1rem;
}
@media (min-width: 768px) { .site-header .inner { padding-inline: 1.5rem; } }
.site-logo img { height: 4rem; width: auto; }
.site-nav { display: none; flex: 1; align-items: center; justify-content: center; gap: .25rem; }
@media (min-width: 768px) { .site-nav { display: flex; } }
.site-nav a {
    padding: .5rem .9rem; border-radius: var(--radius);
    font-size: .875rem; font-weight: 500; color: var(--gray-600);
    transition: all .15s;
}
.site-nav a:hover { background: var(--brand-soft); color: var(--brand); }
.site-nav a.offers-link { color: var(--brand); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.pill-new {
    background: var(--brand); color: #fff; border-radius: 999px;
    padding: .1rem .45rem; font-size: .62rem; font-weight: 700; line-height: 1.4;
}
.header-actions { display: flex; align-items: center; gap: .5rem; }
/* أيقونات SVG الموحدة — محاذاة عمودية آمنة أينما استُخدمت (أزرار، روابط، قوائم) */
svg.ico { display: inline-block; vertical-align: -.32em; flex-shrink: 0; }
.icon-btn {
    position: relative; width: 2.25rem; height: 2.25rem;
    display: grid; place-items: center;
    border: 1px solid var(--gray-200); border-radius: 999px; color: var(--gray-500);
    transition: all .15s; background: #fff;
}
.icon-btn:hover { border-color: rgb(232 73 15 / .3); background: var(--brand-soft); color: var(--brand); }
.notif-count {
    position: absolute; top: -.15rem; inset-inline-end: -.15rem;
    width: 1rem; height: 1rem; display: grid; place-items: center;
    background: var(--brand); color: #fff; border-radius: 999px;
    font-size: .62rem; font-weight: 700;
}
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover:not(:disabled) { background: var(--brand-hover); }
.btn-brand-outline { border: 2px solid var(--brand); color: var(--brand); background: transparent; border-radius: 999px; }
.btn-brand-outline:hover { background: var(--brand); color: #fff; }
.text-brand { color: var(--brand); }

/* قائمة المستخدم المنسدلة */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + .5rem); inset-inline-start: 0; z-index: 60;
    min-width: 13rem; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); box-shadow: var(--shadow-lg);
    overflow: hidden; padding: .35rem;
}
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .6rem .8rem; border-radius: var(--radius);
    font-size: .85rem; color: var(--gray-700); text-align: start;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--gray-50); }
.notif-panel {
    position: absolute; top: calc(100% + .5rem); inset-inline-start: 0; z-index: 60;
    width: 20rem; background: #fff; border-radius: var(--radius-lg);
    border: 1px solid var(--gray-100); box-shadow: var(--shadow-lg); overflow: hidden;
}
.notif-panel .head { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--gray-50); }
.notif-panel .list { max-height: 24rem; overflow-y: auto; }
.notif-item { display: block; padding: .8rem 1rem; border-bottom: 1px solid var(--gray-50); }
.notif-item.unread { background: var(--brand-soft); }
.notif-item:hover { background: var(--gray-50); }

/* قائمة الجوال */
.mobile-menu { border-top: 1px solid var(--gray-100); background: #fff; padding: .75rem 1rem 1.25rem; }
@media (min-width: 768px) { .mobile-menu, .mobile-menu-btn { display: none !important; } }
.mobile-menu a { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-radius: var(--radius); font-size: .875rem; font-weight: 500; color: var(--gray-700); }
.mobile-menu a:hover { background: var(--brand-soft); color: var(--brand); }

/* ── شريط التنقل السفلي (جوال) ── */
.bottom-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    border-top: 1px solid var(--gray-100);
    background: rgb(255 255 255 / .95); backdrop-filter: blur(12px);
    display: grid; grid-template-columns: repeat(5, 1fr);
}
@media (min-width: 768px) { .bottom-nav { display: none; } }
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: .15rem;
    padding: .6rem 0 .7rem; font-size: .62rem; font-weight: 500; color: var(--gray-400);
}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--brand); }
.bottom-nav .nav-icon { font-size: 1.25rem; line-height: 1; }
main.site-main { padding-bottom: 5rem; }
@media (min-width: 768px) { main.site-main { padding-bottom: 0; } }

/* ── الفوتر ── */
.site-footer { background: var(--gray-900); color: var(--gray-400); padding: 3.5rem 0 2rem; }
.site-footer .cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .site-footer .cols { grid-template-columns: repeat(4, 1fr); } }
.site-footer h4 { color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer .links { display: flex; flex-direction: column; gap: .6rem; font-size: .875rem; }
.site-footer .links a:hover { color: #fff; }
.site-footer .brand-col { grid-column: span 2; }
@media (min-width: 768px) { .site-footer .brand-col { grid-column: span 1; } }
.site-footer .socials { display: flex; gap: .5rem; }
.site-footer .socials a {
    width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
    background: rgb(255 255 255 / .1); border-radius: 999px; color: var(--gray-300);
    transition: all .15s;
}
.site-footer .socials a:hover { background: var(--brand); color: #fff; }
.site-footer .bottom {
    border-top: 1px solid rgb(255 255 255 / .1); padding-top: 1.5rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    text-align: center; font-size: .75rem; color: var(--gray-500);
}

/* ── تلاشي/ظهور عند التمرير — أداة عامة خفيفة الوزن (بلا مكتبات) ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: .08s; }
.reveal-2 { transition-delay: .16s; }
.reveal-3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── الرئيسية: Hero ── */
.hero {
    position: relative; display: flex; align-items: center; overflow: hidden;
    min-height: 320px; background-size: 104% auto; background-position: center;
    animation: heroZoom 22s ease-in-out infinite alternate;
}
@media (min-width: 768px) { .hero { min-height: 580px; } }
@keyframes heroZoom { from { background-size: 104% auto; } to { background-size: 118% auto; } }
@media (prefers-reduced-motion: reduce) { .hero { animation: none; } }
.hero .overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(46rem 26rem at 8% 108%, rgb(232 73 15 / .45), transparent 62%),
        linear-gradient(to left, rgb(0 0 0 / .9), rgb(0 0 0 / .62) 50%, rgb(0 0 0 / .22));
}
.hero .content { position: relative; z-index: 1; width: 100%; padding: 2rem 0; }
.hero .box { max-width: 36rem; }
.hero .live-badge {
    display: none; align-items: center; gap: .5rem; margin-bottom: 1rem;
    background: rgb(255 255 255 / .15); backdrop-filter: blur(4px);
    border: 1px solid rgb(255 255 255 / .2); border-radius: 999px;
    padding: .35rem 1rem; font-size: .75rem; font-weight: 700; color: #fff;
}
@media (min-width: 768px) { .hero .live-badge { display: inline-flex; } }
.live-dot { position: relative; width: .5rem; height: .5rem; }
.live-dot::before { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--brand); animation: ping 1.2s cubic-bezier(0,0,.2,1) infinite; }
.live-dot::after { content: ''; position: absolute; inset: 0; border-radius: 999px; background: var(--brand); }
@keyframes ping { 75%, 100% { transform: scale(2.2); opacity: 0; } }
.hero h1 { font-size: 1.6rem; font-weight: 900; line-height: 1.3; color: #fff; margin-bottom: .75rem; }
@media (min-width: 768px) { .hero h1 { font-size: 3.5rem; margin-bottom: 1rem; } }
.hero h1 .accent { color: var(--brand); }
.hero .sub { display: none; color: var(--gray-200); font-size: 1.1rem; line-height: 1.8; margin-bottom: 2rem; }
@media (min-width: 768px) { .hero .sub { display: block; } }
.hero-search { overflow: hidden; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 25px 50px -12px rgb(0 0 0 / .25); }
.hero-search .row { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.hero-search input { flex: 1; border: 0; outline: none; background: transparent; font-size: .875rem; color: var(--gray-800); }
.hero-search button { flex-shrink: 0; background: var(--brand); color: #fff; border-radius: var(--radius); padding: .5rem 1.25rem; font-size: .875rem; font-weight: 700; }
.hero-search button:hover { background: var(--brand-hover); }

/* ── قسم أنواع الخدمة ── */
.section { padding: 1.5rem 0; }
@media (min-width: 768px) { .section { padding: 3.5rem 0; } }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-head { margin-bottom: 2rem; } }
.section-head h2 { font-size: 1.15rem; font-weight: 900; }
@media (min-width: 768px) { .section-head h2 { font-size: 1.5rem; } }
.section-head .sub { display: none; font-size: .875rem; color: var(--gray-500); margin-top: .15rem; }
@media (min-width: 768px) { .section-head .sub { display: block; } }
.see-all { display: inline-flex; align-items: center; gap: .25rem; font-size: .875rem; font-weight: 600; color: var(--brand); }
.see-all:hover { text-decoration: underline; }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 768px) { .service-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
.service-card { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; }
.service-card .thumb {
    position: relative; width: 100%; aspect-ratio: 1; border-radius: var(--radius-lg);
    overflow: hidden; box-shadow: var(--shadow);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s;
    display: grid; place-items: center; color: #fff; font-size: 2rem;
}
.service-card .thumb::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 100% at 25% -10%, rgb(255 255 255 / .38), transparent 55%);
}
.service-card:hover .thumb { transform: scale(1.08) translateY(-2px); box-shadow: var(--shadow-lg); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.service-card .name { font-size: .78rem; font-weight: 900; }
@media (min-width: 768px) { .service-card .name { font-size: .875rem; } }
.service-card .sub { font-size: .65rem; color: var(--gray-500); }
/* تدرجات أنواع الخدمة — نفس ألوان القديم */
.grad-food_truck { background: linear-gradient(135deg, #f97316, #ef4444); }
.grad-live_station { background: linear-gradient(135deg, #dc2626, #e11d48); }
.grad-catering { background: linear-gradient(135deg, #f59e0b, #f97316); }
.grad-buffet { background: linear-gradient(135deg, #facc15, #f59e0b); }
.grad-coffee { background: linear-gradient(135deg, #57534e, #b45309); }
.grad-default { background: linear-gradient(135deg, #6b7280, #4b5563); }
.grad-offers { background: linear-gradient(135deg, var(--brand), #f43f5e 50%, #db2777); }
.offers-hot-badge {
    position: absolute; top: .4rem; left: .4rem;
    background: #facc15; color: #713f12; border-radius: 999px;
    padding: .1rem .4rem; font-size: .58rem; font-weight: 900; box-shadow: var(--shadow-sm);
}

/* ── شريط الإحصائيات ── */
.stats-bar {
    position: relative; overflow: hidden;
    background: linear-gradient(120deg, var(--brand) 0%, #a8330a 100%);
}
.stats-bar::before {
    content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background: repeating-linear-gradient(-45deg, rgb(255 255 255 / .06) 0 2px, transparent 2px 14px);
}
.stats-bar .inner {
    position: relative; max-width: 80rem; margin-inline: auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    padding: .9rem 1rem;
}
.stats-bar .stat { text-align: center; padding-inline: .5rem; border-inline-start: 1px solid rgb(255 255 255 / .2); }
.stats-bar .stat:first-child { border-inline-start: 0; }
.stats-bar .icon { display: block; font-size: .95rem; margin-bottom: .15rem; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .15)); }
.stats-bar .value { font-size: 1.1rem; font-weight: 900; color: #fff; }
@media (min-width: 768px) { .stats-bar .value { font-size: 1.5rem; } }
.stats-bar .label { font-size: .68rem; color: rgb(255 255 255 / .85); }

/* ── بطاقات العلامات ── */
.brands-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
@media (min-width: 640px) { .brands-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .brands-grid { grid-template-columns: repeat(6, 1fr); gap: 1rem; } }
@media (min-width: 1024px) { .brands-grid { grid-template-columns: repeat(8, 1fr); } }
.brand-card {
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    padding: .4rem; border-radius: var(--radius-lg); text-align: center;
    transition: all .2s;
}
.brand-card:hover { transform: translateY(-3px); background: #fff; box-shadow: var(--shadow-lg); }
.brand-card .logo-wrap { position: relative; width: 100%; }
.brand-card .logo-box {
    aspect-ratio: 1; width: 100%; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .25s, border-color .25s;
}
.brand-card:hover .logo-box { border-color: rgb(232 73 15 / .35); box-shadow: 0 0 0 4px rgb(232 73 15 / .1); }
.brand-card .logo-box img { width: 100%; height: 100%; object-fit: contain; padding: .4rem; }
.brand-card .logo-box .initial { font-size: 1.4rem; font-weight: 900; color: var(--brand); }
.brand-card .rating-chip {
    position: absolute; bottom: -.45rem; left: 50%; transform: translateX(-50%);
    display: flex; align-items: center; gap: .15rem;
    background: #fff; border: 1px solid var(--gray-100); border-radius: 999px;
    padding: .1rem .45rem; font-size: .6rem; font-weight: 700; color: var(--gray-700);
    box-shadow: var(--shadow-sm); white-space: nowrap;
}
.brand-card .b-name { width: 100%; font-size: .72rem; font-weight: 700; color: var(--gray-800); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-card .b-city { font-size: .62rem; color: var(--gray-400); }

/* ── كيف يعمل ── */
.how-steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-line { position: absolute; top: 2.5rem; right: 16.67%; left: 16.67%; height: 2px; display: none;
    background: linear-gradient(to left, rgb(232 73 15 / .2), rgb(232 73 15 / .6), rgb(232 73 15 / .2)); }
@media (min-width: 768px) { .how-line { display: block; } }
.how-step { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; }
.how-step .circle {
    width: 3.5rem; height: 3.5rem; margin-bottom: .75rem;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand), #a8330a); border-radius: 999px;
    box-shadow: 0 10px 22px -8px rgb(232 73 15 / .55), inset 0 1px 0 rgb(255 255 255 / .25);
    transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.how-step:hover .circle { transform: scale(1.08) rotate(-4deg); }
@media (min-width: 768px) { .how-step .circle { width: 5rem; height: 5rem; margin-bottom: 1.25rem; } }
.how-step .num { font-size: .875rem; font-weight: 900; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.how-step h3 { font-size: .875rem; font-weight: 900; margin-bottom: .25rem; }
@media (min-width: 768px) { .how-step h3 { font-size: 1rem; } }
.how-step p { display: none; font-size: .875rem; color: var(--gray-500); line-height: 1.7; }
@media (min-width: 768px) { .how-step p { display: block; } }

/* ── بانر CTA ── */
.cta-banner {
    position: relative; margin: 0 .75rem 2.5rem; border-radius: var(--radius-xl); overflow: hidden;
    background: linear-gradient(to left, var(--brand), #f43f5e);
}
.cta-banner::before, .cta-banner::after {
    content: ''; position: absolute; border-radius: 999px; pointer-events: none;
    background: rgb(255 255 255 / .12); filter: blur(2px);
}
.cta-banner::before { width: 14rem; height: 14rem; top: -6rem; inset-inline-end: -3rem; }
.cta-banner::after { width: 9rem; height: 9rem; bottom: -5rem; inset-inline-start: 8%; background: rgb(255 255 255 / .08); }
@media (min-width: 768px) { .cta-banner { margin: 0 1.5rem 3.5rem; } }
@media (min-width: 1024px) { .cta-banner { margin-inline: auto; max-width: 80rem; } }
.cta-banner .inner {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 2rem 1.5rem; text-align: center;
}
@media (min-width: 768px) { .cta-banner .inner { flex-direction: row; text-align: start; padding: 2.5rem 2rem; } }
.cta-banner h3 { font-size: 1.1rem; font-weight: 900; color: #fff; }
@media (min-width: 768px) { .cta-banner h3 { font-size: 1.5rem; } }
.cta-banner p { font-size: .875rem; color: rgb(255 255 255 / .8); margin-top: .25rem; }
.cta-banner .btn-white {
    flex-shrink: 0; background: #fff; color: var(--brand); border-radius: 999px;
    padding: .75rem 1.75rem; font-size: .875rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.cta-banner .btn-white:hover { background: var(--gray-100); }

/* pill CTA عام */
.btn-pill { border-radius: 999px; padding: .85rem 2.5rem; }

/* ── بانر رأس صفحة عام (عروض، شركاء، للأعمال، الانضمام، صفحات CMS) ── */
.page-banner { position: relative; overflow: hidden; }
.page-banner::before, .page-banner::after {
    content: ''; position: absolute; border-radius: 999px; pointer-events: none; filter: blur(1px);
}
.page-banner::before { width: 18rem; height: 18rem; top: -8rem; inset-inline-end: -4rem; background: rgb(255 255 255 / .08); }
.page-banner::after { width: 11rem; height: 11rem; bottom: -6rem; inset-inline-start: 6%; background: rgb(255 255 255 / .06); }
.page-banner > * { position: relative; }
.page-banner.light::before { background: rgb(232 73 15 / .07); }
.page-banner.light::after { background: rgb(232 73 15 / .05); }

/* بطاقة عرض (offers) — رفعة عند المرور */
.offer-card { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* رفعة عامة عند المرور — لبطاقات الشركاء، عملاء الأعمال، إلخ */
.hover-lift { transition: transform .25s cubic-bezier(.34,1.56,.64,1), box-shadow .25s; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── صفحة تصفح العلامات ── */
.filter-chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600);
    border-radius: var(--radius-lg); padding: .5rem 1rem;
    font-size: .875rem; font-weight: 600; transition: all .15s; white-space: nowrap;
}
.chip:hover { border-color: var(--gray-300); background: var(--gray-50); }
.chip.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 1px 3px rgb(232 73 15 / .3); }
.chip img { width: 1.25rem; height: 1.25rem; border-radius: 999px; object-fit: cover; }
.chip-sm { padding: .35rem .8rem; font-size: .75rem; border-radius: var(--radius); }
.chip-sm.active { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); box-shadow: none; }
.clear-filters {
    display: inline-flex; align-items: center; gap: .35rem;
    background: var(--red-50); border: 1px solid #fecaca; color: var(--red-600);
    border-radius: var(--radius); padding: .35rem .8rem; font-size: .75rem; font-weight: 600;
}
.clear-filters:hover { background: #fee2e2; }
.filter-summary { background: var(--brand-soft); border-bottom: 1px solid #ffedd5; }
.filter-summary .inner {
    max-width: 80rem; margin-inline: auto; padding: .5rem 1rem;
    display: flex; align-items: center; gap: .5rem;
    font-size: .75rem; font-weight: 500; color: #c2410c;
}
.filter-summary .tag { background: #ffedd5; border-radius: 999px; padding: .15rem .65rem; }

/* بطاقة علامة بغلاف كامل (3/4) — نفس بطاقات brands/index القديمة */
.covers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .covers-grid { gap: 1rem; } }
@media (min-width: 1024px) { .covers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .covers-grid { grid-template-columns: repeat(4, 1fr); } }
.cover-card {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--radius-xl); box-shadow: var(--shadow);
    aspect-ratio: 3 / 4; transition: transform .3s, box-shadow .3s;
}
.cover-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover-card .bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform .7s, filter .3s;
}
.cover-card:hover .bg { transform: scale(1.1); }
.cover-card .bg.unavailable { filter: saturate(0) brightness(.75); }
/* بلا صورة غلاف حقيقية بعد — نلوّن نفس الصورة الاحتياطية بدرجة مختلفة لكل علامة
   حتى لا تبدو الشبكة كأنها نسخة مكررة من نفس الصورة */
.cover-card.is-placeholder .bg { filter: hue-rotate(var(--tint, 0deg)) saturate(1.15) contrast(1.03); }
.cover-card.is-placeholder .bg.unavailable { filter: hue-rotate(var(--tint, 0deg)) saturate(0) brightness(.75); }
.cover-card .shade-bottom { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .9), rgb(0 0 0 / .3) 40%, transparent); }
.cover-card .shade-top { position: absolute; inset: 0; background: linear-gradient(to bottom, rgb(0 0 0 / .3), transparent 30%); }
.cover-card .top-row { position: absolute; inset-inline: .75rem; top: .75rem; display: flex; align-items: center; justify-content: space-between; }
.cover-card .rating-pill {
    display: inline-flex; align-items: center; gap: .25rem;
    background: rgb(0 0 0 / .5); backdrop-filter: blur(4px);
    border-radius: 999px; padding: .25rem .65rem;
    font-size: .75rem; font-weight: 700; color: #fff;
}
.cover-card .featured-pill {
    display: inline-flex; align-items: center; gap: .25rem;
    background: var(--accent-purple); border-radius: 999px; padding: .25rem .65rem;
    font-size: .62rem; font-weight: 700; color: #fff; box-shadow: var(--shadow-lg);
}
.cover-card .unavailable-pill {
    position: absolute; inset: 0; display: grid; place-items: center;
}
.cover-card .unavailable-pill span {
    background: rgb(0 0 0 / .7); backdrop-filter: blur(4px);
    border-radius: 999px; padding: .5rem 1.25rem;
    font-size: .75rem; font-weight: 700; color: #fcd34d;
}
.cover-card .info { position: absolute; inset-inline: 0; bottom: 0; padding: .65rem; }
@media (min-width: 640px) { .cover-card .info { padding: 1rem; } }
.cover-card .id-row { display: flex; align-items: flex-end; gap: .6rem; margin-bottom: .75rem; }
.cover-card .mini-logo {
    width: 3.5rem; height: 3.5rem; flex-shrink: 0;
    display: grid; place-items: center; overflow: hidden;
    background: #fff; border-radius: var(--radius-lg); padding: .25rem; box-shadow: var(--shadow-lg);
}
@media (min-width: 640px) { .cover-card .mini-logo { width: 4.5rem; height: 4.5rem; padding: .35rem; } }
.cover-card .mini-logo img { width: 100%; height: 100%; object-fit: contain; }
.cover-card .mini-logo .initial { font-size: 1.25rem; font-weight: 900; color: var(--brand); }
.cover-card .id-row h3 {
    font-size: .78rem; font-weight: 900; color: #fff;
    text-shadow: 0 1px 3px rgb(0 0 0 / .4);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (min-width: 640px) { .cover-card .id-row h3 { font-size: .95rem; } }
.cover-card .city-row { display: flex; align-items: center; gap: .25rem; margin-top: .15rem; font-size: .68rem; color: rgb(255 255 255 / .7); }
.cover-card .divider { height: 1px; background: rgb(255 255 255 / .15); margin-bottom: .65rem; }
.cover-card .bottom-row { display: flex; align-items: center; justify-content: space-between; }
.cover-card .type-pill {
    background: rgb(255 255 255 / .15); backdrop-filter: blur(4px);
    border-radius: 999px; padding: .25rem .65rem;
    font-size: .62rem; font-weight: 600; color: #fff;
}
.cover-card .price { text-align: left; font-size: .875rem; font-weight: 900; color: #fff; }
.cover-card .price small { font-size: .62rem; font-weight: 400; color: rgb(255 255 255 / .6); }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.pagination a, .pagination span {
    border-radius: var(--radius); padding: .5rem 1rem; font-size: .875rem; font-weight: 500;
}
.pagination a { background: #fff; border: 1px solid var(--gray-200); color: var(--gray-600); }
.pagination a:hover { background: var(--gray-50); }
.pagination a.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.pagination span { border: 1px solid var(--gray-100); color: var(--gray-300); }

/* حالة لا نتائج */
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 6rem 0; text-align: center; }
.empty-state .icon-box {
    width: 4rem; height: 4rem; margin-bottom: 1rem;
    display: grid; place-items: center;
    background: var(--gray-100); border-radius: var(--radius-lg);
    font-size: 1.75rem; color: var(--gray-300);
}

/* ── صفحة العلامة التجارية ── */
.brand-cover { position: relative; height: 13rem; overflow: hidden; }
@media (min-width: 768px) { .brand-cover { height: 18rem; } }
.brand-cover img { width: 100%; height: 100%; object-fit: cover; }
.brand-cover .shade { position: absolute; inset: 0; background: linear-gradient(to top, rgb(0 0 0 / .6), rgb(0 0 0 / .1) 60%, transparent); }
.brand-info-bar {
    transform: translateY(-2.5rem);
    background: #fff; border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: .75rem;
}
@media (min-width: 768px) { .brand-info-bar { padding: 1.25rem; } }
.brand-info-bar .row { display: flex; align-items: flex-start; gap: .75rem; }
@media (min-width: 768px) { .brand-info-bar .row { align-items: center; gap: 1rem; } }
.brand-logo-lg {
    width: 4rem; height: 4rem; flex-shrink: 0; overflow: hidden;
    border: 2px solid var(--gray-100); border-radius: var(--radius-lg);
    background: #fff; box-shadow: var(--shadow); display: grid; place-items: center;
}
@media (min-width: 768px) { .brand-logo-lg { width: 5rem; height: 5rem; } }
.brand-logo-lg img { width: 100%; height: 100%; object-fit: contain; padding: .35rem; }
.brand-logo-lg .initial { font-size: 1.5rem; font-weight: 900; color: var(--brand); background: var(--brand-soft); width: 100%; height: 100%; display: grid; place-items: center; }
.brand-info-bar h1 { font-size: 1.15rem; font-weight: 900; display: inline; }
@media (min-width: 768px) { .brand-info-bar h1 { font-size: 1.5rem; } }
.brand-badges { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .4rem; }
.type-badge { background: #ffedd5; color: #c2410c; border-radius: 999px; padding: .15rem .65rem; font-size: .75rem; font-weight: 600; }
.starts-from { display: none; flex-shrink: 0; text-align: left; }
@media (min-width: 768px) { .starts-from { display: block; } }
.starts-from .lbl { font-size: .75rem; color: var(--gray-400); }
.starts-from .val { font-size: 1.15rem; font-weight: 900; color: var(--brand); }
.unavailable-banner {
    margin-top: .75rem; display: flex; align-items: center; gap: .75rem;
    border: 1px solid #fecaca; background: var(--red-50);
    border-radius: var(--radius); padding: .75rem 1rem;
}
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem; text-align: center; }
.stat-card .val { font-size: 1.25rem; font-weight: 900; }
.stat-card .val.small { font-size: .875rem; }
.stat-card .lbl { margin-top: .25rem; font-size: .75rem; color: var(--gray-400); }

/* معرض الصور */
.gallery-strip { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scrollbar-width: none; }
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip button {
    flex-shrink: 0; width: 140px; height: 100px; overflow: hidden;
    border-radius: var(--radius-lg); border: 2px solid transparent; padding: 0;
    transition: border-color .15s;
}
.gallery-strip button:hover { border-color: #fb923c; }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    background: rgb(0 0 0 / .9); padding: 1rem;
}
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: var(--radius-lg); object-fit: contain; box-shadow: var(--shadow-lg); }
.lightbox .nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
    background: rgb(255 255 255 / .2); border-radius: 999px; color: #fff; font-size: 1.1rem;
}
.lightbox .nav-btn:hover { background: rgb(255 255 255 / .4); }
.lightbox .close-btn { position: absolute; top: 1rem; inset-inline-end: 1rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center; background: rgb(255 255 255 / .2); border-radius: 999px; color: #fff; }
.lightbox .counter { position: absolute; bottom: 1rem; font-size: .875rem; color: rgb(255 255 255 / .7); }

/* بطاقات الباقات */
.packages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .packages-grid { gap: 1.25rem; } }
.package-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.package-card .img-box { position: relative; height: 11rem; overflow: hidden; background: var(--gray-100); }
.package-card .img-box img { width: 100%; height: 100%; object-fit: cover; }
.package-card .img-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-soft), #ffedd5); font-size: 2.5rem; font-weight: 900; color: #fed7aa; }
.package-card .price-badge { position: absolute; top: .75rem; inset-inline-end: .75rem; background: rgb(0 0 0 / .5); backdrop-filter: blur(4px); border-radius: var(--radius); padding: .35rem .75rem; font-size: .875rem; font-weight: 900; color: #fff; }
.package-card .type-badge-abs { position: absolute; top: .75rem; inset-inline-start: .75rem; background: rgb(232 73 15 / .9); backdrop-filter: blur(4px); border-radius: var(--radius); padding: .25rem .65rem; font-size: .75rem; font-weight: 600; color: #fff; }
.package-card .body { display: flex; flex: 1; flex-direction: column; gap: .75rem; padding: 1rem; }
.package-card h3 { font-size: 1rem; font-weight: 700; }
.package-card .desc { font-size: .875rem; color: var(--gray-500); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.package-card .chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.package-card .chips span { display: inline-flex; align-items: center; gap: .25rem; background: var(--gray-100); border-radius: 999px; padding: .25rem .65rem; font-size: .75rem; color: var(--gray-600); }
.package-card .chips .warn { background: #fef9c3; color: #a16207; font-weight: 500; }
.package-card .cta { margin-top: auto; padding-top: .25rem; }

/* التقويم */
.calendar-box { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-head button { width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: var(--radius); color: var(--gray-400); }
.calendar-head button:hover:not(:disabled) { background: var(--gray-100); }
.calendar-head button:disabled { opacity: .3; cursor: not-allowed; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; text-align: center; }
.calendar-grid .dow { font-size: .75rem; font-weight: 600; color: var(--gray-400); padding-bottom: .35rem; }
.calendar-grid .day { height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius); font-size: .875rem; font-weight: 500; }
.calendar-grid .day.past { color: var(--gray-300); }
.calendar-grid .day.today { background: var(--brand); color: #fff; font-weight: 700; }
.calendar-grid .day.blocked { background: #fee2e2; color: #f87171; text-decoration: line-through; }
.calendar-grid .day.available { background: var(--green-50); color: var(--green-700); }
.calendar-legend { margin-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; font-size: .75rem; color: var(--gray-500); }
.calendar-legend .dot { display: inline-block; width: .75rem; height: .75rem; border-radius: 999px; vertical-align: -1px; margin-inline-end: .35rem; }

/* التقييمات */
.reviews-summary { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 2rem; }
.reviews-summary .layout { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 768px) { .reviews-summary .layout { flex-direction: row; align-items: flex-start; } }
.rating-hero { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-soft); border-radius: var(--radius-lg); padding: 1.25rem 2rem; }
.rating-hero .big { font-size: 3rem; font-weight: 900; line-height: 1.1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.rating-bars .bar-row { display: flex; align-items: center; gap: .75rem; font-size: .75rem; color: var(--gray-500); }
.rating-bars .track { flex: 1; height: .5rem; border-radius: 999px; background: var(--gray-100); overflow: hidden; }
.rating-bars .fill { height: 100%; border-radius: 999px; background: #fbbf24; }
.dim-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.dim-cell { background: var(--gray-50); border-radius: var(--radius); padding: .75rem; text-align: center; }
.dim-cell .lbl { font-size: .75rem; color: var(--gray-400); margin-bottom: .1rem; }
.dim-cell .val { font-size: 1.1rem; font-weight: 700; }
.review-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.review-card .head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .75rem; }
.review-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .75rem; }
@media (min-width: 768px) { .review-dims { grid-template-columns: repeat(4, 1fr); } }
.review-dims div { background: var(--gray-50); border-radius: var(--radius); padding: .6rem; text-align: center; }
.reviews-empty { display: flex; flex-direction: column; align-items: center; border: 2px dashed #ffedd5; background: rgb(255 247 237 / .4); border-radius: var(--radius-lg); padding: 3.5rem 1.5rem; text-align: center; }
.stars { color: #fbbf24; letter-spacing: .1em; }
.stars .off { color: var(--gray-200); }

/* ── صفحة الباقة ── */
.pkg-gallery-main { position: relative; height: 18rem; overflow: hidden; border-radius: var(--radius-lg); background: var(--gray-100); }
@media (min-width: 768px) { .pkg-gallery-main { height: 24rem; } }
.pkg-gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.pkg-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .75rem; padding-bottom: .25rem; }
.pkg-thumbs button { flex-shrink: 0; width: 6rem; height: 4rem; overflow: hidden; border-radius: var(--radius); border: 2px solid transparent; opacity: .6; padding: 0; transition: all .15s; }
.pkg-thumbs button:hover { opacity: 1; }
.pkg-thumbs button.active { border-color: var(--brand); opacity: 1; }
.pkg-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pkg-stat { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem; text-align: center; }
.pkg-stat .ico { font-size: 1.25rem; margin-bottom: .25rem; }
.pkg-stat .num { font-size: 1.15rem; font-weight: 900; }
.pkg-stat .lbl { font-size: .75rem; color: var(--gray-400); }
.includes-list li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--gray-700); padding-block: .3rem; }
.includes-list .tick { color: var(--green-500); font-weight: 700; }

/* مجموعات الاختيار */
.selection-group { border: 1px solid var(--gray-100); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem; }
.selection-group.unfilled { border-color: #fecaca; background: var(--red-50); }
.selection-group .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: .875rem; }
.selection-group .status { font-size: .75rem; font-weight: 500; color: #f97316; }
.selection-group.filled-ok .status { color: var(--green-600); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 640px) { .option-grid { grid-template-columns: repeat(3, 1fr); } }
.option-btn {
    border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700);
    border-radius: var(--radius); padding: .6rem .75rem;
    font-size: .875rem; font-weight: 500; transition: all .15s;
}
.option-btn:hover:not(:disabled):not(.chosen) { border-color: rgb(232 73 15 / .5); background: var(--brand-soft); }
.option-btn.chosen { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.option-btn:disabled { cursor: not-allowed; border-color: var(--gray-100); background: var(--gray-50); color: var(--gray-300); }

/* الإضافات */
.addon-row {
    width: 100%; display: flex; align-items: center; gap: .75rem;
    border: 1px solid var(--gray-100); background: #fff;
    border-radius: var(--radius-lg); padding: 1rem; text-align: start; transition: all .15s;
}
.addon-row:hover { border-color: var(--gray-200); }
.addon-row.checked { border-color: var(--brand); background: var(--brand-soft); }
.addon-row .box {
    width: 1.25rem; height: 1.25rem; flex-shrink: 0;
    display: grid; place-items: center;
    border: 2px solid var(--gray-300); border-radius: .35rem;
    color: #fff; font-size: .7rem; transition: all .15s;
}
.addon-row.checked .box { border-color: var(--brand); background: var(--brand); }
.addon-row .price { flex-shrink: 0; font-size: .875rem; font-weight: 700; color: var(--brand); }

/* متطلبات الموقع */
.requirements-box { border: 1px solid #fef08a; background: #fefce8; border-radius: var(--radius-lg); padding: 1rem; }
.requirements-box li { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--gray-700); padding-block: .3rem; }

/* شريط الحجز الثابت */
.book-bar {
    position: fixed; inset-inline: 0; bottom: 3.75rem; z-index: 40;
    border-top: 1px solid var(--gray-100); background: #fff;
    padding: .75rem 1rem; box-shadow: 0 -4px 12px rgb(0 0 0 / .06);
}
@media (min-width: 768px) { .book-bar { bottom: 0; padding-inline: 1.5rem; } }
.book-bar .inner { max-width: 56rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.book-bar .cta-btn { flex: 1; border-radius: var(--radius-lg); padding: .9rem; font-size: .875rem; font-weight: 900; background: var(--brand); color: #fff; transition: background .15s; }
.book-bar .cta-btn:hover:not(:disabled) { background: var(--brand-hover); }
.book-bar .cta-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.book-bar .total-lbl { font-size: .75rem; color: var(--gray-400); }
.book-bar .total-val { font-size: 1.25rem; font-weight: 900; }
.seg-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.seg-btn { border: 1px solid var(--gray-200); background: #fff; color: var(--gray-600); border-radius: var(--radius); padding: .65rem; font-size: .875rem; font-weight: 600; transition: all .15s; }
.seg-btn:hover:not(.active) { background: var(--gray-50); }
.seg-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ── معالج الحجز ── */
.wizard-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-sm); }
.wizard-header .row { max-width: 42rem; margin-inline: auto; display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; }
.wizard-header .back-btn { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius); color: var(--gray-500); font-size: 1.2rem; }
.wizard-header .back-btn:hover { background: var(--gray-100); }
.wizard-progress { height: .25rem; background: var(--gray-100); }
.wizard-progress .fill { height: 100%; background: var(--brand); transition: width .3s; }
.wizard-main { max-width: 42rem; margin-inline: auto; padding: 1.5rem 1rem 10rem; }
.wizard-title { text-align: center; font-size: 1.5rem; font-weight: 900; margin-bottom: .75rem; }
.wizard-sub { text-align: center; font-size: .875rem; color: var(--gray-400); margin-bottom: 1.5rem; }
.stepper-row { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.stepper-btn { width: 3rem; height: 3rem; display: grid; place-items: center; border: 2px solid var(--gray-200); border-radius: 999px; font-size: 1.25rem; color: var(--gray-600); transition: all .15s; }
.stepper-btn:hover:not(:disabled) { border-color: var(--gray-300); }
.stepper-btn:disabled { opacity: .3; cursor: not-allowed; }
.stepper-val { min-width: 5rem; text-align: center; font-size: 2.5rem; font-weight: 900; }
.time-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
@media (min-width: 768px) { .time-slots { grid-template-columns: repeat(5, 1fr); } }
.time-slot { border: 1px solid var(--gray-200); background: #fff; color: var(--gray-700); border-radius: var(--radius); padding: .6rem 0; font-size: .875rem; font-weight: 600; transition: all .15s; }
.time-slot:hover:not(.chosen) { border-color: var(--brand); color: var(--brand); }
.time-slot.chosen { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: var(--shadow); }
.time-hero { background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: 1rem; text-align: center; margin-bottom: 1.25rem; }
.time-hero .big { font-size: 2.5rem; font-weight: 900; }
.wizard-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--gray-100); box-shadow: 0 -4px 12px rgb(0 0 0 / .06); padding: .75rem 1rem; }
.wizard-bar .row { max-width: 42rem; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.wizard-bar .next-btn { display: inline-flex; align-items: center; gap: .5rem; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: .9rem 1.75rem; font-size: .875rem; font-weight: 900; transition: background .15s; }
.wizard-bar .next-btn:hover:not(:disabled) { background: var(--brand-hover); }
.wizard-bar .next-btn:disabled { background: var(--gray-200); color: var(--gray-400); cursor: not-allowed; }
.review-card { background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; margin-bottom: 1rem; }
.review-row { display: flex; justify-content: space-between; padding-block: .45rem; font-size: .875rem; border-bottom: 1px solid var(--gray-50); }
.review-row:last-child { border-bottom: 0; }
.review-row .lbl { color: var(--gray-400); }
.review-row .val { font-weight: 600; }
.pay-option { width: 100%; display: flex; align-items: center; gap: .75rem; border: 2px solid var(--gray-200); background: #fff; border-radius: var(--radius-lg); padding: 1rem; text-align: start; transition: all .15s; }
.pay-option.chosen { border-color: var(--brand); background: var(--brand-soft); }
.pay-option .radio { width: 1.25rem; height: 1.25rem; border: 2px solid var(--gray-300); border-radius: 999px; display: grid; place-items: center; }
.pay-option.chosen .radio { border-color: var(--brand); }
.pay-option.chosen .radio::after { content: ''; width: .6rem; height: .6rem; border-radius: 999px; background: var(--brand); }
.bank-info-box { background: var(--gray-50); border: 1px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 1rem; margin-top: 1rem; }
.bank-info-box .row { display: flex; justify-content: space-between; padding-block: .4rem; font-size: .875rem; }
.bank-info-box .copyable { font-family: monospace; direction: ltr; background: #fff; border-radius: .4rem; padding: .1rem .5rem; cursor: pointer; border: 1px solid var(--gray-200); }

/* ── هيكل لوحات التحكم (الإدارة والمالك) ── */
.panel-wrap { display: flex; min-height: 100vh; background: var(--gray-50); }
.panel-sidebar {
    width: 15rem; flex-shrink: 0; background: #fff;
    border-inline-end: 1px solid var(--gray-100);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
@media (max-width: 900px) {
    .panel-sidebar { position: fixed; inset-inline-start: 0; z-index: 60; transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
    .panel-sidebar.open { transform: translateX(0); }
}
.panel-sidebar-overlay { position: fixed; inset: 0; z-index: 55; background: rgb(0 0 0 / .4); }
@media (min-width: 901px) { .panel-sidebar-overlay { display: none !important; } }
.panel-sidebar .logo-area { padding: 1.25rem 1rem; border-bottom: 1px solid var(--gray-100); background: linear-gradient(135deg, var(--brand-soft, var(--primary-lighter)), #fff 65%); }
.panel-sidebar .logo-area img { height: 3rem; }
.panel-nav { flex: 1; padding: .75rem; display: flex; flex-direction: column; gap: .15rem; }
.panel-nav .group-label { padding: .8rem .75rem .3rem; font-size: .68rem; font-weight: 700; color: var(--gray-400); letter-spacing: .03em; }
.panel-nav a {
    position: relative;
    display: flex; align-items: center; gap: .6rem;
    padding: .55rem .75rem; border-radius: var(--radius);
    font-size: .85rem; font-weight: 500; color: var(--gray-600);
    transition: all .12s;
}
.panel-nav a svg.ico { color: var(--gray-400); transition: color .12s; }
.panel-nav a:hover { background: var(--gray-50); color: var(--gray-900); }
.panel-nav a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.panel-nav a.active svg.ico { color: var(--brand); }
.panel-nav a.active::before {
    content: ''; position: absolute; inset-inline-start: -.75rem; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--brand);
}
.panel-nav a .cnt { margin-inline-start: auto; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 .45rem; font-size: .65rem; font-weight: 700; }
.panel-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.panel-topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    background: rgb(255 255 255 / .95); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-100);
    padding: .75rem 1.25rem;
}
.panel-topbar h1 { font-size: 1.05rem; font-weight: 900; }
.panel-content { padding: 1.5rem 1.25rem 3rem; max-width: 74rem; width: 100%; margin-inline: auto; }
.panel-menu-btn { display: none; }
@media (max-width: 900px) { .panel-menu-btn { display: grid; } }
.page-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }

/* بطاقات KPI */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 1000px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--gray-100); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); padding: 1.1rem 1.25rem;
    transition: transform .2s, box-shadow .2s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--brand, var(--primary)); opacity: .55; }
.kpi-grid .kpi:nth-child(4n+2)::before { background: var(--blue-600); }
.kpi-grid .kpi:nth-child(4n+3)::before { background: var(--green-600); }
.kpi-grid .kpi:nth-child(4n+4)::before { background: var(--accent-purple); }
.kpi .lbl { font-size: .75rem; color: var(--gray-400); margin-bottom: .3rem; }
.kpi .num { font-size: 1.6rem; font-weight: 900; letter-spacing: -.01em; }
.kpi .sub { font-size: .7rem; color: var(--gray-400); margin-top: .2rem; }

/* نافذة منبثقة */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgb(0 0 0 / .45); display: grid; place-items: center; padding: 1rem; }
.modal { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 28rem; padding: 1.5rem; }
.modal h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 1rem; }

/* ── الإحصاءات: مخططات CSS خفيفة بلا مكتبات JS ── */
.kpi-trend { font-size: .7rem; font-weight: 700; margin-top: .35rem; }
.kpi-trend.up { color: var(--green-600); }
.kpi-trend.down { color: var(--red-600); }
.bar-chart { display: flex; align-items: flex-end; gap: .25rem; height: 10rem; padding-top: 1rem; overflow-x: auto; }
.bar-chart .bar-col { flex: 1; min-width: .5rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; max-width: 1.5rem; background: var(--brand); border-radius: .25rem .25rem 0 0; transition: background .15s; min-height: 2px; }
.bar-chart .bar-col:hover .bar { background: var(--brand-hover); }
.bar-chart .bar-label { font-size: .6rem; color: var(--gray-400); margin-top: .3rem; white-space: nowrap; }
.hbar-row { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.hbar-row .lbl { width: 8rem; flex-shrink: 0; font-size: .8rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar-row .track { flex: 1; height: 1.1rem; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.hbar-row .fill { height: 100%; background: var(--brand); border-radius: 999px; display: flex; align-items: center; }
.hbar-row .val { width: 4rem; flex-shrink: 0; text-align: left; font-size: .75rem; font-weight: 700; color: var(--gray-600); }
.funnel-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.funnel-row .bar { height: 2.5rem; background: linear-gradient(to left, var(--brand), var(--brand-hover)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: .85rem; }
.period-tabs { display: flex; gap: .4rem; margin-bottom: 1.5rem; }
.period-tabs a { padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--gray-100); color: var(--gray-600); }
.period-tabs a.active { background: var(--brand); color: #fff; }
