/* =====================================================================
   منصة طويق — نظام التصميم (RTL)
   ===================================================================== */

:root {
  --ink: #0f1b2d;
  --ink-2: #1b2a40;
  --ink-3: #2a3c55;
  --amber: #f5a524;
  --amber-600: #dd8f0f;
  --amber-50: #fff6e6;
  --amber-ink: #6b4200;

  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e2e6ec;
  --border-strong: #cfd5de;
  --text: #0f1b2d;
  --text-2: #475467;
  --muted: #667085;

  --success: #0f7b57;  --success-bg: #e8f6f0;
  --danger:  #c0362c;  --danger-bg:  #fdeceb;
  --warning: #a8560a;  --warning-bg: #fff3e0;
  --info:    #1f5fd6;  --info-bg:    #eaf1fe;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px -8px rgba(15, 27, 45, .12);
  --focus: 0 0 0 3px rgba(245, 165, 36, .35);

  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.35; font-weight: 700; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
.icon { width: 20px; height: 20px; flex: none; }
[dir="ltr"], .ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }

/* ------------------------------ الأزرار ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: 0 1.15rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: var(--amber-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--muted); }
.btn-link { background: none; color: var(--info); padding: 0; min-height: auto; font-weight: 600; }
.btn-link:disabled { color: var(--muted); cursor: default; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 .85rem; font-size: 14px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.btn-row--split { justify-content: space-between; }

/* ------------------------------ النماذج ------------------------------ */
.field { margin-bottom: 1.1rem; }
.field > label, .label {
  display: block; font-weight: 600; font-size: 14px; margin-bottom: .4rem; color: var(--text);
}
.field .req { color: var(--danger); margin-inline-start: 2px; }
.input, select.input, textarea.input {
  width: 100%; min-height: 46px; padding: .6rem .85rem;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: 400 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #98a2b3; }
.input:focus { outline: none; border-color: var(--amber-600); box-shadow: var(--focus); }
.input.is-invalid, .field.has-error .input { border-color: var(--danger); }
.input[readonly] { background: var(--surface-2); }
.input-group { position: relative; }
.input-group .input { padding-inline-start: 2.75rem; }
.input-group > .icon {
  position: absolute; inset-inline-start: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none;
}
.input-group .toggle-pass {
  position: absolute; inset-inline-end: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--muted); cursor: pointer; padding: .35rem; border-radius: 6px;
}
.input-group .toggle-pass:hover { color: var(--text); }
.input-group--pass .input { padding-inline-end: 2.75rem; }
.hint { font-size: 13px; color: var(--muted); margin: .35rem 0 0; }
.field-error { font-size: 13px; color: var(--danger); margin: .35rem 0 0; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

.check { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); flex: none; }

.meter { height: 4px; border-radius: 4px; background: var(--border); margin-top: .5rem; overflow: hidden; }
.meter > span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .2s, background .2s; }

/* رقائق اختيار متعدد */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 14px; font-weight: 500; cursor: pointer; transition: all .15s;
}
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.chip-box { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: .6rem; max-height: 210px; overflow: auto; background: var(--surface); }
.chip-box .input { min-height: 38px; margin-bottom: .6rem; }
.chip-count { font-size: 13px; color: var(--muted); }

/* بطاقات اختيار نوع الحساب */
.choice-cards { display: grid; gap: .75rem; }
.choice {
  position: relative; display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 1.1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
}
.choice:hover { border-color: var(--border-strong); }
.choice input { position: absolute; opacity: 0; }
.choice-icon {
  flex: none; width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--border);
}
.choice-icon .icon { width: 24px; height: 24px; }
.choice strong { display: block; font-size: 16px; }
.choice small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.55; margin-top: .15rem; }
.choice-tick {
  margin-inline-start: auto; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: transparent;
}
.choice-tick .icon { width: 14px; height: 14px; }
.choice:has(input:checked) { border-color: var(--ink); background: #fbfbfc; box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:checked) .choice-icon { background: var(--amber); border-color: var(--amber); }
.choice:has(input:checked) .choice-tick { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice:has(input:focus-visible) { box-shadow: var(--focus); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.seg .choice { padding: .75rem .9rem; align-items: center; }
.seg .choice-icon { width: 36px; height: 36px; }

/* ------------------------------ التنبيهات ------------------------------ */
.alert {
  display: flex; gap: .65rem; align-items: flex-start;
  padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem;
  font-size: 14px; border: 1px solid transparent;
}
.alert .icon { margin-top: 2px; width: 18px; height: 18px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #bfe6d5; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #f6c8c4; }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: #fbd9a8; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: #c9dafb; }
.alert-dev     { background: #fffbea; color: #6b4a00; border: 1px dashed #e9b949; }
.alert-dev a { color: #6b4a00; text-decoration: underline; font-weight: 600; }

/* ------------------------------ الشارات ------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info    { background: var(--info-bg);    color: var(--info); }
.badge-muted   { background: #eef0f3; color: var(--text-2); }

/* ===================================================================
   قالب صفحات الدخول والتسجيل
   =================================================================== */
.auth { display: grid; grid-template-columns: minmax(340px, 0.9fr) 1.1fr; min-height: 100vh; }
.auth-side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 2.25rem 2.5rem; color: #d7dde7; overflow: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px;
}
.auth-side::after {
  content: ""; position: absolute; inset-inline-end: -120px; bottom: 80px; width: 360px; height: 360px;
  border: 1px solid rgba(245,165,36,.18); border-radius: 50%;
}
.auth-brand { display: inline-flex; align-items: center; gap: .75rem; color: #fff !important; text-decoration: none !important; position: relative; z-index: 1; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.auth-brand strong { display: block; font-size: 18px; }
.auth-brand small { display: block; font-size: 12.5px; color: #9aa6b8; font-weight: 400; }
.auth-side-body { position: relative; z-index: 1; max-width: 430px; }
.auth-side-body h2 { color: #fff; font-size: 30px; line-height: 1.35; margin-bottom: .75rem; }
.auth-side-body > p { color: #aeb8c7; font-size: 16px; }
.auth-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .9rem; }
.auth-points li { display: flex; gap: .75rem; align-items: center; color: #d7dde7; }
.auth-points .icon { color: var(--amber); width: 22px; height: 22px; }
.hazard {
  height: 10px; margin: 0 -2.5rem -2.25rem; position: relative; z-index: 1;
  background: repeating-linear-gradient(-45deg, var(--amber) 0 14px, var(--ink) 14px 28px);
}
.auth-main { display: flex; flex-direction: column; align-items: center; padding: 1.5rem 1.5rem 1rem; }
.auth-top { width: 100%; max-width: 560px; display: flex; justify-content: flex-end; align-items: center; min-height: 44px; margin-bottom: 1.5rem; font-size: 14px; color: var(--muted); }
.auth-top-link a { font-weight: 600; }
.auth-brand--mobile { display: none; color: var(--ink) !important; }
.auth-brand--mobile .brand-mark { width: 34px; height: 34px; }
.auth-card { width: 100%; max-width: 480px; margin: auto 0; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 26px; margin-bottom: .35rem; }
.auth-card .lead { color: var(--muted); margin-bottom: 1.75rem; }
.auth-foot { margin-top: 2rem; font-size: 13px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: 13px; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--border); flex: 1; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-top { justify-content: space-between; }
  .auth-brand--mobile { display: inline-flex; }
  .auth-card { margin-top: 0; }
}

/* ------------------------------ المراحل (Stepper) ------------------------------ */
.steps { display: flex; gap: .5rem; margin-bottom: 1.75rem; counter-reset: step; }
.step { flex: 1; display: flex; flex-direction: column; gap: .45rem; font-size: 13px; color: var(--muted); font-weight: 500; }
.step::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); }
.step.is-done::before, .step.is-current::before { background: var(--ink); }
.step.is-current { color: var(--text); font-weight: 700; }
.step-panel { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.section-title { font-size: 15px; font-weight: 700; margin: 1.5rem 0 .9rem; display: flex; align-items: center; gap: .5rem; }
.section-title .icon { color: var(--amber-600); }

/* ------------------------------ رمز OTP ------------------------------ */
.otp { display: flex; gap: .5rem; justify-content: center; direction: ltr; margin: 1.25rem 0 .5rem; }
.otp input {
  width: 52px; height: 58px; text-align: center; font: 700 24px/1 var(--font);
  border: 1.5px solid var(--border-strong); border-radius: 10px; background: var(--surface); color: var(--ink);
}
.otp input:focus { outline: none; border-color: var(--ink); box-shadow: var(--focus); }
@media (max-width: 400px) { .otp input { width: 44px; height: 52px; font-size: 20px; } .otp { gap: .35rem; } }
.resend { text-align: center; font-size: 14px; color: var(--muted); margin-top: .75rem; }
.resend form { display: inline; }

.verify-steps { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.verify-row {
  display: flex; gap: .85rem; align-items: center; padding: .85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.verify-row .vr-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.verify-row.is-done .vr-icon { background: var(--success-bg); color: var(--success); }
.verify-row.is-current { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.verify-row strong { display: block; font-size: 14.5px; }
.verify-row small { color: var(--muted); font-size: 13px; }
.verify-row .badge { margin-inline-start: auto; }

/* ------------------------------ البطاقات العامة ------------------------------ */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 1.25rem 1.35rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--border); }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }

/* ------------------------------ وثائق التوثيق (5A) ------------------------------ */
.docs { display: grid; gap: .9rem; }
.doc {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  overflow: hidden;
}
.doc-head { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.1rem; }
.doc-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--ink); flex: none; }
.doc-head strong { display: block; }
.doc-head small { display: block; color: var(--muted); font-size: 13px; }
.doc-head .badge { margin-inline-start: auto; }
.doc-file {
  display: flex; align-items: center; gap: .75rem; margin: 0 1.1rem 1rem; padding: .65rem .8rem;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 14px;
}
.doc-file .thumb { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; background: #fff; border: 1px solid var(--border); flex: none; display: grid; place-items: center; color: var(--danger); font-weight: 700; font-size: 11px; }
.doc-file .meta { min-width: 0; flex: 1; }
.doc-file .meta b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-file .meta span { color: var(--muted); font-size: 12.5px; }
.doc-reject { margin: 0 1.1rem 1rem; }
.doc-form { border-top: 1px dashed var(--border); padding: 1rem 1.1rem; background: #fcfcfd; }
.doc-form-row { display: grid; grid-template-columns: 1fr 180px auto; gap: .75rem; align-items: end; }
.doc-form-row .field { margin: 0; }
@media (max-width: 640px) { .doc-form-row { grid-template-columns: 1fr; } }
.dropzone {
  position: relative; display: flex; align-items: center; gap: .7rem; min-height: 46px;
  padding: .5rem .85rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-2); font-size: 14px; cursor: pointer;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--ink); background: #fbfbfc; }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone .dz-thumb { width: 30px; height: 30px; border-radius: 5px; object-fit: cover; flex: none; }

.checklist { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .45rem; font-size: 14px; }
.checklist li { display: flex; gap: .5rem; align-items: center; color: var(--muted); }
.checklist li .icon { width: 18px; height: 18px; }
.checklist li.ok { color: var(--success); }
.checklist li.no .icon { color: var(--border-strong); }

.submit-bar {
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}

/* ------------------------------ متتبع الحالة (6A) ------------------------------ */
.track { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.5rem 0 2rem; position: relative; }
.track-step { position: relative; text-align: center; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.track-step::before {
  content: ""; position: absolute; top: 17px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--border); z-index: 0;
}
.track-step:last-child::before { display: none; }
.track-dot {
  position: relative; z-index: 1; width: 36px; height: 36px; margin: 0 auto .5rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); color: var(--muted);
}
.track-dot .icon { width: 18px; height: 18px; }
.track-step.is-done { color: var(--text); }
.track-step.is-done::before { background: var(--ink); }
.track-step.is-done .track-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.track-step.is-current { color: var(--text); font-weight: 700; }
.track-step.is-current .track-dot { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 5px rgba(15,27,45,.08); }
.track-step.tone-success .track-dot { background: var(--success); border-color: var(--success); color: #fff; box-shadow: none; }
.track-step.tone-danger  .track-dot { background: var(--danger);  border-color: var(--danger);  color: #fff; box-shadow: none; }
.track-step.tone-warning .track-dot { background: var(--amber);   border-color: var(--amber);   color: var(--ink); box-shadow: none; }

.status-hero { text-align: center; padding: .5rem 0 0; }
.status-hero .big-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 1rem; }
.status-hero .big-icon .icon { width: 32px; height: 32px; }
.tone-bg-info    { background: var(--info-bg); color: var(--info); }
.tone-bg-success { background: var(--success-bg); color: var(--success); }
.tone-bg-danger  { background: var(--danger-bg); color: var(--danger); }
.tone-bg-warning { background: var(--warning-bg); color: var(--warning); }

.list-rows { display: grid; }
.list-row { display: flex; gap: .75rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.list-row:last-child { border-bottom: 0; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row small { display: block; color: var(--muted); }
.note-box { background: var(--surface-2); border: 1px solid var(--border); border-inline-start: 3px solid var(--danger); padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 1rem; }
.note-box.warn { border-inline-start-color: var(--amber); }

/* ===================================================================
   لوحة التحكم
   =================================================================== */
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.dash-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: .25rem;
  background: var(--ink); color: #c6cfdb; padding: 1.1rem .8rem;
}
.dash-brand { display: flex; align-items: center; gap: .65rem; padding: .35rem .5rem 1rem; color: #fff !important; text-decoration: none !important; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .5rem; }
.dash-brand .brand-mark { width: 36px; height: 36px; }
.dash-brand strong { display: block; font-size: 15.5px; }
.dash-brand small { display: block; font-size: 12px; color: #8e9bb0; }
.dash-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dash-nav-group { margin: .9rem .6rem .35rem; font-size: 11.5px; letter-spacing: .02em; color: #7d8aa0; font-weight: 600; }
.dash-link {
  display: flex; align-items: center; gap: .7rem; padding: .55rem .65rem; border-radius: 8px;
  color: #c6cfdb !important; text-decoration: none !important; font-size: 14px; font-weight: 500;
}
.dash-link .icon { width: 18px; height: 18px; opacity: .85; }
a.dash-link:hover { background: rgba(255,255,255,.06); color: #fff !important; }
.dash-link.is-active { background: rgba(245,165,36,.14); color: #fff !important; box-shadow: inset -3px 0 0 var(--amber); }
.dash-link.is-active .icon { color: var(--amber); opacity: 1; }
.dash-link.is-soon { color: #6e7b91 !important; cursor: default; }
.dash-link.is-soon em { margin-inline-start: auto; font-style: normal; font-size: 10.5px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.06); color: #8e9bb0; }
.dash-logout { margin-top: .5rem; border-top: 1px solid rgba(255,255,255,.08); border-radius: 0; padding-top: .9rem; }
button.dash-link { width: 100%; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.08); font: 500 14px/1.65 var(--font); text-align: start; cursor: pointer; }
button.dash-link:hover { background: rgba(255,255,255,.06); color: #fff !important; }

.dash-body { min-width: 0; display: flex; flex-direction: column; }
.dash-top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .9rem;
  height: 64px; padding: 0 1.5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.dash-title { font-size: 18px; margin: 0; flex: 1; }
.dash-top-actions { display: flex; align-items: center; gap: .9rem; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; }
.dot-count { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 11px; display: grid; place-items: center; }
.dash-user { display: flex; align-items: center; gap: .6rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 700; }
.dash-user-meta strong { display: block; font-size: 14px; line-height: 1.3; }
.dash-user-meta small { display: block; font-size: 12px; color: var(--muted); }
.dash-main { padding: 1.5rem; max-width: 1280px; width: 100%; }
.dash-menu-btn { display: none; }
.dash-scrim { display: none; }

@media (max-width: 1024px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; z-index: 50; transform: translateX(100%); transition: transform .2s ease; }
  .dash.side-open .dash-side { transform: none; }
  .dash.side-open .dash-scrim { display: block; position: fixed; inset: 0; background: rgba(15,27,45,.45); z-index: 40; }
  .dash-menu-btn { display: inline-grid; }
  .dash-user-meta { display: none; }
  .dash-main { padding: 1rem; }
  .dash-top { padding: 0 1rem; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.2rem; }
.stat span { display: flex; align-items: center; gap: .5rem; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.stat span .icon { width: 18px; height: 18px; color: var(--amber-600); }
.stat strong { display: block; font-size: 26px; margin-top: .35rem; font-variant-numeric: tabular-nums; }

.welcome {
  display: flex; gap: 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 1.35rem 1.5rem; margin-bottom: 1.5rem; border-radius: var(--radius); color: #fff;
  background: var(--ink); position: relative; overflow: hidden;
}
.welcome::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--amber) 0 10px, var(--ink) 10px 20px); }
.welcome h2 { color: #fff; font-size: 20px; margin: 0 0 .25rem; }
.welcome p { color: #aeb8c7; margin: 0; }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .icon { width: 40px; height: 40px; margin: 0 auto .75rem; color: var(--border-strong); }

.roadmap { display: grid; gap: .5rem; }
.roadmap-item { display: flex; gap: .75rem; align-items: center; padding: .6rem .8rem; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.roadmap-item code { font: 600 12px/1 ui-monospace, monospace; background: #fff; border: 1px solid var(--border); padding: 4px 6px; border-radius: 5px; color: var(--ink); }

/* ------------------------------ صفحة الترحيب المؤقتة ------------------------------ */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--ink); color: #d7dde7;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 28px 28px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 2rem; }
.landing-hero { flex: 1; display: grid; place-items: center; text-align: center; padding: 2rem 1.25rem 4rem; }
.landing-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); max-width: 780px; margin: 0 auto 1rem; }
.landing-hero p { font-size: 18px; color: #aeb8c7; max-width: 600px; margin: 0 auto 2rem; }
.landing-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 900px; margin: 3rem auto 0; text-align: start; }
.landing-role { padding: 1.25rem; border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); background: rgba(255,255,255,.03); }
.landing-role .icon { color: var(--amber); width: 26px; height: 26px; margin-bottom: .6rem; }
.landing-role strong { color: #fff; display: block; margin-bottom: .25rem; }
.landing-role p { font-size: 14px; margin: 0 0 .75rem; }
.landing-role a { color: var(--amber); font-weight: 600; font-size: 14px; }
@media (max-width: 760px) { .landing-roles { grid-template-columns: 1fr; } .landing-nav { padding: 1rem 1.25rem; } }

/* ------------------------------ معالج التثبيت ------------------------------ */
.install { max-width: 620px; margin: 3rem auto; padding: 0 1rem; }
.install .card-pad { padding: 1.75rem; }

/* ===================================================================
   مكونات صفحات الإدارة (المرحلة 2)
   =================================================================== */
a.row-link { color: inherit !important; text-decoration: none !important; border-radius: var(--radius-sm); }
a.row-link:hover { background: var(--surface-2); }

.toolbar { display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filters .input { width: auto; min-width: 150px; min-height: 40px; padding-block: .4rem; }
.filters .input[type=search] { min-width: 220px; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.tab { padding: .7rem 1rem; font-weight: 600; font-size: 14px; color: var(--muted) !important; text-decoration: none !important; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tab:hover { color: var(--text) !important; }
.tab.is-active { color: var(--ink) !important; border-bottom-color: var(--amber); }
.tab .badge { font-size: 11.5px; padding: .05rem .45rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: start; font-weight: 600; font-size: 12.5px; color: var(--muted); background: var(--surface-2); padding: .65rem .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table .cell-main b { display: block; }
.table .cell-main small { color: var(--muted); }
.table .actions { display: flex; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.table .indent { display: inline-block; width: 1.25rem; color: var(--border-strong); }

.pager { display: flex; gap: .5rem; align-items: center; justify-content: flex-end; padding: .85rem 1.1rem; border-top: 1px solid var(--border); font-size: 13px; }
.pager .muted { margin-inline-end: auto; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: .1rem 1rem; font-size: 14px; }
.kv dt { color: var(--muted); padding: .45rem 0; }
.kv dd { margin: 0; padding: .45rem 0; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; } .kv dd { padding-top: 0; } }

.grid-main { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .grid-main { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 1.25rem; }

.json { direction: ltr; text-align: left; font: 12px/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: .5rem .65rem; margin: 0; white-space: pre-wrap; max-height: 180px; overflow: auto; }

.form-row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.form-row .field { margin: 0; flex: 1 1 160px; }
.form-row .field.narrow { flex: 0 1 110px; }

.review-doc { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.review-doc + .review-doc { margin-top: .9rem; }
.review-doc .doc-head { border-bottom: 1px solid var(--border); }
.review-preview { display: block; width: 100%; height: 360px; border: 0; background: #f0f2f5; }
.review-preview.is-img { width: auto; max-width: 100%; height: auto; max-height: 420px; margin: 0 auto; padding: .75rem; }
.review-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; padding: .85rem 1.1rem; background: var(--surface-2); }
.review-actions .input { min-height: 38px; flex: 1 1 200px; }

.decision { padding: 1.1rem 1.25rem; }
.decision + .decision { border-top: 1px solid var(--border); }
.decision h4 { margin: 0 0 .5rem; font-size: 14.5px; display: flex; gap: .5rem; align-items: center; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #0b6547; }
.btn-warning { background: var(--amber); color: var(--ink); }
.btn-danger:hover { background: #a02d24; }

/* =====================================================================
   الواجهة العامة (P1–P9)
   ===================================================================== */
.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: .5rem 1rem; border-radius: var(--radius-sm); font-weight: 600; }
.skip-link:focus { top: 1rem; }
.page-public { background: var(--bg); }
.pub-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.pub-flashes { padding-top: 1rem; }

/* الشريط العلوي */
.pub-top { background: var(--ink); color: #d7dde7; position: sticky; top: 0; z-index: 50; }
.pub-top-in { max-width: 1200px; margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.5rem; }
.pub-brand { display: flex; align-items: center; gap: .65rem; color: #fff !important; text-decoration: none !important; }
.pub-brand .brand-mark { width: 38px; height: 38px; }
.pub-brand strong { display: block; font-size: 16px; line-height: 1.2; }
.pub-brand small { display: block; font-size: 12px; color: #9aa6b8; }
.pub-nav { flex: 1; display: flex; align-items: center; gap: .25rem; }
.pub-nav > a { color: #c9d1dd; padding: .45rem .75rem; border-radius: var(--radius-sm); font-weight: 500; font-size: 15px; }
.pub-nav > a:hover { color: #fff; background: rgba(255,255,255,.06); text-decoration: none; }
.pub-nav > a.is-active { color: var(--amber); }
.pub-nav-actions { margin-inline-start: auto; display: flex; gap: .5rem; }
.pub-login { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.pub-login:hover { background: rgba(255,255,255,.08); color: #fff; }
.pub-nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.pub-nav-btn { display: none; color: #fff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); margin-inline-start: auto; cursor: pointer; }
.pub-nav-toggle:focus-visible + .pub-nav-btn { box-shadow: var(--focus); }
@media (max-width: 900px) {
  .pub-nav-btn { display: inline-flex; }
  .pub-nav { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--ink-2); flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .15rem; box-shadow: var(--shadow); }
  .pub-nav-toggle:checked ~ .pub-nav { display: flex; }
  .pub-nav-actions { margin: .75rem 0 0; }
  .pub-nav-actions .btn { flex: 1; }
}

/* التذييل */
.pub-foot { background: var(--ink); color: #aeb8c7; margin-top: 4rem; }
.pub-foot .hazard { margin: 0; }
.pub-foot-in { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.25rem 1.5rem; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.pub-foot-brand p { margin-top: 1rem; max-width: 34ch; font-size: 14px; }
.pub-foot-title { color: #fff; font-weight: 600; margin-bottom: .6rem; }
.pub-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: 14px; }
.pub-foot a { color: #c9d1dd; }
.pub-foot a:hover { color: var(--amber); }
.pub-social { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; font-size: 14px; }
.pub-copy { text-align: center; font-size: 13px; color: #7d889a; border-top: 1px solid rgba(255,255,255,.08); margin: 0; padding: 1rem; }
@media (max-width: 800px) { .pub-foot-in { grid-template-columns: 1fr 1fr; } .pub-foot-brand { grid-column: 1 / -1; } }

/* الأقسام */
.sec { padding: 3rem 0 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sec-head h2 { font-size: 24px; margin: 0; }
.sec-head p { margin: .25rem 0 0; color: var(--text-2); }
.sec-head a { font-weight: 600; white-space: nowrap; }

/* الواجهة الرئيسية */
.hero { background: var(--ink); color: #d7dde7; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px,
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 56px 56px; pointer-events: none; }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 3.5rem 1.25rem 3rem; }
.hero h1 { color: #fff; font-size: clamp(28px, 4.4vw, 46px); line-height: 1.25; max-width: 18ch; margin-bottom: .75rem; }
.hero-lead { font-size: 18px; color: #aeb8c7; max-width: 56ch; margin-bottom: 2rem; }
.qsearch { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 1rem; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); display: grid; grid-template-columns: auto 1fr 1fr auto; gap: .75rem; align-items: end; max-width: 980px; }
.qsearch .field { margin: 0; }
.qsearch .field > label { font-size: 13px; }
.qsearch-kind { display: flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 3px; }
.qsearch-kind label { position: relative; }
.qsearch-kind input { position: absolute; opacity: 0; }
.qsearch-kind span { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .9rem; border-radius: 6px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.qsearch-kind input:checked + span { background: var(--ink); color: #fff; }
.qsearch-kind input:focus-visible + span { box-shadow: var(--focus); }
.qsearch .btn { height: 46px; }
@media (max-width: 860px) { .qsearch { grid-template-columns: 1fr 1fr; } .qsearch-kind, .qsearch .btn { grid-column: 1 / -1; } .qsearch-kind label { flex: 1; } .qsearch-kind span { width: 100%; justify-content: center; } }
.banners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.banner { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; color: var(--text) !important; text-decoration: none !important; }
.banner img { width: 88px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.banner strong { display: block; }
.banner span { font-size: 14px; color: var(--text-2); }

/* مسار مراحل المشروع (العنصر المميز للرئيسية) */
.stage-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: stage; position: relative; }
.stage-track::before { content: ""; position: absolute; top: 26px; inset-inline: 10%; height: 4px; background: repeating-linear-gradient(-45deg, var(--amber) 0 8px, var(--ink) 8px 16px); border-radius: 2px; }
.stage { counter-increment: stage; text-align: center; position: relative; }
.stage a { display: block; padding: 0 .5rem 1rem; color: var(--text) !important; text-decoration: none !important; border-radius: var(--radius); }
.stage-num { width: 56px; height: 56px; margin: 0 auto .75rem; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--amber); font-weight: 700; font-size: 20px; border: 4px solid var(--bg); position: relative; transition: transform .15s ease; }
.stage-num::before { content: counter(stage); }
.stage strong { display: block; font-size: 16px; }
.stage small { color: var(--muted); font-size: 13px; }
.stage a:hover .stage-num, .stage a:focus-visible .stage-num { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
@media (max-width: 760px) {
  .stage-track { grid-template-columns: 1fr; gap: .25rem; }
  .stage-track::before { top: 28px; bottom: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 4px; height: auto; }
  .stage { text-align: start; }
  .stage a { display: flex; align-items: center; gap: 1rem; padding: .25rem 0; }
  .stage-num { margin: 0; flex: none; }
}
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; }
.cat-tile { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem .9rem; color: var(--text) !important; text-decoration: none !important; }
.cat-tile .icon { color: var(--amber-600); width: 24px; height: 24px; }
.cat-tile strong { display: block; font-size: 15px; line-height: 1.3; }
.cat-tile small { color: var(--muted); }
.cat-tile:hover { border-color: var(--ink); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.how-col { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.how-col h3 { display: flex; align-items: center; gap: .5rem; font-size: 18px; }
.how-col h3 .icon { color: var(--amber-600); }
.how-steps { margin: 0; padding: 0; list-style: none; counter-reset: hs; display: grid; gap: .8rem; }
.how-steps li { counter-increment: hs; display: grid; grid-template-columns: 30px 1fr; gap: .6rem; }
.how-steps li::before { content: counter(hs); width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.how-steps strong { display: block; }
.how-steps span { color: var(--text-2); font-size: 14px; }
@media (max-width: 900px) { .how-grid { grid-template-columns: 1fr; } }
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: #aeb8c7; border-radius: var(--radius); overflow: hidden; }
.numbers div { padding: 1.5rem 1.25rem; border-inline-start: 1px solid rgba(255,255,255,.08); }
.numbers div:first-child { border: 0; }
.numbers strong { display: block; color: #fff; font-size: 32px; line-height: 1.2; }
@media (max-width: 640px) { .numbers { grid-template-columns: 1fr; } .numbers div { border: 0; border-top: 1px solid rgba(255,255,255,.08); } }
.join-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.join-card { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; }
.join-card h3 { display: flex; align-items: center; gap: .5rem; }
.join-card p { color: var(--text-2); flex: 1; }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }

/* بطاقات الإعلانات */
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.lcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.lcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.lcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; }
.lcard-ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--border-strong); background: repeating-linear-gradient(-45deg, var(--surface-2) 0 12px, #f0f2f5 12px 24px); }
.lcard-ph .icon { width: 44px; height: 44px; }
.lcard-flag { position: absolute; top: .6rem; inset-inline-start: .6rem; background: var(--amber); color: var(--ink); font-size: 12px; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.lcard-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.lcard-body p { margin: 0; }
.lcard-cat { font-size: 13px; color: var(--muted); }
.lcard-title { font-size: 16px; margin: 0; line-height: 1.4; }
.lcard-title a { color: var(--text); }
.lcard-price strong { font-size: 18px; }
.lcard-price small { color: var(--muted); }
.lcard-meta { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 13px; color: var(--text-2); }
.lcard-meta > span { display: inline-flex; align-items: center; gap: .25rem; }
.lcard-meta .icon { width: 15px; height: 15px; }
.lcard-supplier { margin-top: auto !important; padding-top: .5rem; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 13px; color: var(--text-2); }
.lcard-supplier > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stars { display: inline-flex; align-items: center; gap: .2rem; font-size: 13px; color: var(--text); }
.stars .icon { width: 15px; height: 15px; color: var(--amber-600); fill: var(--amber); }
.stars small { color: var(--muted); }
.stars.is-empty { color: var(--muted); }
.vbadge { display: inline-flex; align-items: center; gap: .2rem; font-size: 12px; font-weight: 600; color: var(--success); background: var(--success-bg); padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; margin-inline-start: .35rem; }
.vbadge .icon { width: 13px; height: 13px; }

/* البحث */
.search-head { background: var(--ink); color: #aeb8c7; padding: 1.5rem 0 0; }
.search-head h1 { color: #fff; font-size: 24px; }
.search-q { display: flex; gap: .5rem; max-width: 720px; margin-bottom: 1rem; }
.search-q .input { background: #fff; }
.kind-tabs { display: flex; gap: .25rem; }
.kind-tabs a { display: inline-flex; align-items: center; gap: .4rem; padding: .7rem 1.1rem; color: #c9d1dd; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-weight: 600; }
.kind-tabs a:hover { text-decoration: none; color: #fff; }
.kind-tabs a.is-active { background: var(--bg); color: var(--ink); }
.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 1.5rem; padding-top: 1.5rem; align-items: start; }
.sfilters { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow: auto; }
.sfilters h2 { font-size: 16px; display: flex; align-items: center; gap: .4rem; }
.sfilters fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
.sfilters legend { font-weight: 600; font-size: 14px; margin-bottom: .4rem; padding: 0; }
.sfilters .field { margin-bottom: .75rem; }
.sfilters .input { min-height: 40px; padding-top: .45rem; padding-bottom: .45rem; font-size: 14px; }
.sfilters .range { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.sfilters .check { font-size: 14px; }
.sfilters-actions { display: flex; gap: .5rem; position: sticky; bottom: -1rem; background: var(--surface); padding: .75rem 0 .25rem; }
.sfilters-actions .btn { flex: 1; }
.sfilters-toggle { display: none; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; justify-content: space-between; margin-bottom: 1rem; }
.results-bar strong { font-size: 16px; }
.results-bar form { display: flex; align-items: center; gap: .5rem; }
.results-bar select.input { min-height: 38px; padding-top: .35rem; padding-bottom: .35rem; width: auto; }
.view-toggle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle a { display: inline-flex; align-items: center; gap: .3rem; padding: .4rem .8rem; color: var(--text-2); font-size: 14px; }
.view-toggle a.is-active { background: var(--ink); color: #fff; }
.view-toggle a:hover { text-decoration: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.active-chips a { display: inline-flex; align-items: center; gap: .25rem; font-size: 13px; background: var(--amber-50); color: var(--amber-ink); border: 1px solid #f5d9a4; padding: .15rem .6rem; border-radius: 999px; }
.active-chips .icon { width: 13px; height: 13px; }
.map-results { height: 560px; border-radius: var(--radius); border: 1px solid var(--border); }
.save-search { display: flex; gap: .5rem; align-items: center; }
.save-search .input { min-height: 38px; }
@media (max-width: 960px) {
  .search-layout { grid-template-columns: 1fr; }
  .sfilters { position: static; max-height: none; display: none; }
  .sfilters-toggle { display: inline-flex; }
  #filtersOpen:checked ~ .search-layout .sfilters { display: block; }
}

/* صفحات التفاصيل */
.crumbs { font-size: 14px; color: var(--muted); padding: 1rem 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { color: var(--text-2); }
.crumbs span[aria-hidden] { color: var(--border-strong); }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.5rem; align-items: start; }
.detail-aside { position: sticky; top: 80px; display: grid; gap: 1rem; }
@media (max-width: 1000px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; } }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin: 1.25rem 0 1rem; }
.detail-head h1 { font-size: 26px; margin-bottom: .25rem; }
.detail-sub { display: flex; flex-wrap: wrap; gap: .4rem .9rem; color: var(--text-2); font-size: 14px; }
.detail-sub span { display: inline-flex; align-items: center; gap: .25rem; }
.detail-sub .icon { width: 16px; height: 16px; }
.detail .card { margin-bottom: 1rem; }
.detail .card h2 { font-size: 18px; }
.gallery { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.gallery-main { aspect-ratio: 16 / 10; background: #0b1422; }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: contain; }
.gallery--empty { aspect-ratio: 16 / 10; }
.gallery-thumbs { display: flex; gap: .5rem; padding: .6rem; overflow-x: auto; }
.gallery-thumb { flex: none; width: 84px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: var(--surface-2); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--amber); }
.gallery-video { display: grid; place-items: center; height: 100%; font-size: 12px; color: var(--text-2); }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: .6rem .5rem; border-bottom: 1px solid var(--border); text-align: start; }
.price-table th { font-weight: 500; color: var(--text-2); width: 45%; }
.price-table td strong { font-size: 17px; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }
.prose { color: var(--text); max-width: 72ch; }
.prose h3 { font-size: 17px; margin-top: 1.25rem; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.pre-line { white-space: pre-line; }
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.cal-title { font-weight: 600; text-align: center; margin-bottom: .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; font-size: 13px; }
.cal-dow { color: var(--muted); font-size: 11px; padding-bottom: .2rem; }
.cal-day { padding: .35rem 0; border-radius: 5px; background: var(--success-bg); color: var(--success); font-variant-numeric: tabular-nums; }
.cal-day.is-past { background: transparent; color: var(--border-strong); }
.cal-day.is-blocked { background: repeating-linear-gradient(-45deg, #fde2df 0 4px, #fbd0cb 4px 8px); color: var(--danger); text-decoration: line-through; }
.cal-day.is-today { outline: 2px solid var(--ink); }
.cal-legend { display: flex; gap: 1rem; font-size: 13px; color: var(--text-2); margin-top: .75rem; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: .3rem; vertical-align: -1px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.quote { border-top: 4px solid var(--amber); }
.quote h2 { font-size: 18px; }
.quote .field { margin-bottom: .8rem; }
.quote-lines { margin: .75rem 0; padding: .75rem; background: var(--surface-2); border-radius: var(--radius-sm); font-size: 14px; }
.quote-lines dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; }
.quote-lines dt { color: var(--text-2); }
.quote-lines dd { margin: 0; font-variant-numeric: tabular-nums; text-align: end; }
.quote-lines .q-total { font-weight: 700; font-size: 16px; color: var(--text); border-top: 1px solid var(--border); padding-top: .35rem; }
.quote-lines .q-deposit { color: var(--info); }
.quote-msg { font-size: 13px; }
.quote-msg p { margin: .2rem 0; }
.quote-msg .is-error { color: var(--danger); }
.quote-actions { display: grid; gap: .5rem; }
.soon-note { font-size: 12px; color: var(--muted); text-align: center; margin: .25rem 0 0; }
.scard-head { display: flex; gap: .75rem; align-items: center; margin-bottom: .75rem; }
.scard-head p { margin: .1rem 0 0; font-size: 13px; display: flex; align-items: center; gap: .2rem; }
.scard-head .icon { width: 15px; height: 15px; }
.scard-logo { width: 52px; height: 52px; flex: none; border-radius: var(--radius-sm); background: var(--ink); color: var(--amber); display: grid; place-items: center; font-weight: 700; font-size: 20px; overflow: hidden; }
.scard-logo img { width: 100%; height: 100%; object-fit: cover; }
.scard .stars { margin-bottom: .75rem; }
.reviews { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.review { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .8rem 1rem; }
.review p { margin: .35rem 0 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.review-head .muted { margin-inline-start: auto; font-size: 13px; }
.review-scores { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 13px; color: var(--text-2); }
.map-box { border-radius: var(--radius-sm); border: 1px solid var(--border); z-index: 0; }
.inline-form { display: inline; margin: 0; }
.fav.is-on { color: var(--danger); border-color: #f3c0bb; background: var(--danger-bg); }
.fav.is-on .icon { fill: currentColor; }
.tier-table td, .tier-table th { font-size: 14px; }

/* الملف العام للمورد */
.profile-cover { height: 220px; background: var(--ink); background-size: cover; background-position: center; position: relative; }
.profile-cover:not([style])::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(245,165,36,.12) 0 18px, transparent 18px 36px); }
.profile-head { display: flex; gap: 1.25rem; align-items: flex-end; margin-top: -56px; position: relative; flex-wrap: wrap; }
.profile-logo { width: 112px; height: 112px; border-radius: var(--radius); border: 4px solid var(--bg); background: var(--ink); color: var(--amber); display: grid; place-items: center; font-size: 40px; font-weight: 700; overflow: hidden; flex: none; }
.profile-logo img { width: 100%; height: 100%; object-fit: cover; }
.profile-title { flex: 1; min-width: 220px; padding-bottom: .5rem; }
.profile-title h1 { font-size: 26px; margin: 0 0 .25rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-bottom: .5rem; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.5rem 0; }
.profile-stats > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; }
.profile-stats span { display: block; font-size: 13px; color: var(--text-2); }
.profile-stats strong { font-size: 22px; }
@media (max-width: 760px) { .profile-stats { grid-template-columns: 1fr 1fr; } }
.ptabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; overflow-x: auto; }
.ptabs a { padding: .65rem 1rem; color: var(--text-2); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.ptabs a:hover { text-decoration: none; color: var(--text); }
.ptabs a.is-active { color: var(--ink); border-bottom-color: var(--amber); }
.ptabs small { color: var(--muted); font-weight: 400; }

/* كيف تعمل + الأسئلة + التواصل + القانونية */
.page-hero { background: var(--ink); color: #aeb8c7; padding: 2.5rem 0 2.25rem; }
.page-hero h1 { color: #fff; font-size: clamp(26px, 3.5vw, 36px); }
.page-hero p { max-width: 60ch; margin: 0; font-size: 17px; }
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; counter-reset: cy; }
.cycle li { counter-increment: cy; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .9rem 1rem; position: relative; }
.cycle li::before { content: counter(cy); position: absolute; top: .8rem; inset-inline-end: .9rem; font-weight: 700; color: var(--amber-600); font-size: 20px; }
.cycle strong { display: block; margin-bottom: .2rem; }
.cycle span { font-size: 14px; color: var(--text-2); }
@media (max-width: 900px) { .cycle { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cycle { grid-template-columns: 1fr; } }
.faq { display: grid; gap: .5rem; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .2rem 1rem; }
.faq summary { cursor: pointer; font-weight: 600; padding: .7rem 0; }
.faq details p { color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .75rem; }
.contact-list li { display: flex; gap: .75rem; align-items: center; }
.contact-list .icon { color: var(--amber-600); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.legal-tabs a { padding: .45rem .9rem; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-2); font-size: 14px; background: var(--surface); }
.legal-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.legal-tabs a:hover { text-decoration: none; }
.broker-card { display: flex; flex-direction: column; gap: .5rem; }
@media (prefers-reduced-motion: reduce) { .stage-num { transition: none; } }

/* =====================================================================
   دورة الطلب: المشاريع وطلبات العروض والعروض (O1–O5، S7)
   ===================================================================== */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.pcard { display: flex; flex-direction: column; gap: .45rem; padding: 1.1rem 1.25rem; color: var(--text) !important; text-decoration: none !important; border-top: 4px solid var(--ink); }
.pcard:hover { border-color: var(--border-strong); border-top-color: var(--amber); box-shadow: var(--shadow); }
.pcard p { margin: 0; }
.pcard-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.pcard-head strong { font-size: 16px; }
.pcard-meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: 13px; color: var(--text-2); }
.pcard-meta span { display: inline-flex; align-items: center; gap: .25rem; }
.pcard-meta .icon, .pcard-note .icon { width: 15px; height: 15px; }
.pcard-stage { font-size: 14px; color: var(--text-2); }
.pcard-foot { display: flex; justify-content: space-between; gap: .5rem; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.pcard-note { font-size: 13px; color: var(--info); display: flex; align-items: center; gap: .3rem; }
.bar { height: 8px; border-radius: 8px; background: var(--border); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--amber); border-radius: 8px; }
.bar.is-over > span { background: var(--danger); }
.stage-list { display: grid; gap: 1rem; }
.stage-card .card-head h3 { display: flex; align-items: center; gap: .5rem; }
.need-list { margin-bottom: .75rem; }
.need-list .list-row small a { font-weight: 600; }
.need-add { padding-top: .75rem; border-top: 1px dashed var(--border); }
.item-row { border: 1px solid var(--border); border-inline-start: 3px solid var(--amber); border-radius: var(--radius-sm); padding: .9rem 1rem .6rem; margin-bottom: .85rem; background: var(--surface); }
.item-row-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: .6rem; align-items: end; }
.item-row-grid .item-desc { grid-column: span 2; }
.item-row-grid .field { margin: 0; }
.item-row-grid [hidden] { display: none !important; }
@media (max-width: 560px) { .item-row-grid .item-desc { grid-column: 1 / -1; } }
.att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.att-list li { display: flex; justify-content: space-between; align-items: center; gap: .75rem; font-size: 14px; padding: .45rem .6rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; }
.att-list a { display: inline-flex; align-items: center; gap: .35rem; min-width: 0; }
.att-list a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-list .icon { width: 16px; height: 16px; flex: none; }
.cmp-table td { vertical-align: top; }
.cmp-table tr.cmp-detail td { padding-top: 0; background: var(--surface-2); }
.cmp-table tr.cmp-detail:hover { background: var(--surface-2); }
.cmp-table tr:not(.cmp-detail) td { border-bottom: 0; }
.cmp-table details summary { cursor: pointer; font-size: 13px; color: var(--info); padding: .35rem 0; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; padding: .5rem 0 .75rem; }
@media (max-width: 800px) { .cmp-grid { grid-template-columns: 1fr; } }
.cmp-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .75rem 0 .25rem; border-top: 1px dashed var(--border-strong); }
.cmp-actions .form-row { align-items: center; }
.is-dim { opacity: .55; }
.shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.shortcut { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; color: var(--text) !important; text-decoration: none !important; }
.shortcut:hover { border-color: var(--ink); }
.shortcut > .icon { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--amber-50); color: var(--amber-ink); flex: none; }
.shortcut b { display: block; }
.shortcut small { color: var(--muted); font-size: 13px; }
.stat-link { color: inherit !important; text-decoration: none !important; display: block; }
.stat-link .stat:hover { border-color: var(--ink); }

/* =====================================================================
   العقد والمالية (C2، C3، C6، O6، O7، S8، D8)
   ===================================================================== */
.dtrack { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; gap: 4px; overflow-x: auto; counter-reset: dt; }
.dtrack li { flex: 1 0 92px; counter-increment: dt; font-size: 12px; color: var(--muted); text-align: center; padding-top: 30px; position: relative; }
.dtrack li::before { content: counter(dt); position: absolute; top: 0; inset-inline-start: 50%; transform: translateX(50%); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--border-strong); font-weight: 700; font-size: 11px; }
.dtrack li::after { content: ""; position: absolute; top: 11px; inset-inline-start: calc(50% + 14px); width: calc(100% - 24px); height: 2px; background: var(--border); }
.dtrack li:last-child::after { display: none; }
.dtrack li.is-done { color: var(--text-2); }
.dtrack li.is-done::before { background: var(--ink); border-color: var(--ink); color: #fff; }
.dtrack li.is-done::after { background: var(--ink); }
.dtrack li.is-current { color: var(--text); font-weight: 700; }
.dtrack li.is-current::before { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.next-step { border-inline-start: 4px solid var(--amber); }
.next-step h3 { display: flex; align-items: center; gap: .4rem; }
.contract { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-size: 14px; max-height: 320px; overflow: auto; }
.note-item { border-bottom: 1px dashed var(--border); padding: .6rem 0; }
.note-item:last-of-type { border-bottom: 0; }
.note-item p { margin: .3rem 0 0; }
.note-item.is-legal { border-inline-start: 3px solid var(--info); padding-inline-start: .75rem; }
.timeline { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--border); }
.timeline li { position: relative; padding: 0 1rem .9rem; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--amber); }
.timeline li p { margin: .2rem 0 0; font-size: 14px; color: var(--text-2); }
.timeline small { display: block; }
.page-invoice { background: var(--bg); }
.invoice-page { max-width: 860px; margin: 1.5rem auto; padding: 0 1rem; }
.invoice-tools { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.invoice { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.invoice-head { display: flex; justify-content: space-between; gap: 1.5rem; align-items: flex-start; border-bottom: 3px solid var(--ink); padding-bottom: 1rem; margin-bottom: 1.25rem; }
.invoice-head h1 { font-size: 24px; margin: 0; }
.invoice-qr { width: 132px; height: 132px; flex: none; }
.invoice-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-bottom: 1.25rem; }
.invoice-parties h2 { font-size: 14px; color: var(--muted); margin-bottom: .3rem; }
.invoice-parties p { margin: .15rem 0; }
.invoice-items tfoot td { font-weight: 600; }
.invoice-total td { font-size: 17px; background: var(--amber-50); }
@media print {
  .no-print { display: none !important; }
  .invoice-page { margin: 0; max-width: none; }
  .invoice { border: 0; padding: 0; }
  body { background: #fff; }
}

/* =====================================================================
   الرسائل والدعم (C4، C8، D10)
   ===================================================================== */
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1rem; align-items: start; }
.msg-layout:not(:has(.msg-list)) { grid-template-columns: 1fr; }
.msg-list { max-height: 75vh; overflow: auto; }
.msg-item { display: grid; grid-template-columns: 1fr auto; gap: .1rem .5rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; }
.msg-item small { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-2); }
.msg-item small.muted { color: var(--muted); }
.msg-item:hover, .msg-item.is-active { background: var(--amber-50); }
.msg-thread { display: flex; flex-direction: column; min-height: 60vh; }
.msg-body { flex: 1; padding: 1rem 1.35rem; display: flex; flex-direction: column; gap: .6rem; max-height: 60vh; overflow: auto; }
.msg { max-width: 80%; align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .55rem .8rem; margin-bottom: .6rem; }
.msg.is-mine { align-self: flex-end; background: var(--amber-50); border-color: #f5d9a4; }
.msg.is-internal { background: #eef2ff; border-style: dashed; }
.msg p { margin: .2rem 0 0; }
.msg small { color: var(--muted); font-size: 12px; }
.card-pad > .msg { max-width: 100%; }
.msg-form { border-top: 1px solid var(--border); padding: .8rem 1.35rem 1rem; display: grid; gap: .5rem; }
.msg-back { display: none; }
@media (max-width: 860px) {
  .msg-layout { grid-template-columns: 1fr; }
  .msg-layout.has-thread .msg-list { display: none; }
  .msg-back { display: inline-flex; }
}

/* =====================================================================
   الاستكمال (O8، O9، S9، D1، D11، D12)
   ===================================================================== */
.hbars { display: grid; gap: .55rem; }
.hbar { display: grid; grid-template-columns: minmax(80px, 30%) 1fr auto; gap: .6rem; align-items: center; font-size: 14px; }
.hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar-track { height: 10px; background: var(--border); border-radius: 6px; overflow: hidden; }
.hbar-track span { display: block; height: 100%; background: var(--amber); border-radius: 6px; }
.hbar-val { font-size: 13px; min-width: 60px; text-align: end; }
.fav-card { display: flex; flex-direction: column; gap: .4rem; }
.fav-card .lcard { flex: 1; }
.review-form { border-top: 1px dashed var(--border); padding-top: .75rem; margin-top: .75rem; }
.rate-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .35rem; font-size: 14px; }
.rate { display: inline-flex; flex-direction: row-reverse; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 22px; line-height: 1; color: var(--border-strong); cursor: pointer; padding: 0 1px; }
.rate label:hover, .rate label:hover ~ label, .rate input:checked ~ label { color: var(--amber); }
.rate input:focus-visible + label { outline: 2px solid var(--ink); border-radius: 3px; }
.print-only { display: none; }
@media print {
  .dash-side, .dash-top, .dash-scrim, .no-print, .toolbar .btn { display: none !important; }
  .print-only { display: block; font-weight: 600; }
  .dash-main, .dash-body { margin: 0 !important; padding: 0 !important; }
  .card { break-inside: avoid; box-shadow: none; }
}
