:root{
  --ink:#12383d;--muted:#567176;--brand:#075f5b;--brand-2:#0e7f77;--accent:#88345d;
  --gold:#a86d21;--mist:#edf9f7;--lilac:#f4f1ff;--sand:#fff8ed;--rose:#fff1f6;
  --line:#c8e1de;--surface:#fff;--danger:#922a3e;--success:#126b52;--warning:#7a5a16;
  --shadow:0 18px 50px rgba(13,73,74,.12);--shadow-soft:0 8px 28px rgba(13,73,74,.08);
  --radius:22px;--radius-sm:13px;--max:1240px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--ink);font-family:Tahoma,Arial,sans-serif;line-height:1.82;background:linear-gradient(145deg,#fff 0,var(--mist) 48%,var(--lilac) 100%)}
body.portal-page{background:#f6fbfa}
a{color:#056b65;text-underline-offset:4px}
a:hover{text-decoration-thickness:2px}
button,input,select,textarea{font:inherit}
img{max-width:100%}
.wrap{width:min(var(--max),92%);margin-inline:auto}
.skip{position:absolute;inset-inline-start:-9999px;top:8px;background:#fff;padding:10px 14px;border:2px solid var(--brand);border-radius:12px;z-index:100}
.skip:focus{inset-inline-start:8px}
.site-header,header{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(14px)}
.head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:11px 0}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;color:var(--ink);font-weight:900;min-width:0}
.brand img{width:52px;height:52px}
.brand span{display:grid;line-height:1.35}
.brand small{color:var(--muted);font-weight:700}
nav{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
nav a{padding:8px 10px;border-radius:10px;text-decoration:none;font-weight:800}
nav a:hover,nav a[aria-current=page]{background:var(--mist)}
.hero{padding:66px 0 38px;display:grid;grid-template-columns:1.16fr .84fr;gap:28px;align-items:center}
.hero.compact{padding-bottom:22px}
.eyebrow{margin:0;color:var(--accent);font-weight:900;letter-spacing:.02em}
.hero h1{font-size:clamp(2.25rem,5.8vw,4.8rem);line-height:1.1;margin:.1em 0 .22em}
.hero h1 span{color:var(--brand)}
.lead{font-size:clamp(1.04rem,1.8vw,1.2rem);color:var(--muted);max-width:880px}
.hero-card,.panel,.card,.filter-panel,.provider-card,.empty,.step,.standard,.notice,.stat,.journey-card,.trust-card,.quality-question,.kpi,.portal-shell,.message-composer,.form-status{background:rgba(255,255,255,.97);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}
.hero-card,.panel,.filter-panel,.empty,.portal-shell{padding:24px}
.hero-card h2,.panel h2{margin-top:0}
.actions,.chips,.card-actions,.filter-actions,.quick-links,.provider-actions{display:flex;gap:9px;flex-wrap:wrap}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:46px;padding:10px 16px;border-radius:13px;border:1px solid #50bcb4;background:linear-gradient(135deg,#64d3c9,#b7eee4);color:#113f42;text-decoration:none;font-weight:900;cursor:pointer}
.button:hover{filter:brightness(.98)}
.button.primary{background:var(--brand);border-color:var(--brand);color:#fff}
.button.secondary{background:#fff;border-color:var(--line);box-shadow:none}
.button.ghost{background:transparent;border-color:transparent}
.button.danger{background:#fff2f4;border-color:#e5aeb8;color:#7b1e33}
.button[disabled]{opacity:.55;cursor:not-allowed}
.badge,.chip{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:.9rem;font-weight:800;background:var(--mist);border:1px solid var(--line)}
.badge.verified{color:var(--success);background:#eefbf6;border-color:#a8dbc8}
.badge.provisional{color:#5a4a92;background:#f4f1ff;border-color:#cfc4ef}
.badge.pending{color:var(--warning);background:#fff9df;border-color:#ead797}
.badge.unverified,.badge.suspended{color:var(--danger);background:#fff0f3;border-color:#e6b2bd}
.badge.available{color:var(--success);background:#eefbf6;border-color:#a8dbc8}
.badge.unavailable{color:var(--muted);background:#f5f7f7;border-color:#d7e1e0}
.notice{padding:16px 19px;border-inline-start:5px solid var(--accent);background:var(--rose);margin:18px 0}
.notice.warning{border-inline-start-color:var(--gold);background:var(--sand)}
.notice.success{border-inline-start-color:var(--success);background:#eefbf6}
.notice strong{color:#672641}
.section{padding:40px 0}
.section h2{font-size:clamp(1.75rem,4vw,2.75rem);line-height:1.25;margin:.12em 0}
.section-intro{color:var(--muted);max-width:920px;margin:.35rem 0 1.1rem}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:16px}
.stats,.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.stat,.kpi{padding:19px}
.stat strong,.kpi strong{display:block;font-size:1.85rem;color:var(--accent);line-height:1.2}
.stat span,.kpi span{color:var(--muted)}
.registry-status{display:grid;grid-template-columns:auto 1fr 1fr auto;align-items:center;gap:14px;margin-top:14px;padding:14px 18px;background:rgba(255,255,255,.93);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow-soft)}
.registry-status>div{display:grid;gap:1px}
.registry-status>div span{color:var(--muted);font-size:.86rem}
.registry-status a{font-weight:900}
.status-dot{width:13px;height:13px;border-radius:50%;background:#8c9b9a;box-shadow:0 0 0 5px rgba(140,155,154,.15)}
.registry-status[data-state=healthy] .status-dot{background:var(--success);box-shadow:0 0 0 5px rgba(18,107,82,.14)}
.registry-status[data-state=warning] .status-dot{background:var(--gold);box-shadow:0 0 0 5px rgba(168,109,33,.14)}
.registry-status[data-state=error] .status-dot{background:var(--danger);box-shadow:0 0 0 5px rgba(146,42,62,.14)}
.journey-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.journey-card{padding:22px;text-decoration:none;color:var(--ink);transition:transform .18s ease,box-shadow .18s ease}
.journey-card:hover{transform:translateY(-3px);box-shadow:0 22px 56px rgba(13,73,74,.14)}
.journey-card b{display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--mist);color:var(--brand)}
.journey-card h3{font-size:1.28rem;margin:.7rem 0 .25rem}
.journey-card p{margin:0;color:var(--muted)}
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}
.card{padding:20px;display:flex;flex-direction:column}
.card h3{margin:0 0 7px;color:#71314f}
.card p{color:var(--muted);flex:1}
.icon{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:var(--mist);font-size:1.4rem;margin-bottom:10px}
.matcher{display:grid;grid-template-columns:.9fr 1.1fr;gap:18px}
.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:13px}
.field{display:grid;gap:6px}
.field.full{grid-column:1/-1}
.field small,.help{color:var(--muted);font-size:.9rem}
label{font-weight:900}
label.optional::after{content:' — اختياري';color:var(--muted);font-weight:400;font-size:.86rem}
select,input,textarea{width:100%;color:var(--ink);padding:11px 12px;border:1px solid #a9cac6;border-radius:12px;background:#fff}
textarea{min-height:118px;resize:vertical}
input[type=checkbox],input[type=radio]{width:auto;accent-color:var(--brand)}
.checkbox{display:flex;align-items:flex-start;gap:9px;font-weight:700}
fieldset{border:1px solid var(--line);border-radius:15px;padding:14px;margin:0}
legend{font-weight:900;padding:0 8px}
select:focus,input:focus,textarea:focus,button:focus-visible,a:focus-visible{outline:3px solid rgba(15,125,118,.28);outline-offset:2px}
.result{min-height:100%;background:linear-gradient(145deg,#fff,var(--lilac));border:1px solid var(--line);border-radius:20px;padding:21px}
.result h3{margin-top:0}
.privacy-note{font-size:.92rem;color:var(--muted)}
.directory-shell{display:grid;grid-template-columns:315px 1fr;gap:18px;align-items:start}
.filter-panel{position:sticky;top:92px}
.filter-panel h3{margin-top:0}
.filters{display:grid;gap:12px}
.directory-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.provider-list{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.provider-card{padding:20px;display:flex;flex-direction:column;gap:11px;position:relative;overflow:hidden}
.provider-card::before{content:'';position:absolute;inset-inline-start:0;top:0;bottom:0;width:5px;background:var(--brand)}
.provider-top{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.provider-card h3{margin:0;font-size:1.32rem}
.provider-meta{color:var(--muted);font-size:.95rem}
.provider-card dl{display:grid;grid-template-columns:auto 1fr;gap:5px 10px;margin:0}
.provider-card dt{font-weight:900}
.provider-card dd{margin:0;color:var(--muted)}
.provider-card .summary{margin:0;color:var(--muted)}
.provider-card .availability-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.empty{text-align:center;padding:42px}
.empty h3{margin-top:0}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}
.step{padding:19px;position:relative}
.step strong{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;margin-bottom:9px}
.quality-questions{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.quality-question{padding:20px}
.quality-question b{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--mist);color:var(--brand)}
.quality-question h3{margin:.7rem 0 .25rem;font-size:1.12rem}
.quality-question p{margin:0;color:var(--muted)}
.source-note{margin:16px 0 0;padding:14px 17px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.8);color:var(--muted)}
.source-note strong{color:var(--ink)}
.standards,.trust-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.standard,.trust-card{padding:20px}
.standard h3,.trust-card h3{margin-top:0}
.checklist{padding-inline-start:22px}
.checklist li{margin-bottom:6px}
.small{font-size:.92rem;color:var(--muted)}
.fine{font-size:.86rem;color:var(--muted)}
.footer{border-top:1px solid var(--line);background:rgba(255,255,255,.76);padding:36px 0 50px;margin-top:34px}
.footer-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:22px}
.footer-links{display:flex;gap:10px;flex-wrap:wrap}
.divider{height:1px;background:var(--line);margin:20px 0}
.hidden{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.form-status{padding:14px 16px;margin-top:14px;box-shadow:none}
.form-status[data-state=success]{border-color:#a8dbc8;background:#eefbf6;color:#105a46}
.form-status[data-state=error]{border-color:#e6b2bd;background:#fff0f3;color:#7b1e33}
.form-status[data-state=loading]{border-color:#ead797;background:#fff9df;color:#6d5318}
.provider-preview{padding:18px;border:1px dashed #9bc8c3;border-radius:17px;background:#f8fffe;margin-bottom:15px}
.provider-preview h2{margin:.15rem 0}
.portal-layout{display:grid;grid-template-columns:320px 1fr;gap:18px;padding:30px 0 50px}
.portal-sidebar{display:grid;gap:12px;align-self:start;position:sticky;top:94px}
.portal-shell{min-height:640px;display:flex;flex-direction:column}
.portal-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.portal-header h1{font-size:1.45rem;margin:0}
.message-list{display:flex;flex-direction:column;gap:12px;padding:20px 0;overflow:auto;min-height:390px;max-height:58vh}
.message{max-width:min(76%,680px);padding:12px 15px;border-radius:16px;background:#f2f8f7;border:1px solid var(--line)}
.message.mine{align-self:flex-start;background:#e4f5f2;border-color:#9fcfca}
.message.theirs{align-self:flex-end;background:#fff5fa;border-color:#dfbecf}
.message p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.message time{display:block;margin-top:6px;color:var(--muted);font-size:.78rem}
.message-composer{padding:14px;box-shadow:none;margin-top:auto}
.message-composer textarea{min-height:88px}
.portal-meta{display:grid;gap:8px}
.portal-meta div{padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--line)}
.portal-meta b{display:block;font-size:.86rem;color:var(--muted)}
.system-banner{padding:12px 14px;border-radius:13px;background:var(--sand);border:1px solid #ead8b8;color:#66501f}
@media(max-width:1050px){.hero,.matcher,.footer-grid{grid-template-columns:1fr}.grid,.quality-questions{grid-template-columns:repeat(2,1fr)}.stats,.kpis,.steps{grid-template-columns:repeat(2,1fr)}.registry-status{grid-template-columns:auto 1fr 1fr}.registry-status a{grid-column:2/-1}.directory-shell{grid-template-columns:1fr}.filter-panel{position:static}.provider-list{grid-template-columns:1fr}.portal-layout{grid-template-columns:1fr}.portal-sidebar{position:static}.journey-grid{grid-template-columns:1fr}}
@media(max-width:680px){.head{align-items:flex-start;flex-direction:column}nav{overflow-x:auto;flex-wrap:nowrap;max-width:100%}nav a{white-space:nowrap}.brand small{display:none}.hero{padding-top:42px}.grid,.quality-questions,.stats,.kpis,.steps,.standards,.trust-grid,.form-grid{grid-template-columns:1fr}.registry-status{grid-template-columns:auto 1fr;align-items:start}.registry-status>div,.registry-status a{grid-column:2}.field.full{grid-column:auto}.directory-head,.section-head,.portal-header{align-items:flex-start;flex-direction:column}.button{width:100%}.actions .button,.card-actions .button,.provider-actions .button{width:auto}.provider-card dl{grid-template-columns:1fr}.provider-card dt{margin-top:5px}.message{max-width:92%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important;animation:none!important}}
