/* بوابة الطلبات والمتابعة — أبيض + بترولي + أزرق متناسق (بلا كحلي) */
:root {
  --petrol-900: #07434f; --petrol-700: #0b5c6b; --petrol-600: #0f7183; --petrol-100: #dff0f3; --petrol-50: #f1f8f9;
  --blue-700: #185f9c; --blue-600: #1f6fb2; --blue-100: #e3effa; --blue-50: #f3f8fd;
  --ink: #16323a; --muted: #5b7279; --line: #dce7ea; --bg: #f6fafb; --white: #fff;
  --ok: #17794f; --ok-bg: #e6f5ee; --warn: #9a6200; --warn-bg: #fdf3dc; --err: #b3352d; --err-bg: #fdecea;
  --radius: 14px; --shadow: 0 1px 2px rgba(11, 92, 107, .06), 0 8px 24px rgba(11, 92, 107, .07);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; font-size: 16px; min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; color: var(--petrol-900); }
h1 { font-size: clamp(1.6rem, 4vw, 2.3rem); } h2 { font-size: 1.3rem; } h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; } a { color: var(--blue-600); text-underline-offset: 3px; } a:hover { color: var(--blue-700); }
svg { flex: none; vertical-align: middle; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); } .small { font-size: .875rem; } .center { text-align: center; } .nowrap { white-space: nowrap; }
.mt { margin-top: 1.25rem; } .mb0 { margin-bottom: 0; } .hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.narrow { max-width: 720px; } .tight { max-width: 480px; }
main { flex: 1; padding-block: 28px 56px; animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* الترويسة والتذييل */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--petrol-700); text-decoration: none; font-size: 1.08rem; }
.brand img { height: 40px; width: auto; flex: none; } .brand-text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; white-space: nowrap; } .brand-sub { font-size: .72rem; font-weight: 500; color: var(--muted); letter-spacing: .01em; } .side .brand-sub { color: rgba(255, 255, 255, .75); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--petrol-700); color: #fff; display: grid; place-items: center; }
.nav { display: flex; align-items: center; gap: 8px; }
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 26px; color: var(--muted); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; }
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.contact-list { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 7px; }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 11px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .18s, border-color .18s, transform .1s, box-shadow .18s; line-height: 1.5; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--petrol-700); color: #fff; } .btn-primary:hover { background: var(--petrol-900); color: #fff; }
.btn-blue { background: var(--blue-600); color: #fff; } .btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-outline { background: var(--white); color: var(--petrol-700); border-color: var(--petrol-700); } .btn-outline:hover { background: var(--petrol-50); color: var(--petrol-900); }
.btn-ghost { background: transparent; color: var(--petrol-700); } .btn-ghost:hover { background: var(--petrol-50); }
.btn-danger { background: var(--white); color: var(--err); border-color: #e7b9b5; } .btn-danger:hover { background: var(--err-bg); }
.btn-lg { padding: 14px 28px; font-size: 1.06rem; border-radius: 13px; } .btn-sm { padding: 5px 12px; font-size: .875rem; border-radius: 9px; }
.btn-block { width: 100%; } .btn[disabled], .btn.is-busy { opacity: .6; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--white); color: var(--petrol-700); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--petrol-50); } .icon-btn.danger { color: var(--err); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; } .actions.between { justify-content: space-between; } .actions.end { justify-content: flex-end; }

/* البطاقات */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card + .card { margin-top: 18px; } .card-flat { box-shadow: none; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.grid { display: grid; gap: 18px; } .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .card { padding: 18px; } }

/* الصفحة الرئيسية */
.hero { background: linear-gradient(160deg, var(--white) 0%, var(--petrol-50) 55%, var(--blue-50) 100%); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 8vw, 84px); text-align: center; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { justify-content: center; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--petrol-100); color: var(--petrol-700); font-weight: 700; margin-bottom: 10px; }
.steps h3 { margin-bottom: 4px; } .steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.section { padding-block: 44px; } .section-title { text-align: center; margin-bottom: 26px; }

/* النماذج */
.field { margin-bottom: 18px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: .875rem; margin-top: 5px; }
.req::after { content: " *"; color: var(--err); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: 11px; padding: 10px 14px; min-height: 46px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--petrol-600); box-shadow: 0 0 0 3px var(--petrol-100); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.error-text { color: var(--err); font-size: .875rem; margin-top: 5px; display: flex; gap: 5px; align-items: center; }
.phone-row { display: grid; grid-template-columns: minmax(150px, 210px) 1fr; gap: 10px; direction: ltr; } .phone-row > * { direction: rtl; } .phone-row input { direction: ltr; text-align: left; }
@media (max-width: 480px) { .phone-row { grid-template-columns: 1fr; } }
.choice-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 16px; background: var(--white); font-weight: 500; transition: all .15s; }
.choice span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b8cdd2; flex: none; transition: all .15s; }
.choice input:checked + span { border-color: var(--petrol-700); background: var(--petrol-50); color: var(--petrol-900); }
.choice input:checked + span::before { border-color: var(--petrol-700); background: radial-gradient(var(--petrol-700) 45%, #fff 50%); }
.choice input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--petrol-700); flex: none; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; } .inline-form .field { margin: 0; flex: 1 1 160px; }
.otp-input { font-size: 1.7rem !important; letter-spacing: .5em; text-align: center; direction: ltr; font-weight: 700; }

/* التنبيهات والشارات */
.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; border: 1px solid; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: #bfe3d1; } .alert-error { background: var(--err-bg); color: var(--err); border-color: #f1c6c2; }
.alert-info { background: var(--blue-50); color: var(--blue-700); border-color: #c9def2; } .alert-warn { background: var(--warn-bg); color: var(--warn); border-color: #f0dba8; }
.alert svg { margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--petrol-100); color: var(--petrol-700); white-space: nowrap; }
.badge-blue { background: var(--blue-100); color: var(--blue-700); } .badge-ok { background: var(--ok-bg); color: var(--ok); } .badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); } .badge-muted { background: #eef2f3; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; } .empty svg { color: #b8cdd2; margin-bottom: 8px; }

/* شريط تقدم الخطوات */
.wizard-steps { display: flex; list-style: none; margin: 0 0 24px; padding: 0; gap: 6px; }
.wizard-steps li { flex: 1; text-align: center; font-size: .85rem; color: var(--muted); position: relative; padding-top: 44px; }
.wizard-steps li::before { content: attr(data-n); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); font-weight: 700; z-index: 1; transition: all .25s; }
[dir=ltr] .wizard-steps li::before { transform: translateX(-50%); }
.wizard-steps li::after { content: ""; position: absolute; top: 16px; inset-inline-start: -50%; width: 100%; height: 3px; background: var(--line); }
.wizard-steps li:first-child::after { display: none; }
.wizard-steps li.done::before { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; content: "✓"; }
.wizard-steps li.done::after, .wizard-steps li.active::after { background: var(--petrol-700); }
.wizard-steps li.active { color: var(--petrol-900); font-weight: 600; } .wizard-steps li.active::before { border-color: var(--petrol-700); color: var(--petrol-700); box-shadow: 0 0 0 4px var(--petrol-100); }
.wizard-steps a { color: inherit; text-decoration: none; }
@media (max-width: 560px) { .wizard-steps li span { display: none; } .wizard-steps li.active span { display: block; position: absolute; inset-inline: -60px; top: 44px; } .wizard-steps { margin-bottom: 44px; } }

/* رفع الملفات */
.doc-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--white); } .doc-section + .doc-section { margin-top: 14px; }
.doc-section h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 2px; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 2px dashed #b8d3d9; border-radius: 12px; padding: 20px 14px; margin-top: 12px; cursor: pointer; color: var(--muted); background: var(--petrol-50); transition: all .15s; }
.dropzone:hover, .dropzone.is-over { border-color: var(--petrol-700); background: var(--petrol-100); color: var(--petrol-900); }
.dropzone strong { color: var(--petrol-700); } .dropzone svg { color: var(--petrol-600); }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.file-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px; background: var(--white); animation: fade .25s ease both; }
.file-row .file-icon { color: var(--petrol-600); } .file-row .file-name { font-weight: 500; overflow-wrap: anywhere; line-height: 1.5; }
.file-row .file-meta { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.file-row .file-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.file-row progress { width: 100%; height: 6px; margin-top: 5px; accent-color: var(--petrol-700); }
.file-row.is-error { border-color: #f1c6c2; background: var(--err-bg); } .file-row.is-error .file-meta { color: var(--err); }
.file-row.is-old { opacity: .7; background: #f7f9fa; }
@media (max-width: 520px) { .file-row { grid-template-columns: auto 1fr; } .file-row .file-actions { grid-column: 1 / -1; justify-content: flex-start; } }

/* التوقيع */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.sig-pad { border: 1.5px dashed #b8d3d9; border-radius: 12px; background: var(--white); touch-action: none; width: 100%; height: 190px; display: block; cursor: crosshair; }
.terms-box { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); white-space: pre-line; line-height: 2; }

/* قوائم البيانات */
.dl { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 16px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 520px) { .dl { grid-template-columns: 1fr; gap: 0; } .dl dd { margin-bottom: 10px; } }
.request-no { font-size: clamp(1.5rem, 6vw, 2.2rem); font-weight: 700; color: var(--petrol-700); letter-spacing: .04em; direction: ltr; background: var(--petrol-50); border: 1px dashed var(--petrol-600); border-radius: 14px; padding: 12px 22px; display: inline-block; }
.success-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* الخط الزمني للمراحل */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding-inline-start: 38px; padding-bottom: 20px; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; } .timeline li:last-child::before { display: none; }
.timeline .dot { position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); display: grid; place-items: center; color: #fff; }
.timeline .done .dot { background: var(--petrol-700); border-color: var(--petrol-700); } .timeline .done::before { background: var(--petrol-700); }
.timeline .current .dot { border-color: var(--blue-600); box-shadow: 0 0 0 4px var(--blue-100); } .timeline .current .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blue-600); }
.timeline .skipped, .timeline .upcoming { color: var(--muted); } .timeline .t-name { font-weight: 600; } .timeline .current .t-name { color: var(--blue-700); }
.timeline .t-meta { font-size: .85rem; color: var(--muted); }
.status-banner { border-radius: var(--radius); padding: 18px 22px; display: flex; gap: 14px; align-items: flex-start; border: 1px solid #c9def2; background: var(--blue-50); }
.status-banner.is-done { background: var(--ok-bg); border-color: #bfe3d1; } .status-banner.is-exception { background: var(--warn-bg); border-color: #f0dba8; } .status-banner.is-action { background: var(--warn-bg); border-color: #f0dba8; }
.status-banner h2 { margin: 0 0 2px; font-size: 1.2rem; } .status-banner p { margin: 0; }
.log { list-style: none; margin: 0; padding: 0; } .log li { padding: 12px 0; border-bottom: 1px solid var(--line); } .log li:last-child { border: 0; padding-bottom: 0; } .log li:first-child { padding-top: 0; }
.log .log-meta { font-size: .82rem; color: var(--muted); }

/* النافذة المنبثقة للمعاينة */
dialog.preview { border: 0; border-radius: 14px; padding: 0; width: min(920px, 94vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(7, 67, 79, .35); }
dialog.preview::backdrop { background: rgba(7, 67, 79, .55); }
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.preview-head strong { overflow-wrap: anywhere; } .preview-body { background: #eef2f3; min-height: 240px; display: grid; place-items: center; }
.preview-body img { max-width: 100%; max-height: 78vh; display: block; } .preview-body iframe { width: 100%; height: 78vh; border: 0; background: #fff; }

/* لوحة الإدارة */
.admin { display: grid; grid-template-columns: 236px 1fr; flex: 1; min-height: 100vh; }
.side { background: var(--petrol-900); color: #d6ecf0; padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.side .brand { color: #fff; padding: 4px 8px 16px; } .side .brand-mark { background: rgba(255, 255, 255, .14); }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: #d6ecf0; text-decoration: none; font-weight: 500; margin-bottom: 2px; }
.side nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; } .side nav a.on { background: var(--petrol-600); color: #fff; }
.side .nav-label { font-size: .75rem; color: #8fbcc5; padding: 14px 12px 4px; }
.admin-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-main main { padding: 22px 24px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; } .page-head h1 { font-size: 1.5rem; margin: 0; }
.menu-toggle { display: none; }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; } .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 250px; z-index: 40; transform: translateX(100%); transition: transform .2s; }
  [dir=ltr] .side { transform: translateX(-100%); } .side.open { transform: none; } .menu-toggle { display: inline-grid; } .admin-main main { padding: 16px 14px 40px; } .topbar { padding: 8px 14px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; display: block; transition: border-color .15s, box-shadow .15s; }
.stat:hover { border-color: var(--petrol-600); box-shadow: var(--shadow); color: inherit; }
.stat .n { font-size: 1.9rem; font-weight: 700; color: var(--petrol-700); line-height: 1.2; } .stat .l { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.stat.warn .n { color: var(--warn); } .stat.blue .n { color: var(--blue-600); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th, .table td { padding: 10px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--petrol-50); color: var(--petrol-900); font-weight: 600; white-space: nowrap; } .table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg); } .table a.row-link { font-weight: 600; text-decoration: none; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; align-items: end; } .filters .field { margin: 0; } .filters label { font-size: .82rem; margin-bottom: 3px; }
.filters input, .filters select { min-height: 40px; padding: 6px 10px; }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 18px; align-items: start; } @media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 18px; }
details.box { border: 1px solid var(--line); border-radius: 12px; background: var(--white); } details.box + details.box { margin-top: 10px; }
details.box > summary { cursor: pointer; padding: 12px 16px; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
details.box > summary::-webkit-details-marker { display: none; } details.box[open] > summary { border-bottom: 1px solid var(--line); } details.box > .box-body { padding: 16px; }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; } .subnav a { padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500; }
.subnav a.on { background: var(--petrol-700); border-color: var(--petrol-700); color: #fff; }
.note { background: var(--warn-bg); border-radius: 10px; padding: 10px 14px; } .msg { background: var(--blue-50); border-radius: 10px; padding: 10px 14px; }
.kv-inline { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--muted); }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px 10px; } .checks-grid label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; }
.checks-grid input, .perm-list input { width: 17px; height: 17px; accent-color: var(--petrol-700); }
.perm-list label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin-bottom: 6px; } .perm-list input { margin-top: 5px; flex: none; }
iframe.mail-preview { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.signature-img { max-width: 320px; max-height: 140px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: block; }
code.var { background: var(--petrol-50); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .85rem; direction: ltr; display: inline-block; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; } legend { padding: 0; width: 100%; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.card.center .actions { justify-content: center; }

/* التسويق بالعمولة */
.aff-title { font-size: 1.15rem; margin: 26px 0 12px; }
.aff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.aff-head h3 { margin: 0 0 4px; font-size: 1.1rem; }
.stats-sm { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 16px; }
.stats-sm .stat { padding: 10px 14px; } .stats-sm .stat .n { font-size: 1.35rem; }
.aff-edit { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); align-items: center; }
.aff-edit .aff-amount { flex: 0 1 220px; } .aff-edit .check { margin: 0 8px; align-self: flex-end; padding-bottom: 10px; } .aff-edit .btn { align-self: flex-end; }
/* اختيار نوع الطلب */
.pick-list { display: grid; gap: 12px; margin-top: 18px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--petrol-700); border-radius: var(--radius); background: var(--petrol-700); color: #fff; text-decoration: none; transition: background .15s, box-shadow .15s, transform .15s; }
.pick:hover, .pick:focus-visible { background: var(--petrol-900); border-color: var(--petrol-900); box-shadow: var(--shadow); color: #fff; transform: translateY(-1px); }
.pick-icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, .16); color: #fff; display: grid; place-items: center; flex: none; }
.pick-text { display: flex; flex-direction: column; gap: 2px; flex: 1; } .pick-text strong { font-size: 1.08rem; } .pick .muted { color: rgba(255, 255, 255, .82); }
.chosen { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--petrol-50); border: 1px solid var(--petrol-100); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
/* استرجاع رقم الطلب */
.recover-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; } .recover-head h1 { margin-bottom: 4px; font-size: 1.5rem; }
.recover-head .pick-icon { background: var(--petrol-50); color: var(--petrol-700); }
.steps-list { margin: 18px 0; padding: 14px 34px 14px 16px; background: var(--petrol-50); border: 1px solid var(--petrol-100); border-radius: 12px; line-height: 2; }

/* الترويسة على الموبايل: الشعار واسم البوابة بوضوح، وأزرار التنقل أيقونات مع نص مختصر */
@media (max-width: 560px) {
  .site-header .container { min-height: 60px; gap: 8px; }
  .brand { gap: 8px; font-size: 1.02rem; min-width: 0; } .brand img { height: 36px; }
  .brand-sub { font-size: .68rem; }
  .nav { gap: 2px; flex: none; } .nav .btn-sm { padding: 6px 8px; font-size: .8rem; gap: 4px; }
  .nav .nav-long { display: none; }
}
@media (max-width: 380px) { .brand-sub { display: none; } }
.inquire-head { text-align: center; }
