/* =====================================================
   LaundryPro — التنسيق الرئيسي
   يدعم RTL/LTR عبر الخصائص المنطقية + خط Cairo محلي
   ===================================================== */
:root {
    --navy: #0f2b4c;
    --navy-dark: #0a1f38;
    --navy-soft: #163d66;
    --turquoise: #14b8a6;
    --turquoise-dark: #0d9488;
    --turquoise-light: #e6faf7;
    --bg: #f2f6fa;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --info: #0284c7;
    --info-bg: #e0f2fe;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 43, 76, .08), 0 4px 14px rgba(15, 43, 76, .06);
    --sidebar-w: 254px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.7;
    min-height: 100vh;
}

a { color: var(--turquoise-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 700; color: var(--navy); line-height: 1.4; }

/* ============ أزرار ============ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 18px; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 14px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
    transition: all .18s ease; white-space: nowrap; line-height: 1.6;
}
.btn-primary { background: var(--turquoise); color: #fff; }
.btn-primary:hover { background: var(--turquoise-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-soft); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--border); }
.btn-outline:hover { border-color: var(--turquoise); color: var(--turquoise-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #15803d; }
.btn-sm { padding: 4px 12px; font-size: 13px; }
.btn-xs { padding: 2px 9px; font-size: 12px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ============ نماذج ============ */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--navy); }
.form-group .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.req::after { content: ' *'; color: var(--danger); }

input[type=text], input[type=number], input[type=email], input[type=password],
input[type=tel], input[type=date], input[type=time], input[type=datetime-local],
input[type=url], input[type=search], select, textarea {
    width: 100%; padding: 9px 12px; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); font-family: inherit; font-size: 14px;
    background: #fff; color: var(--text); transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--turquoise);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, .13);
}
textarea { min-height: 90px; resize: vertical; }
select { cursor: pointer; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--turquoise); transform: scale(1.15); }

.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .form-group { flex: 1 1 180px; }
.form-check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.form-check label { font-weight: 500; cursor: pointer; }

.filters-bar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 16px; margin-bottom: 16px;
}
.filters-bar .form-group { margin: 0; min-width: 130px; flex: 0 1 auto; }
.filters-bar .grow { flex: 1 1 200px; }
.filters-bar label { font-size: 12px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 3px; }
.filters-bar input, .filters-bar select { padding: 7px 10px; font-size: 13.5px; }

/* ============ بطاقات وجداول ============ */
.card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px; margin-bottom: 18px;
}
.card-title { font-size: 16px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card-title .side { display: flex; gap: 8px; flex-wrap: wrap; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; min-width: 640px; }
table.tbl th {
    background: #f8fafc; color: var(--navy); font-weight: 700; text-align: start;
    padding: 10px 12px; border-bottom: 2px solid var(--border); white-space: nowrap; font-size: 12.5px;
}
table.tbl td { padding: 9px 12px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
table.tbl tbody tr:hover { background: #f8fbfc; }
table.tbl .num { font-variant-numeric: tabular-nums; }
table.tbl tfoot td { background: #f8fafc; font-weight: 700; border-top: 2px solid var(--border); }

.badge {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    font-size: 12px; font-weight: 700; white-space: nowrap; line-height: 1.7;
}
.badge-navy { background: #e2e8f0; color: var(--navy); }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-green { background: var(--success-bg); color: #15803d; }
.badge-yellow { background: var(--warning-bg); color: #b45309; }
.badge-red { background: var(--danger-bg); color: #b91c1c; }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-teal { background: var(--turquoise-light); color: var(--turquoise-dark); }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-cyan { background: #cffafe; color: #0e7490; }
.badge-indigo { background: #e0e7ff; color: #4338ca; }
.badge-lime { background: #ecfccb; color: #4d7c0f; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-orange { background: #ffedd5; color: #c2410c; }
.badge-emerald { background: #d1fae5; color: #047857; }
.badge-sky { background: #e0f2fe; color: #0369a1; }
.badge-slate { background: #e2e8f0; color: #334155; }
.badge-rose { background: #ffe4e6; color: #be123c; }
.badge-fuchsia { background: #fae8ff; color: #a21caf; }
.badge-amber { background: #fef3c7; color: #b45309; }

/* ============ رسائل فورية ============ */
.alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 11px 15px; border-radius: var(--radius-sm); margin-bottom: 14px;
    font-size: 14px; border: 1px solid transparent; font-weight: 600;
}
.alert-success { background: var(--success-bg); color: #166534; border-color: #bbf7d0; }
.alert-danger, .alert-error { background: var(--danger-bg); color: #991b1b; border-color: #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border-color: #fde68a; }
.alert-info { background: var(--info-bg); color: #075985; border-color: #bae6fd; }
.alert .close-x { margin-inline-start: auto; cursor: pointer; border: none; background: none; font-size: 17px; color: inherit; line-height: 1; }

/* ============ لوحة التحكم: التخطيط ============ */
.admin-layout { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0; background: var(--navy);
    color: #cbd5e1; display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 60;
}
.sidebar::-webkit-scrollbar { width: 5px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 4px; }

.brand {
    display: flex; align-items: center; gap: 10px;
    padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand img { height: 38px; width: auto; max-width: 170px; object-fit: contain; }
.brand .brand-name { font-size: 18px; font-weight: 800; color: #fff; }
.brand .brand-sub { font-size: 11px; color: #7fa3c8; }

.side-nav { padding: 10px 10px 20px; flex: 1; }
.side-nav .nav-group { font-size: 11px; font-weight: 700; color: #64809f; padding: 14px 10px 5px; letter-spacing: .4px; }
.side-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; margin: 2px 0; border-radius: 9px;
    color: #c3d3e4; font-size: 13.5px; font-weight: 600; text-decoration: none;
}
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: var(--turquoise); color: #fff; }
.side-nav a .ico { width: 20px; text-align: center; font-size: 15px; flex-shrink: 0; }
.side-nav a .nav-badge {
    margin-inline-start: auto; background: var(--danger); color: #fff;
    font-size: 11px; font-weight: 700; border-radius: 999px; padding: 0 7px; min-width: 20px; text-align: center;
}

.sidebar-foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #7fa3c8; }

.main-area { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 22px; display: flex; align-items: center; gap: 14px;
    position: sticky; top: 0; z-index: 50;
}
.menu-toggle {
    display: none; border: 1px solid var(--border); background: #fff; cursor: pointer;
    width: 40px; height: 40px; border-radius: 9px; flex-direction: column;
    align-items: center; justify-content: center; gap: 5px; flex-shrink: 0;
}
.menu-toggle span { display: block; width: 19px; height: 2.4px; background: var(--navy); border-radius: 2px; }

.page-title { font-size: 17px; font-weight: 800; color: var(--navy); }
.topbar-side { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-switch {
    display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden;
}
.lang-switch a { padding: 4px 13px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: none; }
.lang-switch a.on { background: var(--navy); color: #fff; }
.user-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.user-chip .avatar {
    width: 36px; height: 36px; border-radius: 50%; background: var(--turquoise-light);
    color: var(--turquoise-dark); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.user-chip .u-name { font-weight: 700; color: var(--navy); line-height: 1.3; }
.user-chip .u-role { font-size: 11px; color: var(--muted); }

.content { padding: 22px; max-width: 1400px; width: 100%; }

/* شريط Demo */
.demo-banner {
    background: repeating-linear-gradient(45deg, #fef3c7, #fef3c7 14px, #fde68a 14px, #fde68a 28px);
    color: #92400e; font-weight: 700; font-size: 13px; text-align: center;
    padding: 8px 16px; border-bottom: 1px solid #fcd34d;
}

/* بطاقات المؤشرات */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
    background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 15px 17px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card .s-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-card .s-value { font-size: 23px; font-weight: 800; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.5; }
.stat-card .s-sub { font-size: 11.5px; color: var(--muted); }
.stat-card::after {
    content: ''; position: absolute; inset-block-start: 0; inset-inline-start: 0;
    width: 100%; height: 3.5px; background: var(--turquoise);
}
.stat-card.c-navy::after { background: var(--navy); }
.stat-card.c-yellow::after { background: #f59e0b; }
.stat-card.c-red::after { background: var(--danger); }
.stat-card.c-green::after { background: var(--success); }
.stat-card.c-blue::after { background: var(--info); }
.stat-card .s-delta { font-size: 12px; font-weight: 700; }
.delta-up { color: var(--success); }
.delta-down { color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.chart-box { width: 100%; min-height: 260px; }
.chart-box svg { width: 100%; height: auto; display: block; }

.compare-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 4px; border-bottom: 1px dashed var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-row .c-label { font-weight: 600; font-size: 13.5px; }
.compare-row .c-vals { display: flex; gap: 18px; align-items: center; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.compare-row .c-last { color: var(--muted); }

/* تنبيهات اللوحة */
.alerts-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item {
    display: flex; gap: 12px; align-items: flex-start;
    border: 1px solid var(--border); border-inline-start: 4px solid var(--turquoise);
    border-radius: var(--radius-sm); padding: 11px 14px; background: #fff;
}
.alert-item.p-high { border-inline-start-color: var(--danger); }
.alert-item.p-medium { border-inline-start-color: #f59e0b; }
.alert-item.p-low { border-inline-start-color: var(--info); }
.alert-item .a-title { font-weight: 700; font-size: 13.5px; color: var(--navy); }
.alert-item .a-msg { font-size: 12.5px; color: var(--muted); }

/* شارات الحالة الديناميكية */
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 6px; }

/* صفحة تسجيل الدخول */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px;
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #11476f 100%); }
.login-card { background: #fff; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.28); width: 100%; max-width: 420px; padding: 34px 30px; }
.login-card .lc-logo { text-align: center; margin-bottom: 8px; }
.login-card .lc-logo img { height: 54px; }
.login-card h1 { text-align: center; font-size: 21px; margin-bottom: 4px; }
.login-card .lc-sub { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 22px; }

/* ============ نافذة منبثقة ============ */
.modal-overlay {
    display: none; position: fixed; inset: 0; background: rgba(10, 31, 56, .55);
    z-index: 100; align-items: center; justify-content: center; padding: 18px;
}
.modal-overlay.open { display: flex; }
.modal {
    background: #fff; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
    width: 100%; max-width: 480px; padding: 22px; max-height: 92vh; overflow-y: auto;
}
.modal h3 { margin-bottom: 12px; font-size: 16.5px; }
.modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }

/* صفوف بنود الطلب */
.item-row { display: grid; grid-template-columns: 2.2fr .7fr .9fr .9fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.item-row select, .item-row input { padding: 7px 9px; font-size: 13.5px; }
.item-row .row-del { background: var(--danger-bg); color: var(--danger); border: none; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 16px; font-weight: 700; }
.items-head { display: grid; grid-template-columns: 2.2fr .7fr .9fr .9fr auto; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
.totals-mini { background: #f8fafc; border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 13px 16px; margin-top: 12px; }
.totals-mini .tr { display: flex; justify-content: space-between; padding: 3.5px 0; font-size: 14px; }
.totals-mini .tr.grand { border-top: 2px solid var(--border); margin-top: 7px; padding-top: 9px; font-weight: 800; font-size: 16.5px; color: var(--navy); }

/* صفحة 403 */
.err-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }
.err-page .code { font-size: 74px; font-weight: 800; color: var(--navy); line-height: 1.2; }

/* ترقيم الصفحات */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 15px; align-items: center; justify-content: center; }
.pagination a, .pagination span {
    padding: 5px 12px; border-radius: 7px; border: 1px solid var(--border);
    background: #fff; font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none !important;
}
.pagination .cur { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .disabled { opacity: .45; }

/* ============ موقع الزوار ============ */
.site-header {
    background: #fff; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 80;
}
.site-header .sh-inner {
    max-width: 1160px; margin: 0 auto; padding: 10px 18px;
    display: flex; align-items: center; gap: 16px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.site-logo img { height: 44px; width: auto; }
.site-logo .sl-name { font-size: 19px; font-weight: 800; color: var(--navy); line-height: 1.3; }
.site-logo .sl-sub { font-size: 11px; color: var(--turquoise-dark); font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.site-nav a { padding: 7px 12px; border-radius: 8px; color: #334155; font-weight: 600; font-size: 13.5px; text-decoration: none; }
.site-nav a:hover, .site-nav a.active { background: var(--turquoise-light); color: var(--turquoise-dark); }
.site-actions { display: flex; align-items: center; gap: 8px; }

.site-hero {
    background: linear-gradient(140deg, var(--navy-dark) 10%, var(--navy) 55%, #12496f 100%);
    color: #fff; padding: 72px 20px; position: relative; overflow: hidden;
}
.site-hero::before {
    content: ''; position: absolute; inset-inline-end: -140px; top: -140px;
    width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,.35), transparent 65%);
}
.site-hero::after {
    content: ''; position: absolute; inset-inline-start: -100px; bottom: -160px;
    width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(20,184,166,.18), transparent 60%);
}
.hero-inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 2; text-align: center; }
.hero-inner h1 { color: #fff; font-size: 37px; font-weight: 800; margin-bottom: 14px; }
.hero-inner p { font-size: 17px; color: #c8d9ea; max-width: 640px; margin: 0 auto 26px; }
.hero-inner.hero-img img { max-height: 320px; border-radius: 14px; margin-top: 26px; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-btns .btn { padding: 11px 26px; font-size: 15px; }

.site-section { padding: 56px 20px; }
.site-section.alt { background: #fff; }
.section-inner { max-width: 1160px; margin: 0 auto; }
.section-title { text-align: center; font-size: 26px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 34px; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.feature-card .f-ico {
    width: 46px; height: 46px; border-radius: 12px; background: var(--turquoise-light);
    color: var(--turquoise-dark); display: flex; align-items: center; justify-content: center;
    font-size: 21px; font-weight: 800; margin-bottom: 12px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: 13.5px; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.service-card .sc-name { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.service-card .sc-desc { color: var(--muted); font-size: 13px; flex: 1; margin-bottom: 12px; }
.service-card .sc-price { font-size: 17px; font-weight: 800; color: var(--turquoise-dark); }
.service-card .sc-price small { color: var(--muted); font-weight: 600; font-size: 12px; }

.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: step; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; position: relative; counter-increment: step; box-shadow: var(--shadow); }
.step-card::before {
    content: counter(step); position: absolute; top: -15px; inset-inline-start: 20px;
    width: 34px; height: 34px; background: var(--turquoise); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px;
    box-shadow: 0 4px 12px rgba(20,184,166,.4);
}
.step-card h3 { font-size: 15.5px; margin: 8px 0 6px; }
.step-card p { color: var(--muted); font-size: 13px; }

.pricing-table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 480px; }
.price-table th { background: var(--navy); color: #fff; padding: 13px 16px; text-align: start; font-size: 14px; }
.price-table td { padding: 12px 16px; border-bottom: 1px solid #eef2f6; font-size: 14px; }
.price-table tr:last-child td { border-bottom: none; }
.price-table .p-price { font-weight: 800; color: var(--turquoise-dark); white-space: nowrap; }

.branch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.branch-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.branch-card h3 { font-size: 16px; margin-bottom: 9px; }
.branch-card .b-line { font-size: 13.5px; color: var(--muted); margin-bottom: 5px; }

.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 11px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--navy); font-size: 14.5px; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--turquoise); }
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-a { padding: 0 18px 15px; color: var(--muted); font-size: 13.5px; }

.page-body { max-width: 860px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.page-body h2 { margin-bottom: 16px; }
.page-body p { margin-bottom: 12px; color: #374151; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.site-footer { background: var(--navy-dark); color: #94a9c2; margin-top: 40px; }
.site-footer .sf-inner { max-width: 1160px; margin: 0 auto; padding: 44px 20px 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 13px; }
.site-footer a { color: #94a9c2; text-decoration: none; display: block; margin-bottom: 8px; font-size: 13.5px; }
.site-footer a:hover { color: var(--turquoise); }
.site-footer .sf-about { font-size: 13px; line-height: 1.9; }
.site-footer .sf-line { font-size: 13.5px; margin-bottom: 8px; }
.site-footer .sf-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 15px 20px; text-align: center; font-size: 12.5px; color: #64809f; }
.social-links { display: flex; gap: 9px; flex-wrap: wrap; }
.social-links a { background: rgba(255,255,255,.08); border-radius: 8px; padding: 6px 13px; font-size: 12.5px; }

.float-whatsapp {
    position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90;
    background: #22c55e; color: #fff; border-radius: 999px; padding: 11px 20px;
    font-weight: 700; font-size: 14px; box-shadow: 0 8px 24px rgba(34,197,94,.45); text-decoration: none !important;
}
.float-whatsapp:hover { background: #16a34a; }

.track-result { max-width: 720px; margin: 0 auto; }
.tr-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tr-step {
    background: #f1f5f9; color: #64748b; border-radius: 999px; padding: 6px 15px;
    font-size: 12.5px; font-weight: 700; border: 1px solid var(--border);
}
.tr-step.done { background: var(--turquoise-light); color: var(--turquoise-dark); border-color: #99e6dc; }
.tr-step.current { background: var(--turquoise); color: #fff; border-color: var(--turquoise-dark); }

/* ============ التجاوب ============ */
@media (max-width: 1024px) {
    .site-footer .sf-inner { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .admin-layout { display: block; }
    .sidebar {
        position: fixed; inset-block: 0; inset-inline-start: 0;
        transform: translateX(-105%);
        transition: transform .25s ease; box-shadow: 0 0 40px rgba(0,0,0,.25);
    }
    [dir="rtl"] .sidebar { transform: translateX(105%); }
    .sidebar.open { transform: translateX(0); }
    .menu-toggle { display: flex; }
    .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(10,31,56,.5); z-index: 55; }
    .sidebar-backdrop.show { display: block; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .content { padding: 16px; }
    .site-nav {
        display: none; position: absolute; top: 100%; inset-inline: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        flex-direction: column; align-items: stretch; padding: 10px 16px; gap: 2px;
        box-shadow: 0 14px 30px rgba(15,43,76,.12);
    }
    .site-nav.open { display: flex; }
    .site-nav a { padding: 11px 13px; }
    .site-header .sh-inner { position: relative; }
    .nav-toggle {
        display: flex; border: 1px solid var(--border); background: #fff; cursor: pointer;
        width: 42px; height: 42px; border-radius: 9px; flex-direction: column;
        align-items: center; justify-content: center; gap: 5px; margin-inline-start: auto; flex-shrink: 0;
    }
    .nav-toggle span { width: 19px; height: 2.4px; background: var(--navy); border-radius: 2px; }
    .site-hero { padding: 50px 18px; }
    .hero-inner h1 { font-size: 27px; }
    .hero-inner p { font-size: 15px; }
    .site-section { padding: 42px 16px; }
    .section-title { font-size: 22px; }
}

@media (min-width: 901px) {
    .nav-toggle { display: none; }
}

@media (max-width: 600px) {
    body { font-size: 14px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat-card .s-value { font-size: 19px; }
    .filters-bar { flex-direction: column; align-items: stretch; }
    .filters-bar .form-group { min-width: 0; }
    .item-row, .items-head { grid-template-columns: 1.6fr .6fr .8fr auto; }
    .item-row .col-price { display: none; }
    .items-head .col-price { display: none; }
    .user-chip .u-meta { display: none; }
    .topbar { padding: 9px 13px; gap: 9px; }
    .content { padding: 13px; }
    .card { padding: 15px; }
    .page-body { padding: 22px 18px; }
    .site-footer .sf-inner { grid-template-columns: 1fr; gap: 22px; }
    .login-card { padding: 26px 20px; }
    .form-row > .form-group { flex: 1 1 100%; }
}

@media (max-width: 380px) {
    .stats-grid { grid-template-columns: 1fr; }
}

/* طباعة عامة — التفاصيل في print.css */
@media print {
    .sidebar, .topbar, .demo-banner, .filters-bar, .btn, .pagination, .no-print, .float-whatsapp,
    .site-header, .site-footer, .nav-toggle, .menu-toggle { display: none !important; }
    body { background: #fff; }
    .content { padding: 0; max-width: none; }
    .card { box-shadow: none; border: 1px solid #cbd5e1; }
}

