@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --ink: #122b37;
  --ink-soft: #536871;
  --muted: #74868d;
  --paper: #f5f8f7;
  --surface: #ffffff;
  --line: #e1e9e7;
  --teal: #087f83;
  --teal-dark: #06696d;
  --teal-soft: #e7f5f3;
  --amber: #b65c1d;
  --amber-soft: #fff3e8;
  --navy: #102a36;
  --shadow: 0 16px 40px rgba(18, 43, 55, 0.07);
  font-family: 'Noto Sans Arabic', 'Noto Kufi Arabic', 'Segoe UI', Tahoma, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, #category-title:focus-visible, #appliance-title:focus-visible { outline: 3px solid #67c4be; outline-offset: 3px; }
[hidden] { display: none !important; }

.app-shell { max-width: 1120px; margin: 0 auto; padding: 0 34px 32px; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: #7bdfd4; }
.brand-mark svg { width: 29px; height: 29px; }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { font-size: 15px; line-height: 1.6; font-weight: 800; }
.brand-text span { color: var(--muted); font-size: 11px; }
.edition-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-soft); background: rgba(255,255,255,.75); font-size: 11px; font-weight: 600; }
.edition-dot { width: 7px; height: 7px; background: #e89a4d; border-radius: 50%; box-shadow: 0 0 0 3px #fff2e4; }

.intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 46px 0 31px; }
.intro-copy { max-width: 710px; }
.eyebrow { margin: 0 0 10px; display: flex; align-items: center; gap: 9px; color: var(--teal); font-size: 12px; font-weight: 700; }
.eyebrow-line { width: 24px; height: 2px; border-radius: 2px; background: currentColor; }
h1 { margin: 0; color: var(--ink); font-size: clamp(30px, 4vw, 42px); line-height: 1.45; font-weight: 800; letter-spacing: -.04em; }
h1 span { color: var(--teal); }
.intro-subtitle { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.9; }
.intro-stamp { width: 112px; height: 112px; flex: 0 0 auto; border: 1px solid #dce9e5; border-radius: 50%; display: grid; place-items: center; position: relative; color: #49a9a0; background: radial-gradient(circle at center, #fff 30%, #ebf5f2 31%, #eff7f4 69%, #e5f1ee 70%); }
.intro-stamp svg { width: 52px; height: 52px; }
.intro-stamp span { position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 3px 9px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-size: 9px; font-weight: 700; line-height: 1.4; text-align: center; }

.workflow { max-width: 890px; margin: 0 auto; }
.stepper { display: flex; align-items: center; gap: 9px; margin: 0 0 12px; color: #8a999d; }
.step-number { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #d8e1df; border-radius: 50%; color: #74868d; background: #fff; font-family: ui-monospace, 'Cascadia Code', monospace; font-size: 10px; font-weight: 700; }
.step-active { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 0 0 3px #d8f0eb; }
.step-complete { background: #e7f5f0; border-color: #b5d9d3; color: var(--teal-dark); }
.step-label { color: #61747b; font-size: 10px; font-weight: 700; }
.step-connector { width: 30px; height: 1px; margin: 0 2px; background: #dbe4e2; }

.selector-card, .codes-section, .diagnosis { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.selector-card { padding: 23px 25px 19px; }
.selector-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.selector-index { width: 35px; height: 35px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: var(--teal-soft); color: var(--teal); font: 700 12px ui-monospace, 'Cascadia Code', monospace; }
.selector-heading h2, .selector-heading h3 { margin: 0; font-size: 16px; line-height: 1.7; font-weight: 800; }
.selector-heading p { margin: 1px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.field-label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.select-wrap { position: relative; }
.select-control { width: 100%; height: 54px; appearance: none; padding: 0 16px 0 48px; border: 1px solid #d7e3e0; border-radius: 12px; background: #fcfdfd; color: var(--ink); cursor: pointer; font-size: 14px; font-weight: 600; transition: border-color 150ms, box-shadow 150ms; }
.select-control:hover { border-color: #8fc9c4; }
.select-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,131,.12); outline: none; }
.select-chevron { position: absolute; left: 16px; top: 18px; width: 18px; height: 18px; pointer-events: none; color: #64787e; }
.field-hint { margin: 7px 1px 0; color: var(--muted); font-size: 10px; line-height: 1.8; }

.codes-section { margin-top: 14px; padding: 22px 25px 23px; }
.section-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
.compact-heading { margin: 0; }
.result-count { flex: 0 0 auto; padding: 5px 9px; border-radius: 99px; background: #f1f5f4; color: var(--muted); font-size: 10px; font-weight: 700; }
.search-box { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: #fafcfb; color: #809196; transition: border-color 150ms, box-shadow 150ms; }
.search-box:focus-within { border-color: #70bdb6; box-shadow: 0 0 0 3px rgba(8,127,131,.09); }
.search-box svg { width: 20px; height: 20px; flex: 0 0 auto; }
.search-box input { min-width: 0; flex: 1 1 auto; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-box input::placeholder { color: #92a0a4; }
.search-box kbd { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #e1e9e7; border-radius: 6px; background: #fff; color: #839398; font: 14px/1 sans-serif; }
.code-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; }
.code-option { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 13px; border: 1px solid #e3eae8; border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; transition: .16s ease; text-align: right; }
.code-option:hover { border-color: #77bcb7; background: #f7fcfb; transform: translateY(-1px); }
.code-option[aria-selected="true"] { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.code-token { direction: ltr; unicode-bidi: isolate; color: var(--teal-dark); font: 800 12px ui-monospace, 'Cascadia Code', monospace; letter-spacing: .015em; }
.code-label { max-width: 190px; color: #52676e; font-size: 10px; font-weight: 600; }
.empty-state { margin-top: 13px; display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px dashed #d7e2df; border-radius: 11px; color: var(--ink-soft); }
.empty-icon { width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: #f3f6f5; color: #73858a; font: 700 16px ui-monospace, monospace; }
.empty-state strong { display: block; font-size: 11px; }
.empty-state p { margin: 2px 0 0; color: var(--muted); font-size: 10px; }

.diagnosis { margin-top: 14px; overflow: hidden; animation: appear 220ms ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.diagnosis-header { padding: 23px 25px 20px; background: var(--navy); color: #fff; }
.diagnosis-topline { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.diagnosis-brand { margin: 0 0 8px; color: #a4dcd5; font-size: 10px; font-weight: 700; }
.diagnosis-code { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.diagnosis-code strong { direction: ltr; unicode-bidi: isolate; font: 800 clamp(25px, 5vw, 34px) ui-monospace, 'Cascadia Code', monospace; letter-spacing: .02em; }
.diagnosis-code span { color: #d2dfdf; font-size: 14px; font-weight: 700; }
.severity-pill { flex: 0 0 auto; padding: 7px 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; background: rgba(255,255,255,.08); color: #e6f1ef; font-size: 9px; font-weight: 700; }
.diagnosis-description { max-width: 700px; margin: 12px 0 0; color: #d6e1e2; font-size: 12px; line-height: 1.9; }
.model-scope { max-width: 740px; margin: 10px 0 0; padding: 9px 11px; border: 1px solid rgba(164,220,213,.22); border-radius: 9px; background: rgba(255,255,255,.055); color: #d5e7e4; font-size: 10px; line-height: 1.85; }
.model-scope strong { color: #a4dcd5; }
.diagnosis-actions { display: flex; gap: 8px; margin-top: 17px; }
.action-button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; font-size: 10px; font-weight: 700; transition: background 150ms; }
.action-button:hover { background: rgba(255,255,255,.16); }
.action-button svg { width: 16px; height: 16px; }
.diagnosis-body { padding: 20px 25px 24px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 25px; }
.detail-block h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 13px; font-size: 13px; font-weight: 800; }
.heading-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: #eff4f3; color: var(--teal); }
.heading-icon svg { width: 16px; height: 16px; }
.causes-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.causes-list li { position: relative; padding-right: 17px; color: #51666d; font-size: 11px; line-height: 1.9; }
.causes-list li::before { content: ''; position: absolute; top: .75em; right: 1px; width: 6px; height: 6px; border-radius: 50%; background: #e6a04f; }
.checklist { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.checklist li { position: relative; min-height: 31px; padding-right: 38px; color: #4b626a; font-size: 11px; line-height: 1.9; counter-increment: step; }
.checklist li::before { content: counter(step, arabic-indic); position: absolute; top: 0; right: 0; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: #e8f5f2; color: #097a78; font-size: 10px; font-weight: 800; }
.safety-callout { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; padding: 13px 14px; border: 1px solid #f0dfcf; border-radius: 11px; background: var(--amber-soft); color: #804216; }
.safety-callout svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 1px; }
.safety-callout strong { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 800; }
.safety-callout p { margin: 0; font-size: 10px; line-height: 1.9; }
.source-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 13px; border-top: 1px solid #edf1f0; color: var(--muted); font-size: 9px; }
.source-row a { display: inline-flex; align-items: center; gap: 4px; color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.source-row a:hover { text-decoration: underline; }
.source-row a svg { width: 13px; height: 13px; }

.permanent-note { max-width: 890px; display: flex; align-items: flex-start; gap: 13px; margin: 17px auto 0; padding: 15px 17px; border: 1px solid #ead9c5; border-radius: 12px; background: #fff9f2; }
.note-icon { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: #f9ead8; color: var(--amber); }
.note-icon svg { width: 18px; height: 18px; }
.permanent-note strong { color: #82471d; font-size: 11px; }
.permanent-note p { margin: 2px 0 0; color: #765a43; font-size: 10px; line-height: 1.9; }
.site-footer { max-width: 890px; display: flex; justify-content: space-between; gap: 12px; margin: 24px auto 0; padding-top: 14px; border-top: 1px solid var(--line); color: #839297; font-size: 9px; }
.toast { position: fixed; z-index: 10; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; padding: 10px 15px; border-radius: 99px; background: var(--navy); box-shadow: 0 8px 25px rgba(0,0,0,.18); color: #fff; font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: opacity 160ms ease, transform 160ms ease; white-space: nowrap; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 900px) {
  .workflow { max-width: 850px; }
  .selector-card { display: grid; grid-template-columns: 1fr 1.12fr; column-gap: 28px; align-items: center; }
  .selector-heading { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
  .field-label { grid-column: 2; margin-bottom: 6px; }
  .select-wrap { grid-column: 2; grid-row: 2; }
  .field-hint { grid-column: 2; grid-row: 3; }
}

@media (max-width: 640px) {
  .app-shell { padding: 0 16px max(24px, env(safe-area-inset-bottom)); }
  .topbar { min-height: 73px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 12px; }
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-text strong { font-size: 12px; }
  .brand-text span { font-size: 9px; }
  .edition-pill { padding: 6px 9px; font-size: 9px; }
  .intro { gap: 5px; padding: 28px 0 23px; }
  .intro-copy { min-width: 0; }
  .eyebrow { font-size: 10px; }
  h1 { font-size: clamp(25px, 7.6vw, 34px); line-height: 1.45; }
  .intro-subtitle { max-width: 340px; margin-top: 6px; font-size: 12px; line-height: 1.85; }
  .intro-stamp { width: 69px; height: 69px; margin-left: 2px; }
  .intro-stamp svg { width: 35px; height: 35px; }
  .intro-stamp span { bottom: -6px; padding: 2px 6px; font-size: 7px; }
  .stepper { gap: 7px; margin-bottom: 10px; }
  .step-number { width: 23px; height: 23px; font-size: 9px; }
  .step-label { font-size: 9px; }
  .step-connector { width: 22px; }
  .selector-card { padding: 17px 16px 15px; border-radius: 15px; }
  .selector-heading { gap: 10px; margin-bottom: 14px; }
  .selector-index { width: 31px; height: 31px; border-radius: 9px; font-size: 10px; }
  .selector-heading h2, .selector-heading h3 { font-size: 13px; }
  .selector-heading p { font-size: 10px; }
  .field-label { font-size: 10px; }
  .select-control { height: 51px; font-size: 12px; }
  .field-hint { font-size: 9px; }
  .codes-section { margin-top: 10px; padding: 17px 15px 19px; border-radius: 15px; }
  .section-heading-row { align-items: flex-start; gap: 4px; }
  .compact-heading { gap: 9px; }
  .compact-heading h2, .compact-heading h3 { font-size: 12px; }
  .compact-heading p { font-size: 9px; }
  .result-count { margin-top: 4px; padding: 4px 7px; font-size: 8px; }
  .search-box { height: 46px; }
  .search-box input { font-size: 10px; }
  .search-box kbd { display: none; }
  .code-list { gap: 7px; }
  .code-option { min-height: 45px; flex: 1 1 calc(50% - 4px); justify-content: space-between; padding: 7px 9px; }
  .code-token { font-size: 11px; }
  .code-label { max-width: 115px; font-size: 8px; }
  .diagnosis { margin-top: 10px; border-radius: 15px; }
  .diagnosis-header { padding: 18px 16px 17px; }
  .diagnosis-topline { gap: 7px; }
  .diagnosis-brand { font-size: 9px; }
  .diagnosis-code { gap: 7px; }
  .diagnosis-code strong { font-size: 26px; }
  .diagnosis-code span { font-size: 11px; }
  .severity-pill { padding: 6px 8px; font-size: 8px; }
  .diagnosis-description { margin-top: 9px; font-size: 10px; }
  .diagnosis-actions { margin-top: 13px; }
  .action-button { min-height: 39px; font-size: 9px; }
  .diagnosis-body { padding: 17px 16px 19px; }
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-block h3 { margin-bottom: 10px; font-size: 12px; }
  .causes-list li, .checklist li { font-size: 10px; }
  .safety-callout { margin-top: 17px; padding: 11px; }
  .safety-callout p { font-size: 9px; }
  .permanent-note { gap: 9px; margin-top: 12px; padding: 12px 11px; }
  .permanent-note p { font-size: 9px; }
  .site-footer { flex-direction: column; gap: 4px; margin-top: 19px; font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* فئات الأجهزة ومساراتها */
.category-home, .appliance-view { max-width: 890px; margin: 0 auto; }
.category-section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin: 0 0 17px; }
.section-eyebrow { margin: 0 0 5px; color: var(--teal); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.category-section-heading h2, .appliance-heading h2 { margin: 0; font-size: 18px; font-weight: 800; line-height: 1.7; }
.category-section-heading p:not(.section-eyebrow) { margin: 2px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.category-section-mark { flex: 0 0 auto; padding: 7px 11px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-card { min-width: 0; min-height: 175px; display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 15px 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); cursor: pointer; text-align: right; transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.category-card:hover { transform: translateY(-2px); border-color: #9ccbc7; box-shadow: 0 18px 38px rgba(18, 43, 55, .1); }
.category-card:focus-visible { outline: 3px solid #67c4be; outline-offset: 3px; }
.category-card-top, .category-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.category-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--teal-soft); color: var(--teal); }
.category-icon svg { width: 25px; height: 25px; }
.category-icon-cooling { color: #357da0; background: #eaf4f9; }
.category-icon-washing { color: #7866a5; background: #f0ecf8; }
.category-icon-fridge { color: #b66c29; background: #fff2e3; }
.category-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; }
.category-status.is-ready { background: #e7f5f0; color: #1f765b; }
.category-status.is-pending { background: #f2f4f3; color: #748187; }
.category-card-title { display: block; font-size: 14px; font-weight: 800; line-height: 1.5; }
.category-card-description { display: block; margin-top: -9px; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.category-card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #edf1f0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.category-arrow { color: var(--teal); font-size: 18px; font-weight: 700; }
.appliance-heading { margin: 0 0 16px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.8); }
.back-button { min-height: 40px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink-soft); cursor: pointer; font-size: 10px; font-weight: 700; }
.back-button:hover { border-color: #8fc9c4; color: var(--teal-dark); }
.back-button span { font-size: 16px; }
.appliance-heading h2 { font-size: 20px; }
.appliance-subtitle { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.8; }
.coming-soon-card { display: flex; align-items: flex-start; gap: 15px; padding: 23px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.coming-soon-icon { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: #f0f5f3; color: var(--teal); font-size: 25px; font-weight: 800; }
.coming-soon-card h3 { margin: 0; font-size: 15px; line-height: 1.8; }
.coming-soon-card p:not(.section-eyebrow) { max-width: 650px; margin: 3px 0 13px; color: var(--ink-soft); font-size: 11px; line-height: 1.9; }
.primary-link-button { min-height: 42px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 0; border-radius: 9px; background: var(--teal); color: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.primary-link-button:hover { background: var(--teal-dark); }

/* تفاصيل مكونات العطل والإصلاح */
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 24px; }
.detail-block h4 { display: flex; align-items: center; gap: 9px; margin: 0 0 11px; font-size: 12px; font-weight: 800; }
.detail-note { margin: -3px 0 10px; color: var(--muted); font-size: 9px; line-height: 1.8; }
.parts-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.parts-list li { position: relative; padding-right: 17px; color: #51666d; font-size: 10px; line-height: 1.9; }
.parts-list li::before { content: ''; position: absolute; top: .75em; right: 1px; width: 6px; height: 6px; border-radius: 2px; background: #6bb9b0; }
.repair-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: repair; }
.repair-list li { position: relative; min-height: 28px; padding-right: 34px; color: #4b626a; font-size: 10px; line-height: 1.9; counter-increment: repair; }
.repair-list li::before { content: counter(repair, arabic-indic); position: absolute; top: 1px; right: 0; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #e8f5f2; color: #097a78; font-size: 9px; font-weight: 800; }
.safety-callout { margin: 0 0 19px; }

@media (max-width: 899px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .category-section-heading { align-items: center; margin-bottom: 12px; }
  .category-section-heading h2 { font-size: 15px; }
  .category-section-heading p:not(.section-eyebrow) { font-size: 10px; }
  .category-section-mark { padding: 6px 8px; font-size: 9px; }
  .category-grid { gap: 9px; }
  .category-card { min-height: 160px; gap: 10px; padding: 12px 11px 10px; border-radius: 13px; }
  .category-icon { width: 37px; height: 37px; border-radius: 10px; }
  .category-icon svg { width: 22px; height: 22px; }
  .category-status { padding: 4px 6px; font-size: 8px; }
  .category-card-title { font-size: 12px; }
  .category-card-description { font-size: 9px; }
  .category-card-footer { font-size: 8px; }
  .appliance-heading { margin-bottom: 11px; padding: 12px; }
  .back-button { min-height: 42px; margin-bottom: 10px; }
  .appliance-heading h2 { font-size: 17px; }
  .appliance-subtitle { font-size: 10px; }
  .coming-soon-card { gap: 11px; padding: 16px 13px; border-radius: 14px; }
  .coming-soon-icon { width: 37px; height: 37px; border-radius: 10px; }
  .coming-soon-card h3 { font-size: 13px; }
  .coming-soon-card p:not(.section-eyebrow) { font-size: 10px; }
  .primary-link-button { min-height: 43px; }
  .detail-grid { grid-template-columns: 1fr; row-gap: 20px; }
  .detail-block h4 { font-size: 11px; }
  .detail-note, .parts-list li, .repair-list li { font-size: 9px; }
  .safety-callout { margin: 0 0 16px; }
}

@media (max-width: 360px) {
  .category-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 135px; }
}


/* أداة تقدير أحمال التكييف وتصميم مجاري الهواء */
.tool-promo { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 18px 20px; border: 1px solid #cfe3df; border-radius: 15px; background: linear-gradient(115deg, #f0f8f6 0%, #fff 76%); box-shadow: var(--shadow); }
.tool-promo h3 { margin: 0; font-size: 14px; font-weight: 800; }
.tool-promo p:not(.section-eyebrow) { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
.load-calculator-view { max-width: 890px; margin: 0 auto; }
.loadcalc-form { display: grid; gap: 13px; }
.calc-intro-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border: 1px solid #cfe3df; border-radius: 15px; background: linear-gradient(110deg, #eef8f6, #fff 72%); }
.calc-intro-mark { width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--navy); color: #8ce0d5; font: 800 18px ui-monospace, monospace; }
.calc-intro-card h3 { margin: 0; font-size: 15px; font-weight: 800; }
.calc-intro-card p:not(.section-eyebrow) { margin: 4px 0 0; color: var(--ink-soft); font-size: 10px; line-height: 1.9; }
.calc-fieldset { min-width: 0; margin: 0; padding: 17px 19px 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.calc-fieldset legend { padding: 0 7px; color: var(--teal-dark); font-size: 12px; font-weight: 800; }
.calc-input-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 15px; }
.calc-field { min-width: 0; display: grid; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 700; }
.calc-field span { color: var(--muted); font-size: 9px; font-weight: 500; }
.calc-field input, .calc-field select { width: 100%; min-width: 0; height: 43px; padding: 0 11px; border: 1px solid #d7e3e0; border-radius: 9px; background: #fcfdfd; color: var(--ink); font-size: 11px; font-weight: 600; }
.calc-field input:focus, .calc-field select:focus { border-color: var(--teal); outline: 3px solid rgba(8,127,131,.12); }
.calc-field-hint { margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.8; }
.calculate-button { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 0 16px; border: 0; border-radius: 11px; background: var(--teal); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; transition: background 150ms, transform 150ms; }
.calculate-button:hover { transform: translateY(-1px); background: var(--teal-dark); }
.loadcalc-results { margin-top: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); animation: appear 180ms ease both; }
.calc-result-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.calc-result-header h3 { margin: 0; font-size: 15px; font-weight: 800; }
.calc-margin-pill { padding: 6px 9px; border-radius: 99px; background: #e7f5f0; color: #1f765b; font-size: 9px; font-weight: 800; }
.calc-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc-metric { min-width: 0; display: grid; gap: 5px; padding: 13px; border: 1px solid #e3ece9; border-radius: 11px; background: #f8fbfa; }
.calc-metric > span { color: var(--ink-soft); font-size: 9px; font-weight: 700; }
.calc-metric strong { color: var(--navy); font-size: 18px; font-weight: 800; }
.calc-metric small { color: var(--muted); font-size: 9px; }
.calc-metric-air { border-color: #cfe7e3; background: #f2faf8; }
.duct-table-wrap { margin-top: 17px; overflow-x: auto; border: 1px solid var(--line); border-radius: 11px; }
.duct-table { width: 100%; min-width: 690px; border-collapse: collapse; text-align: right; }
.duct-table caption { padding: 11px 12px; color: var(--ink-soft); background: #f5f8f7; font-size: 9px; font-weight: 700; text-align: right; }
.duct-table th, .duct-table td { padding: 11px 10px; border-top: 1px solid #e9efed; font-size: 9px; white-space: nowrap; }
.duct-table thead th { color: var(--ink-soft); background: #fbfcfc; font-weight: 800; }
.duct-table tbody th { color: var(--teal-dark); font-weight: 800; }
.duct-table td { color: var(--ink); font-weight: 600; }
.calc-caveat { margin-top: 15px; padding: 13px 14px; border: 1px solid #f0dfcf; border-radius: 11px; background: var(--amber-soft); color: #804216; }
.calc-caveat strong { font-size: 10px; font-weight: 800; }
.calc-caveat p { margin: 4px 0 0; font-size: 9px; line-height: 1.9; }
@media (max-width: 640px) {
  .tool-promo { align-items: flex-start; flex-direction: column; gap: 11px; padding: 15px; }
  .tool-promo h3 { font-size: 12px; }
  .tool-promo .primary-link-button { min-height: 42px; }
  .calc-intro-card { gap: 10px; padding: 15px 13px; }
  .calc-intro-mark { width: 34px; height: 34px; border-radius: 10px; }
  .calc-intro-card h3 { font-size: 12px; }
  .calc-fieldset { padding: 13px 12px 15px; }
  .calc-fieldset legend { font-size: 10px; }
  .calc-input-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 9px; }
  .calc-field { font-size: 9px; }
  .calc-field input, .calc-field select { height: 43px; padding: 0 8px; font-size: 10px; }
  .loadcalc-results { padding: 15px 12px; }
  .calc-result-header h3 { font-size: 12px; }
  .calc-margin-pill { padding: 5px 7px; font-size: 8px; }
  .calc-metric-grid { gap: 6px; }
  .calc-metric { gap: 4px; padding: 9px 7px; }
  .calc-metric > span, .calc-metric small { font-size: 8px; }
  .calc-metric strong { font-size: 14px; }
}
@media (max-width: 360px) {
  .calc-input-grid { grid-template-columns: 1fr; }
  .calc-metric-grid { grid-template-columns: 1fr; }
}
/* صفحات PWA المساندة */
.site-footer .privacy-link { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.site-footer .privacy-link:hover { text-decoration: underline; }
.privacy-page { max-width: 890px; margin: 28px auto 0; padding: 24px 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.privacy-back { display: inline-flex; margin-bottom: 20px; color: var(--teal-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.privacy-page .section-eyebrow { margin-bottom: 5px; }
.privacy-title { margin: 0 0 10px; font-size: clamp(24px, 4vw, 32px); line-height: 1.5; }
.privacy-lead { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.privacy-page section { margin-top: 23px; padding-top: 19px; border-top: 1px solid #edf1f0; }
.privacy-page h2 { margin: 0 0 8px; font-size: 14px; line-height: 1.7; }
.privacy-page p { color: #50666d; font-size: 11px; line-height: 2; }
.privacy-page section p { margin: 7px 0; }
.privacy-page a:not(.privacy-back) { color: var(--teal-dark); font-weight: 700; }
.privacy-disclaimer { margin-top: 22px; padding: 13px 15px; border: 1px solid #f0dfcf; border-radius: 11px; background: var(--amber-soft); color: #804216; }
.privacy-disclaimer strong { font-size: 11px; }
.privacy-disclaimer p { margin: 4px 0 0; color: #765a43; }
.offline-card { max-width: 610px; margin: 52px auto; padding: 29px 25px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); text-align: center; }
.offline-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 14px; border-radius: 15px; background: var(--teal-soft); color: var(--teal); font-size: 27px; font-weight: 800; }
.offline-card .section-eyebrow { justify-content: center; }
.offline-card h1 { font-size: clamp(22px, 4vw, 30px); }
.offline-card > p:not(.section-eyebrow) { margin: 9px 0 18px; color: var(--ink-soft); font-size: 12px; line-height: 2; }
.offline-action { text-decoration: none; }

@media (max-width: 640px) {
  .privacy-page { margin-top: 17px; padding: 18px 15px; border-radius: 14px; }
  .privacy-back { margin-bottom: 14px; }
  .privacy-page section { margin-top: 18px; padding-top: 15px; }
  .offline-card { margin: 27px auto; padding: 22px 16px; }
  .site-footer { gap: 7px; }
}
