/* Souq Al Juma v0.34 | Account center visual refinement only.
 * Scoped to .sj-account-page to protect the storefront and diwan.
 * Functional input IDs and API endpoints remain unchanged. */
:root{--ac-red:#d71932;--ac-red-dark:#b50e27;--ac-navy:#13233b;--ac-ink:#1b2c45;--ac-muted:#8190a6;--ac-line:#e3eaf2;--ac-pane:#eef3f8;--ac-shadow:0 22px 80px rgba(19,34,56,.17)}
body.sj-account-page{font-family:Cairo,Tahoma,Arial,sans-serif;background:radial-gradient(circle at 8% 15%,#dce6f0,transparent 32%),radial-gradient(circle at 95% 90%,#f7e2e6,transparent 42%),#f5f7fb;color:var(--ac-ink);-webkit-font-smoothing:antialiased}
body.sj-account-page *{box-sizing:border-box}
body.sj-account-page .ac-overlay{padding:24px 20px 28px;min-height:calc(100dvh - 60px);background:transparent;align-items:center;justify-content:center}
body.sj-account-page .ac-dialog{direction:ltr;grid-template-columns:minmax(0,1fr) 270px;grid-template-areas:"body sidebar";width:min(1060px,100%);height:min(820px,calc(100dvh - 124px));min-height:530px;overflow:hidden;border-radius:27px;border:1px solid rgba(221,229,239,.9);background:#fff;box-shadow:var(--ac-shadow)}
body.sj-account-page .ac-close{top:16px;left:16px;width:42px;height:42px;background:#edf2f7;border-radius:50%;color:#465b73;text-decoration:none;transition:background .18s,transform .18s}
body.sj-account-page .ac-close:hover{background:#ffe9ec;color:var(--ac-red);transform:rotate(90deg)}
body.sj-account-page .ac-sidebar{padding:24px 14px 18px;background:var(--ac-pane);border-inline-start:1px solid #e1e8f0;direction:rtl;scrollbar-width:thin;scrollbar-color:#c8d2df transparent}
body.sj-account-page .ac-identity{gap:5px;margin:0 1px 12px;padding:4px 4px 21px;border-color:#dce4ef}
body.sj-account-page .ac-portrait{width:88px;height:88px;margin-bottom:6px;border:3px solid #fff;outline:3px solid var(--ac-red);outline-offset:-1px;box-shadow:0 4px 18px rgba(46,65,91,.1);background:#fff;color:var(--ac-red)}
body.sj-account-page .ac-identity strong{font-size:19px;font-weight:900;color:#14223a;line-height:1.35}
body.sj-account-page .ac-identity small{font-size:12px;font-weight:800;color:var(--ac-red);direction:ltr;max-width:95%;overflow-wrap:anywhere}
body.sj-account-page .ac-identity>span{font-size:11px;line-height:1.9;color:#8392a7}
body.sj-account-page .ac-tabs{display:grid;gap:3px}
body.sj-account-page .ac-tab{display:flex;align-items:center;min-height:46px;gap:12px;padding:10px 12px;background:transparent;border:1px solid transparent;border-radius:14px;color:#455974;font-size:13px;line-height:1.6;font-weight:800;white-space:normal;transition:background .15s,color .15s,border-color .15s}
body.sj-account-page .ac-tab svg{height:20px;width:20px;min-width:20px;stroke-width:1.75;color:#71839b}
body.sj-account-page .ac-tab:hover{background:#e5ecf4;color:#243b59}
body.sj-account-page .ac-tab.active{background:#fff;color:var(--ac-red);border-color:#e5ebf2;box-shadow:0 4px 15px #16294112}
body.sj-account-page .ac-tab.active svg{color:var(--ac-red)}
body.sj-account-page .ac-tag{display:none}
body.sj-account-page .ac-sidebar-foot{margin:18px 8px 0;padding:16px 0 4px;border-top:1px solid #dce4ec;display:grid;justify-items:center;gap:10px}
body.sj-account-page .ac-sidebar-foot a{font-size:12px;text-decoration:none;color:#63758d;font-weight:700}
body.sj-account-page .ac-sidebar-foot a:hover{color:var(--ac-red)}
body.sj-account-page .ac-account-lang{margin:0;display:inline-flex;padding:4px;border-radius:13px;gap:4px;border:1px solid #e0e6ef;background:#e7edf5;direction:ltr}
body.sj-account-page .ac-account-lang button{font-family:Arial,sans-serif;font-size:12px;font-weight:800;min-width:42px;height:35px;border-radius:9px;border:0;background:transparent;color:#61718a;cursor:pointer}
body.sj-account-page .ac-account-lang button.selected{background:var(--ac-red);color:#fff;box-shadow:0 3px 11px #d7193230}
body.sj-account-page .ac-body{padding:34px clamp(25px,3.7vw,46px) 40px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c7d2df transparent;background:#fff;direction:rtl}
body.sj-account-page .ac-main-head{margin:0 0 23px;padding-inline-start:6px;min-height:59px;align-items:flex-start}
body.sj-account-page .ac-main-head h1{font-size:28px;font-weight:900;color:#0e1b30;margin:0 0 3px;line-height:1.45}
body.sj-account-page .ac-main-head p{font-size:12px;color:var(--ac-muted);margin:0;line-height:1.8}
body.sj-account-page #accountNotice{font-size:12px;line-height:1.6;max-width:230px;font-weight:700}
body.sj-account-page .ac-card{border:1px solid #dce5ef;background:#fff;border-radius:20px;padding:22px 23px;margin-bottom:18px;box-shadow:0 2px 3px #24304404}
body.sj-account-page .ac-card h2{font-size:16px;line-height:1.6;color:#18263d;font-weight:900;margin:0 0 9px}
body.sj-account-page .ac-card p{font-size:12px;line-height:1.9;color:#7e8ea5;margin:4px 0 13px}
body.sj-account-page .ac-card .ac-muted,.sj-account-page .ac-muted{font-size:11px;line-height:1.85;color:#8090a8}
body.sj-account-page .ac-field{font-size:12px;font-weight:800;line-height:1.5;color:#364862;gap:7px;min-width:0;margin-bottom:16px}
body.sj-account-page .ac-field>small{color:#8a99ae;font-size:11px;line-height:1.6;font-weight:500}
body.sj-account-page .ac-field input,body.sj-account-page .ac-field textarea,body.sj-account-page .ac-field select{min-height:49px;padding:12px 14px;border-radius:13px;border:1px solid #dce5ef;color:#263750;background:#fff;box-shadow:0 1px 1px #14284502;font-family:inherit;font-size:13px;font-weight:600;outline:none;transition:border-color .15s,box-shadow .15s}
body.sj-account-page .ac-field input:focus,body.sj-account-page .ac-field textarea:focus,body.sj-account-page .ac-field select:focus{border-color:var(--ac-red);box-shadow:0 0 0 3px #d7193215}
body.sj-account-page .ac-field input[readonly]{color:#687a92;background:#f7f9fc}
body.sj-account-page .ac-field textarea{min-height:112px;line-height:1.9;font-weight:500;resize:vertical}
body.sj-account-page .ac-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}
body.sj-account-page .ac-profile-field-grid .ac-region-field{grid-column:1 / -1;width:min(100%,260px)}
body.sj-account-page .ac-profile-image{display:grid;grid-template-columns:104px minmax(0,1fr);gap:18px;align-items:center;min-height:168px}
body.sj-account-page .ac-profile-image-copy{grid-column:2;grid-row:1;min-width:0}
body.sj-account-page .ac-profile-image-copy h2{margin-bottom:4px}
body.sj-account-page .ac-profile-image-copy p{margin:0 0 12px;max-width:420px}
body.sj-account-page .ac-avatar-preview{grid-column:1;grid-row:1;width:104px;height:104px;display:grid;place-items:center;justify-self:center}
body.sj-account-page .ac-avatar-preview .ac-avatar-large{width:99px;height:99px;border-radius:50%;border:3px solid #fff;outline:1px solid #dce5ed;object-fit:cover;background:#edf3f8}
body.sj-account-page .ac-avatar-fallback{display:grid;place-items:center;color:#a3b2c6}
body.sj-account-page .ac-avatar-fallback svg{width:50px;height:50px}
body.sj-account-page .ac-avatar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body.sj-account-page .ac-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 18px;border:0;border-radius:12px;background:var(--ac-red);color:white;font-size:12px;font-family:inherit;font-weight:900;text-decoration:none;box-shadow:0 7px 15px #d7193218;line-height:1.5}
body.sj-account-page .ac-btn:hover{background:var(--ac-red-dark);box-shadow:0 8px 20px #d7193224}
body.sj-account-page .ac-btn-light{color:#c81833!important;background:#fff0f2!important;box-shadow:none;border:1px solid #f8d9e0}
body.sj-account-page .ac-btn-light:hover{background:#ffe4e9!important}
body.sj-account-page .ac-btn-quiet{background:transparent!important;color:#7b8ba0!important;box-shadow:none;border:1px solid transparent}
body.sj-account-page .ac-btn-quiet:hover{color:var(--ac-red)!important;background:#f9eef1!important}
body.sj-account-page .ac-upload{cursor:pointer}
body.sj-account-page .ac-upload svg{width:17px;height:17px}
body.sj-account-page .ac-username-control{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:3px}
body.sj-account-page .ac-username-control .ac-field{margin-bottom:7px}
body.sj-account-page .ac-username-control .ac-btn{margin:0 0 7px;white-space:nowrap}
body.sj-account-page .ac-username-control .ac-btn:disabled{background:#eef1f5!important;color:#718099!important;box-shadow:none}
body.sj-account-page .ac-username-link{direction:ltr;display:inline-flex;align-items:center;gap:0;color:#77879c;background:#f1f4f8;border:1px solid #e6ebf1;border-radius:9px;padding:6px 11px;margin:0 0 19px;font-family:Arial,sans-serif;font-size:11px;max-width:100%;overflow-wrap:anywhere}
body.sj-account-page .ac-username-link strong{color:#13243c}
body.sj-account-page .ac-form-bottom{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:6px}
body.sj-account-page .ac-form-bottom .ac-muted{max-width:360px;margin:0}
body.sj-account-page .ac-switch-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 2px;border:0;cursor:pointer}
body.sj-account-page .ac-switch-row strong{font-size:14px;font-weight:800;color:#20314a}
body.sj-account-page .ac-switch-row small{font-size:11px;color:#8391a6;margin-top:3px}
body.sj-account-page .ac-switch-row input[type=checkbox]{appearance:none;-webkit-appearance:none;width:48px;height:28px;flex:0 0 48px;border:0;border-radius:25px;background:#cbd5e1;position:relative;cursor:pointer;transition:background .2s;outline-offset:3px}
body.sj-account-page .ac-switch-row input[type=checkbox]::after{content:"";position:absolute;top:4px;left:4px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 2px 4px #0002;transition:transform .2s}
body.sj-account-page .ac-switch-row input[type=checkbox]:checked{background:var(--ac-red)}
body.sj-account-page .ac-switch-row input[type=checkbox]:checked::after{transform:translateX(20px)}
body.sj-account-page .ac-contact-fields{margin-bottom:14px}
body.sj-account-page .ac-contact-fields .ac-grid .ac-field{margin-bottom:4px}
body.sj-account-page .ac-contact-caution{margin:5px 0 12px}
body.sj-account-page .ac-contact-options{padding:4px 20px;margin-bottom:15px}
body.sj-account-page .ac-contact-methods{padding-top:18px}
body.sj-account-page .ac-contact-methods .ac-muted{margin:1px 0 13px}
body.sj-account-page .ac-method-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
body.sj-account-page .ac-method{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;min-height:45px;padding:8px;border:1px solid #dfe7ef;border-radius:25px;color:#3f516b;font-size:11px;font-weight:800;text-align:center;cursor:pointer;white-space:nowrap;transition:background .16s,border-color .16s}
body.sj-account-page .ac-method input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer;width:100%;height:100%}
body.sj-account-page .ac-method svg{width:17px;height:17px;pointer-events:none}
body.sj-account-page .ac-method:has(input:checked),body.sj-account-page .ac-method[aria-pressed=true]{color:var(--ac-red);background:#fff1f3;border-color:#eb899a}
body.sj-account-page .ac-method:has(input:focus-visible){outline:2px solid #d71932;outline-offset:2px}
body.sj-account-page .ac-method:has(input:disabled){opacity:.7;cursor:default}
body.sj-account-page .ac-card:has(#acSecurityForm){padding:21px}
body.sj-account-page #acSecurityForm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px}
body.sj-account-page #acSecurityForm .ac-btn{justify-self:start;grid-column:1 / -1}
body.sj-account-page .ac-logo-card{border-radius:13px;padding:16px 18px;background:#f1f5f9;color:#283950;font-weight:800}
body.sj-account-page .ac-log-row{align-items:center;padding:15px 0;border-color:#e9eef4;min-height:62px}
body.sj-account-page .ac-log-row strong{font-size:13px;color:#26374f}
body.sj-account-page .ac-account-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:18px}
body.sj-account-page .ac-summary-box{background:#eff3f8;padding:16px 17px;min-height:90px;border-radius:15px;display:flex;flex-direction:column;justify-content:space-between;gap:5px}
body.sj-account-page .ac-summary-box small{font-size:11px;color:#8090a6;line-height:1.7;margin:0}
body.sj-account-page .ac-summary-box strong{font-size:14px;color:#13243c;line-height:1.5}
body.sj-account-page .ac-danger{padding:20px 22px;border:1px solid #f4a2b1;border-radius:20px;background:#fff3f5}
body.sj-account-page .ac-danger h2{color:#cf1a38;font-size:17px}
body.sj-account-page .ac-danger p{color:#865866}
body.sj-account-page .ac-danger .ac-btn{box-shadow:none}
body.sj-account-page .ac-label-chip{background:#fff1f3;color:#b6142b;padding:6px 9px;border-radius:9px;font-weight:800}
body.sj-account-page .ac-empty-state{border:1px dashed #d7e1ed;background:#fff;min-height:235px;padding:30px 22px;border-radius:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:10px}
body.sj-account-page .ac-empty-state>svg{width:44px;height:44px;color:#7d8ea7}
body.sj-account-page .ac-empty-state strong{font-size:17px;color:#182a43}
body.sj-account-page .ac-empty-state p{font-size:12px;color:#8291a7;margin:0 0 6px}
body.sj-account-page .ac-empty-state .ac-btn{font-size:12px}
body.sj-account-page .ac-mobile-route{display:none}
body.sj-account-page .ac-wait,body.sj-account-page .ac-skeleton{color:#6f7f95}
body.sj-account-page .ac-tab:focus-visible,body.sj-account-page .ac-btn:focus-visible,body.sj-account-page .ac-close:focus-visible{outline:3px solid #d7193266;outline-offset:2px}
@media(max-width:1100px) and (min-width:1025px){body.sj-account-page .ac-dialog{grid-template-columns:minmax(0,1fr) 252px}body.sj-account-page .ac-body{padding:28px}}
@media(max-width:1024px){
 body.sj-account-page .ac-overlay{padding:0 0 calc(82px + env(safe-area-inset-bottom,0px));min-height:100dvh;align-items:stretch;background:#fff}
 body.sj-account-page .ac-dialog{display:flex;flex-direction:column;width:100%;height:auto;min-height:calc(100dvh - 80px);border:0;box-shadow:none;border-radius:0;overflow:visible}
 body.sj-account-page .ac-sidebar{display:flex;flex-direction:column;overflow:visible;flex:0 0 auto;padding:15px 20px 10px;background:#f1f4f9;border:0;border-bottom:1px solid #e6ecf4}
 body.sj-account-page .ac-identity{display:grid;grid-template-columns:55px minmax(0,1fr);grid-template-rows:repeat(3,auto);justify-content:start;align-items:center;text-align:start;gap:1px 13px;margin:0 0 13px;padding:0 52px 8px 0;border:0}
 body.sj-account-page .ac-portrait{grid-row:1 / 4;grid-column:1;width:52px;height:52px;margin:0;outline-width:2px;border-width:2px}
 body.sj-account-page .ac-portrait svg{width:28px}
 body.sj-account-page .ac-identity strong{font-size:15px;grid-column:2}
 body.sj-account-page .ac-identity small{grid-column:2;font-size:11px}
 body.sj-account-page .ac-identity span{display:block;grid-column:2;font-size:10px}
 body.sj-account-page .ac-sidebar-foot{display:none}
 body.sj-account-page .ac-tabs{display:none}
 body.sj-account-page .ac-mobile-route{display:flex;align-items:center;gap:9px;position:relative;min-height:44px;background:#fff;border:1px solid #e1e7ef;border-radius:13px;padding:0 14px;box-shadow:0 2px 8px #15274108}
 body.sj-account-page .ac-mobile-route label{font-size:11px;font-weight:800;color:#7c8ca3;white-space:nowrap}
 body.sj-account-page .ac-mobile-route select{border:0;background:transparent;appearance:none;-webkit-appearance:none;font:800 12px Cairo,Tahoma,sans-serif;color:#273952;flex:1;min-width:0;outline:0;padding:10px 0;text-align:end;direction:inherit}
 body.sj-account-page .ac-mobile-route>svg{width:18px;height:18px;color:#728299;pointer-events:none}
 body.sj-account-page .ac-body{padding:24px max(16px,env(safe-area-inset-right,16px)) 40px;overflow:visible;flex:1}
 body.sj-account-page .ac-close{top:13px;left:15px;width:36px;height:36px;box-shadow:0 1px 3px #13264012}
 body.sj-account-page .ac-main-head{margin-bottom:18px;padding:0 2px;min-height:auto}
 body.sj-account-page .ac-main-head h1{font-size:24px}
 body.sj-account-page .ac-card{padding:19px 18px;border-radius:17px}
 body.sj-account-page .ac-contact-options{padding:4px 16px}
}
@media(max-width:650px){
 body.sj-account-page .ac-sidebar{padding-inline:14px}
 body.sj-account-page .ac-body{padding:20px 14px 26px}
 body.sj-account-page .ac-main-head h1{font-size:22px}
 body.sj-account-page .ac-card{padding:17px 15px;margin-bottom:13px}
 body.sj-account-page .ac-grid{grid-template-columns:1fr;gap:0}
 body.sj-account-page .ac-profile-field-grid .ac-region-field{grid-column:auto;width:100%}
 body.sj-account-page .ac-profile-image{grid-template-columns:84px minmax(0,1fr);gap:10px;padding:15px}
 body.sj-account-page .ac-profile-image-copy h2{font-size:14px}
 body.sj-account-page .ac-profile-image-copy p{font-size:10px;line-height:1.7}
 body.sj-account-page .ac-avatar-preview{height:78px;width:78px}
 body.sj-account-page .ac-avatar-preview .ac-avatar-large{height:76px;width:76px}
 body.sj-account-page .ac-avatar-actions .ac-btn{font-size:10px;padding:8px 10px;min-height:37px}
 body.sj-account-page .ac-username-control{grid-template-columns:1fr;gap:0}
 body.sj-account-page .ac-username-control .ac-btn{justify-self:start;min-width:140px}
 body.sj-account-page .ac-method-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.sj-account-page #acSecurityForm{grid-template-columns:1fr}
 body.sj-account-page .ac-switch-row strong{font-size:12px}
 body.sj-account-page .ac-account-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.sj-account-page .ac-summary-box{min-height:82px;padding:13px}
 body.sj-account-page .ac-summary-box strong{font-size:12px}
 body.sj-account-page .ac-form-bottom{align-items:stretch}
 body.sj-account-page .ac-form-bottom .ac-btn{width:100%}
}
@media(max-width:365px){body.sj-account-page .ac-profile-image{grid-template-columns:1fr}body.sj-account-page .ac-avatar-preview{grid-row:1;justify-self:start}body.sj-account-page .ac-method{font-size:10px}body.sj-account-page .ac-summary-box{min-height:86px}}
@media(prefers-reduced-motion:reduce){body.sj-account-page *,body.sj-account-page *::after{transition:none!important;scroll-behavior:auto!important}}

html[dir="ltr"] body.sj-account-page .ac-body,html[dir="ltr"] body.sj-account-page .ac-sidebar{direction:ltr}
html[dir="ltr"] body.sj-account-page .ac-identity{text-align:center}
@media(max-width:1024px){html[dir="ltr"] body.sj-account-page .ac-identity{text-align:start;padding:0 0 8px 52px}}
/* Mobile identity alignment and in-page language control */
@media(max-width:1024px){
 body.sj-account-page .ac-identity{justify-items:stretch;justify-content:stretch}
 body.sj-account-page .ac-identity strong,body.sj-account-page .ac-identity small,body.sj-account-page .ac-identity span{justify-self:stretch;text-align:right;max-width:100%}
 body.sj-account-page .ac-sidebar-foot{display:flex!important;order:2;justify-content:flex-end;align-items:center;align-self:stretch;margin:0;padding:0 0 9px;border:0}
 body.sj-account-page .ac-sidebar-foot>a{display:none!important}
 body.sj-account-page .ac-mobile-route{order:3}
}
@media(max-width:650px){body.sj-account-page .ac-sidebar{padding-top:13px}}
html[dir="ltr"] body.sj-account-page .ac-identity strong,html[dir="ltr"] body.sj-account-page .ac-identity small,html[dir="ltr"] body.sj-account-page .ac-identity span{text-align:left}
