@import url('https://fonts.googleapis.com/css2?family=Almarai:wght@300;400;700;800&family=Amiri:wght@400;700&family=Cairo:wght@400;600;700;800&family=Changa:wght@400;600;700&family=IBM+Plex+Sans+Arabic:wght@400;600;700&family=Noto+Kufi+Arabic:wght@400;600;700&family=Noto+Naskh+Arabic:wght@400;600;700&family=Tajawal:wght@400;500;700;800&display=swap');
*{box-sizing:border-box}body{margin:0;font-family:Tajawal,Tahoma,Arial,sans-serif;background:#07111f;color:#fff;min-height:100vh}.phone-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:14px;background:radial-gradient(circle at top,#2563eb 0,#111827 42%,#050816 100%)}.smart-canvas{position:relative;width:min(390px,100%);height:760px;min-height:100vh;border-radius:34px;overflow:hidden;background:linear-gradient(145deg,#111827,#1d4ed8 55%,#7c3aed);box-shadow:0 30px 90px rgba(0,0,0,.45)}.el{position:absolute;display:flex;align-items:center;justify-content:center;padding:8px;word-break:break-word;transition:.25s}.el.float{animation:float 3s ease-in-out infinite}.el.pulse{animation:pulse 1.8s ease-in-out infinite}.el.fade{animation:fade .8s ease both}.el.slide{animation:slide .7s ease both}.el.shake{animation:shake 2.2s ease-in-out infinite}.el img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.el a{color:inherit;text-decoration:none;width:100%;height:100%;display:flex;align-items:center;justify-content:center}.el input,.el textarea{width:100%;height:100%;border:0;border-radius:inherit;padding:12px;font:inherit}.el textarea{resize:none}.mini-table{width:100%;height:100%;border-spacing:0;background:rgba(255,255,255,.08);border-radius:12px;overflow:hidden;font-size:12px}.mini-table th,.mini-table td{padding:6px;border-bottom:1px solid rgba(255,255,255,.15)}.mini-chart{width:100%;height:100%;display:flex;flex-direction:column;gap:8px}.bars{display:flex;align-items:end;gap:8px;flex:1}.bars span{display:block;width:100%;flex:0 0 auto;min-height:8px;border-radius:8px 8px 0 0;background:linear-gradient(#93c5fd,#2563eb)}.mini-survey{width:100%;height:100%;display:flex;flex-direction:column;gap:8px;align-items:stretch;justify-content:center}.mini-survey label{display:flex;gap:8px;align-items:center;background:rgba(255,255,255,.12);border-radius:12px;padding:7px}.mini-survey input{width:auto;height:auto}.install{display:grid;place-items:center;padding:18px;background:linear-gradient(135deg,#0f172a,#1e3a8a)}.card{width:min(440px,100%);background:rgba(255,255,255,.1);backdrop-filter:blur(15px);border:1px solid rgba(255,255,255,.2);border-radius:24px;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.3)}input,button,select,textarea{width:100%;padding:13px 14px;margin:7px 0;border:0;border-radius:14px;font:inherit}button{cursor:pointer;background:#fff;color:#111827;font-weight:700}.error{background:#fee2e2;color:#991b1b;padding:12px;border-radius:12px}.success{background:#dcfce7;color:#166534;padding:12px;border-radius:12px}@keyframes float{50%{transform:translateY(-10px)}}@keyframes pulse{50%{transform:scale(1.04)}}@keyframes fade{from{opacity:0;transform:translateY(15px)}to{opacity:1;transform:none}}@keyframes slide{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}@keyframes shake{0%,90%,100%{transform:none}93%{transform:translateX(3px)}96%{transform:translateX(-3px)}}
.smart-canvas iframe{width:100%;height:100%;border:0;border-radius:inherit}.check-preview{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:100%}.check-preview input{width:auto}.smart-canvas{background-size:cover;background-position:center;overflow:auto}.phone-page{min-height:100vh;display:grid;place-items:center;padding:10px}

/* v4 protected page and newer fields */
.locked-page{min-height:100vh;display:grid;place-items:center;padding:18px;background:radial-gradient(circle at top right,#2563eb55,transparent 35%),linear-gradient(135deg,#020617,#111827);font-family:Tajawal,Tahoma,Arial,sans-serif;color:#fff}.lock-card{width:min(100%,390px);background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.14);border-radius:28px;padding:24px;box-shadow:0 30px 90px rgba(0,0,0,.35);backdrop-filter:blur(18px);text-align:center}.lock-icon{width:70px;height:70px;border-radius:22px;margin:0 auto 12px;display:grid;place-items:center;background:rgba(255,255,255,.12);font-size:34px}.lock-card h1{margin:8px 0}.lock-card p{color:#cbd5e1}.lock-card input{width:100%;padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.12);color:#fff;outline:0;font:inherit}.lock-card button{width:100%;margin-top:10px;border:0;border-radius:16px;padding:14px;background:#2563eb;color:#fff;font-weight:700;font:inherit}.lock-error{background:#7f1d1d;border-radius:14px;padding:10px;margin:10px 0}.el select{width:100%;height:100%;border:0;border-radius:inherit;padding:0 10px;font:inherit;background:rgba(255,255,255,.92);color:#111827}

/* v5 public fixes */
.empty-public{position:absolute;inset:24px;display:grid;place-items:center;text-align:center;color:#e5e7eb;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:26px;padding:22px}.visitor-counter{width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.visitor-counter strong{font-size:clamp(24px,9vw,46px);line-height:1}.visitor-counter span{font-size:13px;opacity:.86}.smart-canvas{min-height:760px}

/* v7 public render additions */
.icon-el{line-height:1}.bars i{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;font-style:normal;min-width:0}.bars i span{width:100%;display:block}.bars i small{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.85)}

/* v8 mobile-only public page + optional top banner */
.mobile-only-public{max-width:430px;margin:0 auto;background:#020617;overflow-x:hidden}.mobile-only-public .phone-page{display:block;width:100%;min-height:100vh;padding:0;background:#020617}.public-top-banner{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:rgba(2,6,23,.88);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.12)}.public-brand{display:flex;align-items:center;gap:9px;min-width:0}.public-brand img,.public-brand span{width:38px;height:38px;border-radius:14px;object-fit:cover;display:grid;place-items:center;background:rgba(255,255,255,.12)}.public-brand b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-top-banner select{width:130px;margin:0;padding:9px 10px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.14);border-radius:14px}.mobile-only-public .smart-canvas{width:100%;max-width:430px;margin:0 auto;border-radius:0;min-height:calc(100vh - 1px);height:auto;overflow:visible;box-shadow:none}.mobile-only-public .el{max-width:100%}.mobile-only-public .el input,.mobile-only-public .el textarea,.mobile-only-public .el select{margin:0}
@media(min-width:431px){.mobile-only-public{border-inline:1px solid rgba(255,255,255,.10);box-shadow:0 0 80px rgba(0,0,0,.45)}}

/* v9 public renderer refinements */
.el svg{width:62%;height:62%;display:block;margin:auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.smart-canvas{width:min(390px,100%)!important;max-width:390px;margin-inline:auto}.mobile-only-public{overflow-x:hidden}.public-top-banner{width:min(390px,100%);margin:0 auto 10px}.el{box-sizing:border-box}.bars i{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;font-style:normal;min-width:0}.bars i span{width:100%}.bars i small{font-size:9px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:rgba(255,255,255,.85)}


/* v10 fixes: compact action icons + full mobile visitor rendering */
.page-icon-actions{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex-wrap:nowrap!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%;padding:4px 0!important}
.page-icon-actions form{width:auto!important;min-width:0!important;margin:0!important;padding:0!important;display:flex!important;flex:0 0 auto!important}
.page-icon-actions .icon-btn, .page-icon-actions a.icon-btn, .page-icon-actions button.icon-btn{all:unset;box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border-radius:14px!important;cursor:pointer!important;color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;box-shadow:0 10px 24px rgba(0,0,0,.18)!important;overflow:hidden!important;text-decoration:none!important;line-height:1!important;vertical-align:middle!important;flex:0 0 44px!important}
.page-icon-actions .icon-btn svg, .page-icon-actions .icon-btn .ui-svg{width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;max-width:20px!important;max-height:20px!important;display:block!important;fill:none!important;stroke:currentColor!important;stroke-width:2!important;stroke-linecap:round!important;stroke-linejoin:round!important;overflow:visible!important;transform:none!important}
.page-icon-actions .icon-btn.blue{background:linear-gradient(135deg,#2563eb,#60a5fa)!important}.page-icon-actions .icon-btn.amber{background:linear-gradient(135deg,#d97706,#f59e0b)!important}.page-icon-actions .icon-btn.violet{background:linear-gradient(135deg,#7c3aed,#a78bfa)!important}.page-icon-actions .icon-btn.red{background:linear-gradient(135deg,#dc2626,#f87171)!important}
@media(max-width:520px){.page-icon-actions{justify-content:space-between!important}.page-icon-actions .icon-btn{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;flex-basis:42px!important}.page-icon-actions .icon-btn svg{width:19px!important;height:19px!important;min-width:19px!important;max-width:19px!important}}
body.mobile-only-public{margin:0;min-height:100svh;background:var(--page-bg,linear-gradient(145deg,#111827,#2563eb));background-attachment:fixed;background-size:cover;color:#fff;overflow-x:hidden}
.phone-page{width:100%;min-height:100svh;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:10px;background:var(--page-bg,transparent)!important;background-size:cover!important;background-position:center!important}
.smart-canvas{position:relative;width:min(390px,100%)!important;max-width:390px!important;min-height:100svh!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important;background:transparent!important}
.public-top-banner{position:sticky;top:8px;z-index:20;width:min(390px,calc(100% - 20px));margin:0 auto 10px;display:flex;align-items:center;gap:8px;padding:10px;border-radius:20px;background:rgba(15,23,42,.72);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(16px);box-shadow:0 14px 40px rgba(0,0,0,.22)}
.public-brand{display:flex;align-items:center;gap:8px;min-width:0;flex:1}.public-brand img{width:34px;height:34px;border-radius:12px;object-fit:cover}.public-brand span{width:34px;height:34px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.12)}.public-brand b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-top-banner select{width:116px;min-width:116px;margin:0;padding:10px;border-radius:14px;background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.14)}
.el{position:absolute;display:flex;align-items:center;justify-content:center;box-sizing:border-box;will-change:transform,opacity;animation-fill-mode:both}.el.reveal{animation:visitorReveal .55s ease both}.el.float{animation:visitorReveal .55s ease both, float 3.2s ease-in-out infinite .55s}.el.pulse{animation:visitorReveal .55s ease both, pulse 1.9s ease-in-out infinite .55s}.el.fade{animation:visitorFade .7s ease both}.el.slide{animation:visitorSlide .7s cubic-bezier(.2,.9,.2,1) both}.el.shake{animation:visitorReveal .55s ease both, shake 2.4s ease-in-out infinite .55s}.el.zoom{animation:visitorZoom .55s ease both}.el.pop{animation:visitorPop .55s cubic-bezier(.2,1.25,.35,1) both}.el img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:cover;border-radius:inherit}.icon-el svg{width:58%!important;height:58%!important;max-width:58%!important;max-height:58%!important}
@keyframes visitorReveal{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}@keyframes visitorFade{from{opacity:0}to{opacity:1}}@keyframes visitorSlide{from{opacity:0;transform:translateX(26px)}to{opacity:1;transform:none}}@keyframes visitorZoom{from{opacity:0;transform:scale(.75)}to{opacity:1;transform:scale(1)}}@keyframes visitorPop{0%{opacity:0;transform:scale(.55)}75%{opacity:1;transform:scale(1.05)}100%{opacity:1;transform:scale(1)}}
.empty-public{position:absolute;left:18px;right:18px;top:120px;min-height:160px;display:grid;place-items:center;text-align:center;color:#e5e7eb;background:rgba(15,23,42,.55);border:1px solid rgba(255,255,255,.14);border-radius:24px;padding:20px}

/* v11 fixes: saved public banner + interactive surveys */
.public-top-banner{display:flex!important;visibility:visible!important;opacity:1!important}
.public-brand img,.public-brand span{flex:0 0 auto}
.interactive-survey{padding:10px;gap:8px;justify-content:flex-start;overflow:auto}
.interactive-survey b{font-size:1em;margin-bottom:2px}
.survey-options{display:grid;gap:7px;width:100%}
.survey-options button{width:100%;margin:0;border:1px solid rgba(255,255,255,.16);border-radius:14px;padding:10px 11px;background:rgba(255,255,255,.12);color:inherit;font:inherit;text-align:right;transition:.18s}
.survey-options button:active{transform:scale(.98)}
.survey-options button.chosen{background:rgba(96,165,250,.35);border-color:rgba(147,197,253,.8)}
.survey-results{display:none;gap:7px;width:100%;margin-top:4px}
.survey-result-row{display:grid;grid-template-columns:1fr auto;gap:4px 8px;align-items:center;font-size:12px}
.survey-result-row i{grid-column:1/3;height:8px;border-radius:999px;background:rgba(255,255,255,.15);overflow:hidden}
.survey-result-row em{display:block;height:100%;border-radius:999px;background:currentColor;opacity:.8;transition:width .35s ease}
.survey-result-row small{opacity:.72;grid-column:1/3}
.survey-status{font-size:11px;opacity:.78;min-height:14px}

/* v12 public banner + smoother visitor rendering */
.public-page-banner{position:absolute;top:10px;right:10px;left:10px;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid rgba(255,255,255,.18);box-shadow:0 18px 45px rgba(0,0,0,.25);backdrop-filter:blur(18px);animation:reveal .45s ease both}.public-page-banner.is-sticky{position:sticky}.public-banner-brand{display:flex;align-items:center;gap:9px;min-width:0}.public-banner-brand img{object-fit:cover;border-radius:14px;background:rgba(255,255,255,.12);flex:0 0 auto}.public-banner-brand strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.public-banner-menu{position:relative;flex:0 0 auto}.public-banner-menu summary{list-style:none;display:flex;align-items:center;gap:6px;background:var(--menu-bg,#2563eb);color:#fff;border-radius:14px;padding:9px 11px;cursor:pointer;font-weight:700}.public-banner-menu summary::-webkit-details-marker{display:none}.public-banner-menu svg,.public-banner-brand svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.public-banner-menu a{position:relative;display:block;margin-top:6px;background:rgba(15,23,42,.92);border:1px solid rgba(255,255,255,.14);border-radius:12px;color:#fff;text-decoration:none;padding:10px 12px;min-width:150px;box-shadow:0 12px 26px rgba(0,0,0,.22)}.public-banner-menu[open] a{animation:reveal .18s ease both}.icon-el svg{width:62%;height:62%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.smart-canvas{background-size:cover!important;background-position:center!important}.el{will-change:transform,opacity}.el.reveal{animation:reveal .45s ease both}@keyframes reveal{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}

/* v14: one-time visitor survey + clearer banner/rendering */
.survey-result-row.my-vote{background:rgba(96,165,250,.16);border:1px solid rgba(147,197,253,.35);border-radius:12px;padding:6px}
.interactive-survey .survey-options[style*="display: none"] + .survey-results{animation:reveal .25s ease both}
.public-page-banner{box-sizing:border-box;max-width:calc(100% - 20px)}
.smart-form{width:100%;height:100%;display:flex;flex-direction:column;gap:9px;overflow:auto;padding:4px}.smart-form-title{font-weight:900;font-size:1.08em}.smart-form label{display:grid;gap:5px;text-align:right;font-size:12px}.smart-form input,.smart-form textarea{width:100%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.92);color:#111827;border-radius:12px;padding:10px;font:inherit;margin:0}.smart-form textarea{min-height:74px;resize:vertical}.smart-form .check-line,.smart-form .radio-line{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.12);border-radius:12px;padding:8px}.smart-form .check-line input,.smart-form .radio-line input{width:auto}.smart-form .submit-form-btn{border:0;border-radius:14px;padding:12px;background:#fff;color:#111827;font-weight:900}.smart-form-note{font-size:12px;border-radius:12px;padding:8px;display:none}.smart-form-note.ok{display:block;background:#dcfce7;color:#166534}.smart-form-note.err{display:block;background:#fee2e2;color:#991b1b}.smart-form-file-hint{opacity:.78;font-size:11px}.smart-form-fieldset{border:0;margin:0;padding:0;display:grid;gap:7px}.smart-form-fieldset legend{font-size:12px;margin-bottom:2px}

/* v17 fixes */
.bars i{flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;font-style:normal;min-width:0}.bars i span{display:block;width:100%!important;flex:0 0 auto!important}.visitor-counter.only-number span{display:none!important}.visitor-counter.only-number{gap:0}.visitor-counter.only-number strong{font-size:clamp(28px,12vw,58px)}.active-form-builder{display:block!important}.form-builder-box.active-form-builder{display:block!important}.form-fields-rows:empty:before{content:'اضغط زر إضافة حقل لإنشاء حقول النموذج';display:block;color:#94a3b8;text-align:center;padding:14px;border:1px dashed rgba(148,163,184,.35);border-radius:14px}

/* v18: banner menu always opens downward from pages button */
.public-banner-menu{position:relative!important}.public-banner-menu-list{position:absolute;top:calc(100% + 8px);right:0;z-index:60;display:none;min-width:170px;max-height:260px;overflow:auto;padding:7px;border-radius:18px;background:rgba(15,23,42,.96);border:1px solid rgba(255,255,255,.14);box-shadow:0 22px 55px rgba(0,0,0,.35);backdrop-filter:blur(18px);transform-origin:top right}.public-banner-menu[open] .public-banner-menu-list{display:grid;gap:6px;animation:publicMenuDown .18s ease both}.public-banner-menu .public-banner-menu-list a{position:static!important;display:block!important;margin:0!important;min-width:0!important;background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:13px!important;color:#fff!important;text-decoration:none!important;padding:10px 12px!important;box-shadow:none!important}.public-banner-menu .public-banner-menu-list a:hover{background:rgba(96,165,250,.22)!important}.smart-form-note.ok,.smart-form-note.err{display:block!important}@keyframes publicMenuDown{from{opacity:0;transform:translateY(-8px) scale(.98)}to{opacity:1;transform:none}}


/* v20: منع النسخ والحفظ المباشر + تحسين رفع النماذج */
html, body, .smart-canvas, .el { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.smart-form input, .smart-form textarea, .smart-form select, .smart-form button { -webkit-user-select:auto; user-select:auto; }
.smart-canvas img { -webkit-user-drag:none; user-drag:none; pointer-events:none; }
.smart-upload-preview{display:grid;place-items:center;margin-top:8px;border:1px dashed rgba(148,163,184,.35);border-radius:14px;padding:8px;background:rgba(255,255,255,.06)}
.smart-upload-preview:empty{display:none}.smart-upload-preview img,.smart-upload-preview video{max-width:200px!important;max-height:200px!important;width:auto!important;height:auto!important;border-radius:14px;object-fit:contain;background:#020617}.smart-compress-btn{margin-top:8px;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:14px;padding:10px 12px;background:#f59e0b;color:#111827;font-weight:800;cursor:pointer}.smart-compress-btn:disabled{opacity:.7;cursor:wait}
/* v22 additions */
.el a img{display:block;max-width:100%;max-height:100%;pointer-events:none;user-select:none;-webkit-user-drag:none}.embedded-page-frame{width:100%;height:100%;border:0;border-radius:inherit;background:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)}.pdf-preview-card{width:100%;min-height:78px;border-radius:16px;background:#f8fafc;color:#111827;border:1px solid #e2e8f0;display:flex;align-items:center;justify-content:center;font-weight:800;text-align:center;padding:12px}.smart-upload-preview .pdf-preview-card{max-width:200px;min-height:120px}.smart-form input[type=file]{background:#fff;color:#111827}

/* v23: إدراج الصفحة بدون iframe */
.embedded-elements-canvas{position:relative;width:100%;height:100%;min-height:220px;overflow:hidden;border-radius:inherit;background:transparent}
.embedded-elements-canvas>.el{position:absolute}

/* v25: social icons + discreet programming credit */
.lampa-credit{position:fixed;left:50%!important;right:auto!important;bottom:10px;transform:translateX(-50%);z-index:99999;width:auto!important;min-width:0!important;margin:0!important;padding:6px 10px!important;border:0!important;border-radius:999px!important;background:rgba(15,23,42,.34)!important;color:rgba(255,255,255,.58)!important;font:600 11px/1.2 Tahoma,Arial,sans-serif!important;text-decoration:none!important;box-shadow:none!important;backdrop-filter:blur(10px);cursor:pointer;transition:.18s ease;opacity:.74}.lampa-credit:hover,.lampa-credit:focus{opacity:1;color:rgba(255,255,255,.82)!important;background:rgba(15,23,42,.50)!important;transform:translateX(-50%) translateY(-1px)}.lampa-credit:visited{color:rgba(255,255,255,.58)!important;text-decoration:none!important}


/* v28 advanced table/forms/neon */
.neon-frame{outline:1px solid var(--neon-color,#22d3ee);}
.advanced-mini-table{border-collapse:collapse;border-spacing:0;table-layout:fixed;}
.advanced-mini-table th,.advanced-mini-table td{border:1px solid rgba(255,255,255,.22);vertical-align:middle;text-align:center;overflow:hidden;text-overflow:ellipsis;}
.table-builder-grid{display:grid;gap:8px;margin:10px 0;overflow:auto;max-height:220px;padding:8px;background:rgba(15,23,42,.06);border-radius:16px;}
.table-builder-grid input{min-width:88px;margin:0;}
.table-style-panel{display:grid;gap:10px;margin-top:10px;}
.table-style-list{display:grid;gap:8px;padding:10px;border:1px solid rgba(148,163,184,.22);border-radius:16px;background:rgba(255,255,255,.06);}
.table-style-row{display:grid;grid-template-columns:58px repeat(4,minmax(54px,1fr));gap:6px;align-items:end;}
.table-style-row label{font-size:11px;display:grid;gap:3px;margin:0;}
.table-style-row input{height:34px;padding:4px;margin:0;}
.table-only-btn{display:none}
.smart-form select{width:100%;border:1px solid rgba(148,163,184,.35);border-radius:14px;padding:11px;background:rgba(255,255,255,.92);color:#111827;font:inherit;}
@media(max-width:720px){.table-style-row{grid-template-columns:1fr 1fr;}.table-style-row span{grid-column:1/-1}}

/* v29 form color preview */
.smart-color-field{display:flex!important;align-items:center;gap:12px;justify-content:space-between}.smart-color-field input[type=color]{width:50px!important;height:50px!important;min-width:50px!important;max-width:50px!important;padding:0!important;border-radius:14px!important;border:2px solid rgba(15,23,42,.18)!important;background:#fff!important;overflow:hidden}.smart-color-field .color-label{flex:1}.smart-color-field .color-value{direction:ltr;color:#334155;background:#f1f5f9;border-radius:999px;padding:6px 10px;font-size:12px}

/* v30 Arabic fonts + popup element */
.neon-frame{outline:1px solid var(--neon-color,#22d3ee);}
.popup-trigger-button{width:100%;height:100%;border:0;border-radius:inherit;background:transparent;color:inherit;font:inherit;display:grid;place-items:center;cursor:pointer;overflow:hidden}
.popup-trigger-button img{display:block;max-width:100%;max-height:100%;pointer-events:none}
.smart-popup-overlay{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:16px;opacity:0;transition:.24s ease;backdrop-filter:blur(8px)}
.smart-popup-overlay.show{opacity:1}
.smart-popup-box{position:relative;max-width:calc(100vw - 28px);max-height:calc(100vh - 42px);border-radius:28px;box-shadow:0 30px 100px rgba(0,0,0,.55);overflow:hidden;transform:translateY(18px) scale(.96);transition:.28s cubic-bezier(.2,.8,.2,1);border:1px solid rgba(255,255,255,.16)}
.smart-popup-overlay.show .smart-popup-box{transform:none}
.smart-popup-close{position:absolute;top:10px;left:10px;z-index:3;width:38px;height:38px;border:0;border-radius:14px;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}
.smart-popup-close svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2}
.smart-popup-content{position:relative;width:100%;height:100%;min-height:inherit;overflow:auto;padding:52px 14px 18px}
.smart-popup-content .el{position:absolute}
/* v31 store, cart, orders, rotation/skew support */
.public-banner-menu summary span{display:none!important}.public-page-banner{gap:8px}.store-cart-btn{width:42px;height:42px;border:0;border-radius:15px;background:rgba(255,255,255,.14);color:inherit;position:relative;display:grid;place-items:center}.store-cart-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.cart-badge{position:absolute;top:-5px;left:-5px;min-width:20px;height:20px;border-radius:99px;background:#ef4444;color:#fff;font-size:11px;font-weight:800;display:none;place-items:center;box-shadow:0 8px 18px rgba(239,68,68,.35)}
.smart-store{width:100%;height:100%;overflow:auto;display:flex;flex-direction:column;gap:10px}.smart-store>b{font-size:18px}.store-products-grid{display:grid;gap:10px}.store-product{display:grid;grid-template-columns:82px 1fr;gap:10px;align-items:center;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:10px;text-align:start}.store-product img,.store-product .no-img{width:82px;height:82px;border-radius:14px;object-fit:cover;background:rgba(255,255,255,.18)}.store-product p{margin:4px 0;font-size:12px;opacity:.82}.store-product span{display:block;font-weight:900}.store-product del{opacity:.55}.store-product button{grid-column:1/-1;border:0;border-radius:14px;padding:10px;background:#fff;color:#111827;font-weight:800}.cart-box{max-width:min(390px,94vw);background:#0f172a;color:#fff}.cart-content{padding:54px 18px 18px;max-height:82vh;overflow:auto}.cart-items{display:grid;gap:9px}.cart-item{display:grid;grid-template-columns:48px 1fr auto auto;gap:8px;align-items:center;background:rgba(255,255,255,.08);border-radius:16px;padding:8px}.cart-item img{width:48px;height:48px;border-radius:12px;object-fit:cover}.cart-item button{width:auto;margin:0;border:0;border-radius:10px;padding:8px;background:#fee2e2;color:#991b1b}.cart-checkout{display:grid;gap:9px;margin-top:14px}.cart-checkout input,.cart-checkout textarea{width:100%;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.08);color:#fff;padding:12px}.cart-checkout button{border:0;border-radius:15px;background:#22c55e;color:#fff;padding:13px;font-weight:900}.cart-empty{background:rgba(255,255,255,.08);padding:16px;border-radius:16px;text-align:center}

/* v32: stable form typing + clear field colors */
.smart-form label,.smart-form-fieldset legend{color:#000!important;font-weight:800;}
.smart-form input,.smart-form textarea,.smart-form select{color:#6b7280!important;background:#fff!important;}
.smart-form input::placeholder,.smart-form textarea::placeholder{color:#9ca3af!important;}
.smart-form .check-line,.smart-form .radio-line{color:#6b7280!important;background:#fff!important;border:1px solid #e5e7eb!important;}
.advanced-mini-table{table-layout:auto!important;min-width:100%;}
.advanced-mini-table th,.advanced-mini-table td{transition:.18s ease;}
.table-actions-mini{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.table-actions-mini button{padding:9px 11px!important;border-radius:12px!important}
.table-builder-grid{grid-auto-flow:row;direction:rtl}.table-builder-grid input{background:#fff!important;color:#374151!important;border:1px solid #dbeafe!important}.table-style-list{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:10px;margin-top:10px}.table-style-row{display:grid;grid-template-columns:70px repeat(5,minmax(72px,1fr));gap:8px;align-items:end;background:rgba(255,255,255,.06);padding:8px;border-radius:14px;margin:8px 0}.table-style-row span{font-weight:900;color:#bfdbfe}.table-style-row label{font-size:11px;color:#dbeafe}.table-style-row input{margin:4px 0 0!important;padding:7px!important;min-height:34px}
@media(max-width:700px){.table-style-row{grid-template-columns:1fr 1fr}.table-style-row span{grid-column:1/-1}.table-actions-mini{display:grid;grid-template-columns:1fr;width:100%}}

/* v33 public form colors and verified table rendering */
.smart-form label,.smart-form-fieldset legend{color:#000!important;font-weight:800!important;}
.smart-form input,.smart-form textarea,.smart-form select{color:#6b7280!important;background:#fff!important;border:1px solid #d1d5db!important;caret-color:#111827!important;}
.smart-form input::placeholder,.smart-form textarea::placeholder{color:#9ca3af!important;}
.smart-form .check-line,.smart-form .radio-line{color:#6b7280!important;background:#fff!important;border:1px solid #e5e7eb!important;}
.advanced-mini-table{border-collapse:separate!important;border-spacing:0!important;}
.advanced-mini-table th,.advanced-mini-table td{border:1px solid rgba(255,255,255,.25)!important;}
.blog-list-public{width:100%;height:100%;overflow:auto;display:grid;gap:12px;padding:4px}.blog-card-public{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:18px;overflow:hidden;color:inherit;text-decoration:none;box-shadow:0 14px 35px rgba(0,0,0,.18);animation:fade .45s ease both}.blog-card-public img{width:100%;height:120px;object-fit:cover;display:block}.blog-card-public div{padding:12px}.blog-card-public h3{margin:0 0 6px;font-size:17px}.blog-card-public p{margin:0;font-size:12px;opacity:.8}.blog-post-page{min-height:100vh;background:var(--page-bg,linear-gradient(145deg,#111827,#2563eb));padding:14px;color:#fff}.blog-post-card{max-width:430px;margin:auto;background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.18);border-radius:28px;padding:18px;box-shadow:0 24px 80px rgba(0,0,0,.28);backdrop-filter:blur(16px)}.blog-post-card h1{font-size:28px;line-height:1.3}.blog-post-cover{width:100%;object-fit:cover;border-radius:22px;margin:10px 0}.blog-content{line-height:1.9;color:#fff}.blog-content img{max-width:100%;height:auto}.share-row{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.share-row a,.share-row button{border:0;border-radius:14px;background:#fff;color:#111827;text-decoration:none;padding:10px 12px;font-weight:700}.blog-element-empty{display:grid;place-items:center;height:100%;background:rgba(255,255,255,.09);border-radius:18px;padding:12px;text-align:center}

.custom-cart-btn{width:100%!important;height:100%!important;border:0!important;border-radius:inherit!important;background:transparent!important;color:inherit!important;box-shadow:none!important;cursor:pointer}.custom-cart-btn svg{width:52%;height:52%}.cart-element{overflow:visible!important}.cart-element::after{content:''!important;display:none!important}.custom-cart-btn .cart-badge{top:-8px;left:-8px}.cart-element .element-text{display:none!important}


/* v42 countdown element */
.pro-countdown,.countdown-editor-preview{width:100%;height:100%;display:grid;align-content:center;gap:12px;text-align:center;position:relative;overflow:hidden;padding:14px;border-radius:inherit;color:inherit}
.pro-countdown::before,.countdown-editor-preview::before{content:"";position:absolute;inset:-40%;background:radial-gradient(circle at 30% 20%, color-mix(in srgb,var(--cd-glow,#38bdf8) 45%, transparent), transparent 34%),radial-gradient(circle at 80% 80%, rgba(255,255,255,.16), transparent 28%);animation:cdSpin 14s linear infinite;pointer-events:none}
@keyframes cdSpin{to{transform:rotate(360deg)}}
.cd-orbit{width:52px;height:52px;margin:auto;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);box-shadow:0 0 28px color-mix(in srgb,var(--cd-glow,#38bdf8) 45%, transparent);position:relative;z-index:1}.cd-orbit svg{width:28px;height:28px;stroke:currentColor;fill:none;stroke-width:2}.pro-countdown>strong,.countdown-editor-preview>strong{position:relative;z-index:1;font-size:18px}.cd-digits{position:relative;z-index:1;display:grid;grid-template-columns:repeat(4,1fr);gap:7px;direction:ltr}.cd-digits span{min-width:0;border-radius:18px;background:linear-gradient(180deg,rgba(255,255,255,.18),rgba(255,255,255,.07));border:1px solid rgba(255,255,255,.2);padding:10px 4px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}.cd-digits b{display:block;font-size:24px;line-height:1;font-variant-numeric:tabular-nums}.cd-digits em{display:block;margin-top:5px;font-size:10px;font-style:normal;opacity:.82}.pro-countdown small,.countdown-editor-preview small{position:relative;z-index:1;opacity:.82}.countdown-done{display:grid;place-items:center;gap:8px;padding:12px;border-radius:20px;background:rgba(16,185,129,.16);border:1px solid rgba(52,211,153,.32);position:relative;z-index:1}.countdown-done svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:2}.countdown-finished-content{position:relative;z-index:1;width:100%;border-radius:22px;overflow:hidden;background:rgba(255,255,255,.08);margin-top:4px}

/* v46 public popup/blog/share polish */
.unified-popup-trigger{display:inline-grid;grid-auto-flow:column;align-items:center;justify-content:center;gap:8px;min-width:54px;min-height:54px;border-radius:18px!important;padding:10px!important;background:linear-gradient(135deg,#2563eb,#06b6d4)!important;color:#fff!important;box-shadow:0 16px 38px rgba(37,99,235,.28)!important;border:1px solid rgba(255,255,255,.35)!important}.unified-popup-trigger svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2}.global-popup-icon{width:42px;height:42px;object-fit:contain;display:block}.sr-only{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}.smart-popup-box{border:1px solid rgba(255,255,255,.18);box-shadow:0 30px 90px rgba(0,0,0,.45)}.smart-popup-close{background:#fff!important;color:#0f172a!important;box-shadow:0 10px 30px rgba(0,0,0,.18)}
.blog-list-public{display:grid;gap:14px}.blog-card-public{display:grid;grid-template-columns:92px 1fr;gap:12px;align-items:center;text-decoration:none;background:rgba(255,255,255,.92);border:1px solid rgba(226,232,240,.95);border-radius:22px;padding:12px;box-shadow:0 16px 40px rgba(15,23,42,.10);color:#0f172a}.blog-card-public img{width:92px;height:76px;object-fit:cover;border-radius:16px}.blog-card-public h3{margin:0 0 4px;font-size:16px;color:#0f172a;line-height:1.5}.blog-card-public p{margin:0;color:#2563eb;font-weight:800;font-size:12px}.blog-post-page{min-height:100vh;padding:22px;background:linear-gradient(135deg,#f8fafc,#e0f2fe)}.blog-post-card{max-width:780px;margin:auto;background:#fff;border:1px solid #e2e8f0;border-radius:30px;padding:24px;box-shadow:0 24px 70px rgba(15,23,42,.12);color:#0f172a}.blog-post-cover{display:block;margin:0 auto 18px;object-fit:cover;border-radius:24px}.blog-post-card h1{font-size:clamp(26px,5vw,42px);line-height:1.45;color:#0f172a}.blog-content{line-height:2.05;color:#1f2937;font-size:18px}.share-row{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.share-row a,.share-row button{border:0;border-radius:14px;padding:10px 14px;background:#eff6ff;color:#1d4ed8;font-weight:900;text-decoration:none;cursor:pointer}

/* v48: rich text rendering for public pages */
.rich-text-render{display:block;align-items:initial;justify-content:initial;line-height:1.85;overflow:auto;padding:8px;word-break:break-word;white-space:normal}
.rich-text-render p,.rich-text-render div,.rich-text-render h1,.rich-text-render h2,.rich-text-render h3,.rich-text-render h4,.rich-text-render h5,.rich-text-render h6,.rich-text-render blockquote,.rich-text-render ul,.rich-text-render ol{display:block;width:100%;max-width:100%;flex:0 0 100%}
.rich-text-render br{display:block;content:""}
.rich-text-render h1{font-size:2em;line-height:1.25;margin:.25em 0 .45em;font-weight:900}
.rich-text-render h2{font-size:1.6em;line-height:1.35;margin:.25em 0 .45em;font-weight:900}
.rich-text-render h3{font-size:1.3em;line-height:1.45;margin:.2em 0 .4em;font-weight:850}
.rich-text-render p{margin:.35em 0}
.rich-text-render ul,.rich-text-render ol{margin:.5em 1.4em .5em 0;padding:0 1.25em 0 0;text-align:inherit}
.rich-text-render blockquote{margin:10px 0;padding:12px 14px;border-inline-start:4px solid currentColor;background:rgba(148,163,184,.14);border-radius:14px;font-weight:700}
.rich-text-render img{max-width:100%;border-radius:16px;display:inline-block;vertical-align:middle}
.rich-text-render hr{border:0;border-top:2px solid currentColor;opacity:.25;margin:14px 0}
.inline-rich-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 16px;border-radius:999px;background:#2563eb;color:#fff!important;text-decoration:none!important;font-weight:900;box-shadow:0 10px 24px rgba(37,99,235,.28);margin:2px 4px}

/* v49 - صفحة تتبع الطلب التلقائية */
.track-public-body{min-height:100vh;margin:0;background:radial-gradient(circle at top right,#dbeafe 0,#f8fafc 38%,#eef2ff 100%);font-family:'Tajawal','Cairo',system-ui,sans-serif;color:#0f172a;display:flex;align-items:center;justify-content:center;padding:24px;box-sizing:border-box}
.track-public-card{width:min(960px,100%);background:rgba(255,255,255,.94);border:1px solid rgba(148,163,184,.28);border-radius:34px;box-shadow:0 24px 80px rgba(15,23,42,.14);padding:24px;box-sizing:border-box;overflow:hidden}
.track-hero{position:relative;background:linear-gradient(135deg,#0f172a,#1d4ed8 55%,#06b6d4);border-radius:28px;padding:28px;color:#fff;overflow:hidden}.track-hero:after{content:'';position:absolute;inset:auto -80px -110px auto;width:260px;height:260px;border-radius:999px;background:rgba(255,255,255,.16)}
.track-hero span{display:inline-flex;padding:7px 13px;border-radius:999px;background:rgba(255,255,255,.16);font-weight:800}.track-hero h1{font-size:clamp(28px,7vw,52px);margin:16px 0 8px}.track-hero p{margin:0;max-width:620px;color:#e0f2fe;line-height:1.9}.track-current{display:inline-flex;margin-top:18px;background:#fff;color:#0f172a;border-radius:18px;padding:12px 18px;font-size:18px;box-shadow:0 12px 30px rgba(15,23,42,.18)}
.track-timeline{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:22px 0}.track-step{position:relative;background:#f8fafc;border:1px solid #e2e8f0;border-radius:22px;padding:18px 16px 16px;min-height:112px}.track-step i{display:flex;width:28px;height:28px;border-radius:50%;background:#cbd5e1;margin-bottom:10px;box-shadow:inset 0 0 0 6px #f8fafc}.track-step.done{background:#eff6ff;border-color:#bfdbfe}.track-step.done i{background:#2563eb}.track-step.current{background:#ecfeff;border-color:#67e8f9;box-shadow:0 16px 42px rgba(6,182,212,.18)}.track-step.current i{background:#06b6d4}.track-step b{display:block;font-size:16px}.track-step small{display:block;margin-top:7px;color:#475569;line-height:1.7}
.track-info-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.track-info-grid div{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:16px}.track-info-grid span{display:block;color:#64748b;font-size:13px;margin-bottom:8px}.track-info-grid b{font-size:17px;color:#0f172a;word-break:break-word}
.track-products{background:#f8fafc;border:1px solid #e2e8f0;border-radius:24px;padding:18px}.track-products h2{margin:0 0 14px}.track-products article{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #e5e7eb;border-radius:18px;padding:10px 12px;margin-bottom:10px}.track-products img{width:54px;height:54px;object-fit:cover;border-radius:14px}.track-products span{flex:1;font-weight:800}.track-products b{direction:ltr;color:#1d4ed8}.track-share{width:100%;margin-top:18px;border:0;border-radius:20px;padding:15px 18px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:white;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 18px 42px rgba(37,99,235,.22)}
@media(max-width:760px){.track-public-body{padding:12px;align-items:flex-start}.track-public-card{border-radius:26px;padding:14px}.track-hero{border-radius:22px;padding:22px}.track-timeline,.track-info-grid{grid-template-columns:1fr}.track-step{min-height:auto}.track-products article{align-items:flex-start}.track-products img{width:48px;height:48px}}

/* v60 live whiteboard element */
.live-whiteboard{position:relative;width:100%;height:100%;min-height:220px;overflow:hidden;border-radius:inherit;background:#fff;color:#0f172a;box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)}
.whiteboard-toolbar{position:absolute;z-index:4;top:10px;left:10px;right:10px;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:7px;background:rgba(255,255,255,.82);backdrop-filter:blur(14px);border:1px solid rgba(37,99,235,.14);border-radius:18px;box-shadow:0 12px 30px rgba(15,23,42,.12)}
.whiteboard-toolbar button{width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;background:#f1f5f9;color:#0f172a;cursor:pointer;transition:.18s ease}
.whiteboard-toolbar button.active{background:var(--wb-accent,#2563eb);color:#fff;box-shadow:0 8px 20px rgba(37,99,235,.28)}
.whiteboard-toolbar svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.whiteboard-toolbar input[type=color]{width:34px;height:34px;padding:0;border:0;background:transparent;cursor:pointer}
.whiteboard-toolbar input[type=range]{width:86px;accent-color:var(--wb-accent,#2563eb)}
.wb-state{margin-inline-start:auto;font-size:11px;font-weight:800;color:#16a34a;background:#dcfce7;padding:7px 10px;border-radius:999px}
.whiteboard-canvas-shell{position:absolute;inset:0;background:radial-gradient(circle at 20% 10%,rgba(37,99,235,.08),transparent 28%),#fff;touch-action:none}
.whiteboard-canvas-shell canvas{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none}
.whiteboard-hint{position:absolute;z-index:3;right:14px;bottom:12px;background:rgba(15,23,42,.72);color:#fff;border-radius:999px;padding:7px 10px;font-size:11px;backdrop-filter:blur(10px)}

/* v61 whiteboard improved controls */
.whiteboard-toolbar .wb-field{display:inline-flex;align-items:center;gap:6px;height:34px;padding:3px 8px;border-radius:999px;background:rgba(248,250,252,.92);border:1px solid rgba(15,23,42,.08);font-size:11px;color:#475569}
.whiteboard-toolbar .wb-field span{font-weight:700;white-space:nowrap}.whiteboard-toolbar .wb-field b{min-width:22px;text-align:center;color:#0f172a;font-size:11px}.whiteboard-toolbar .wb-field select{height:26px;border:0;background:transparent;color:#0f172a;font-weight:700;outline:none;cursor:pointer}.whiteboard-toolbar .wb-color input[type=color]{width:26px;height:26px;border-radius:50%;overflow:hidden}.whiteboard-toolbar .wb-size input[type=range]{width:110px}.whiteboard-toolbar .wb-state{margin-inline-start:auto}
@media(max-width:640px){.whiteboard-toolbar{gap:5px}.whiteboard-toolbar .wb-field{height:32px;padding:2px 6px}.whiteboard-toolbar .wb-field span{display:none}.whiteboard-toolbar .wb-size input[type=range]{width:74px}.whiteboard-toolbar .wb-brush select{max-width:76px}}

/* v62 whiteboard performance + collapsed advanced tools */
.live-whiteboard .whiteboard-tools-toggle{position:absolute;z-index:7;top:12px;left:12px;display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 13px;border:0;border-radius:999px;background:var(--wb-accent,#2563eb);color:#fff;font-weight:900;box-shadow:0 14px 34px rgba(37,99,235,.28);cursor:pointer;transition:.18s ease}
.live-whiteboard .whiteboard-tools-toggle:hover{transform:translateY(-1px);filter:brightness(1.04)}
.live-whiteboard .whiteboard-tools-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.live-whiteboard .whiteboard-toolbar{top:58px;left:12px;right:12px;padding:0;background:transparent;border:0;box-shadow:none;pointer-events:none}
.live-whiteboard .wb-tools-panel{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;padding:9px;background:rgba(255,255,255,.9);backdrop-filter:blur(18px);border:1px solid rgba(37,99,235,.14);border-radius:20px;box-shadow:0 16px 42px rgba(15,23,42,.14);pointer-events:auto;transform-origin:top left;transition:.18s ease}
.live-whiteboard.wb-tools-collapsed .wb-tools-panel{opacity:0;transform:scale(.96) translateY(-8px);visibility:hidden;pointer-events:none}
.live-whiteboard .wb-tool-group{display:inline-flex;align-items:center;gap:5px;padding:4px;border-radius:999px;background:rgba(241,245,249,.92);border:1px solid rgba(15,23,42,.07)}
.live-whiteboard .whiteboard-toolbar button{width:34px;height:34px;border:0;border-radius:50%;display:grid;place-items:center;background:#f8fafc;color:#0f172a;cursor:pointer;transition:.16s ease}
.live-whiteboard .whiteboard-toolbar button:hover{transform:translateY(-1px);background:#e2e8f0}
.live-whiteboard .whiteboard-toolbar button.active{background:var(--wb-accent,#2563eb);color:#fff;box-shadow:0 10px 22px rgba(37,99,235,.24)}
.live-whiteboard .whiteboard-toolbar .wb-field{height:36px;background:rgba(248,250,252,.96);border-color:rgba(15,23,42,.08)}
.live-whiteboard .whiteboard-toolbar .wb-opacity input[type=range]{width:92px;accent-color:var(--wb-accent,#2563eb)}
.live-whiteboard .whiteboard-toolbar .wb-size input[type=range]{width:110px;accent-color:var(--wb-accent,#2563eb)}
.whiteboard-canvas-shell canvas.wb-overlay{pointer-events:none;z-index:2}
.whiteboard-canvas-shell canvas:not(.wb-overlay){z-index:1}
@media(max-width:720px){.live-whiteboard .wb-tools-panel{gap:6px;max-height:260px;overflow:auto}.live-whiteboard .whiteboard-toolbar .wb-field span{display:none}.live-whiteboard .whiteboard-toolbar .wb-opacity input[type=range],.live-whiteboard .whiteboard-toolbar .wb-size input[type=range]{width:78px}.live-whiteboard .whiteboard-tools-toggle span{display:none}.live-whiteboard .whiteboard-tools-toggle{width:40px;padding:0;justify-content:center}}


/* v63 whiteboard tools cleanup: icon-only button, no fixed blurry rectangle, close panel on outside click */
.live-whiteboard .whiteboard-tools-toggle{width:42px!important;height:42px!important;padding:0!important;justify-content:center!important;gap:0!important;border-radius:50%!important;line-height:1!important}
.live-whiteboard .whiteboard-tools-toggle span{display:none!important}
.live-whiteboard .whiteboard-tools-toggle svg{width:20px!important;height:20px!important}
.live-whiteboard .whiteboard-toolbar{position:absolute!important;z-index:8!important;top:62px!important;left:12px!important;right:12px!important;display:block!important;height:auto!important;min-height:0!important;padding:0!important;background:transparent!important;background-image:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;pointer-events:none!important;overflow:visible!important}
.live-whiteboard .whiteboard-toolbar:before,.live-whiteboard .whiteboard-toolbar:after{content:none!important;display:none!important}
.live-whiteboard.wb-tools-collapsed .whiteboard-toolbar{height:0!important;min-height:0!important;overflow:visible!important}
.live-whiteboard .wb-tools-panel{max-width:min(100%,980px);width:auto!important;display:inline-flex!important;pointer-events:auto!important}
.live-whiteboard.wb-tools-collapsed .wb-tools-panel{display:flex!important;opacity:0!important;visibility:hidden!important;pointer-events:none!important;transform:scale(.94) translateY(-10px)!important}
.whiteboard-canvas-shell{z-index:1!important}
.live-whiteboard .whiteboard-hint{z-index:3!important}
@media(max-width:720px){.live-whiteboard .whiteboard-tools-toggle{width:40px!important;height:40px!important}.live-whiteboard .whiteboard-toolbar{top:58px!important}.live-whiteboard .wb-tools-panel{max-width:calc(100vw - 44px);width:100%!important}}

/* v65 whiteboard JPEG download + remove lower hint text */
.live-whiteboard .whiteboard-hint{display:none!important}
.live-whiteboard .whiteboard-toolbar [data-action="download"]{background:#ecfeff;color:#0e7490}
.live-whiteboard .whiteboard-toolbar [data-action="download"]:hover{background:#cffafe;transform:translateY(-1px)}

/* v66 whiteboard fill tool + polished interactive tools */
.live-whiteboard .wb-tools-panel{
  gap:10px!important;
  padding:11px!important;
  border-radius:24px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(241,245,249,.92))!important;
  border:1px solid rgba(37,99,235,.18)!important;
  box-shadow:0 18px 48px rgba(15,23,42,.18)!important;
}
.live-whiteboard .wb-tool-group{gap:7px!important;padding:6px!important;background:rgba(255,255,255,.78)!important;box-shadow:inset 0 0 0 1px rgba(15,23,42,.05)}
.live-whiteboard .whiteboard-toolbar button{
  position:relative;width:38px!important;height:38px!important;border-radius:999px!important;
  border:1px solid rgba(15,23,42,.08)!important;background:#fff!important;color:#0f172a!important;
  box-shadow:0 7px 18px rgba(15,23,42,.08)!important;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease!important;
}
.live-whiteboard .whiteboard-toolbar button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.live-whiteboard .whiteboard-toolbar button:hover{transform:translateY(-2px) scale(1.03)!important;box-shadow:0 12px 24px rgba(15,23,42,.14)!important;background:#f8fafc!important}
.live-whiteboard .whiteboard-toolbar button:active{transform:translateY(0) scale(.96)!important}
.live-whiteboard .whiteboard-toolbar button.active{
  background:linear-gradient(135deg,var(--wb-accent,#2563eb),#7c3aed)!important;color:#fff!important;
  box-shadow:0 14px 28px rgba(37,99,235,.32)!important;border-color:rgba(255,255,255,.38)!important;
}
.live-whiteboard .whiteboard-toolbar button.active:after{
  content:'';position:absolute;inset:-5px;border-radius:inherit;border:2px solid rgba(37,99,235,.22);animation:wbPick .9s ease both;
}
.live-whiteboard .wb-field{
  display:inline-flex!important;align-items:center!important;gap:8px!important;height:40px!important;margin:0!important;
  padding:6px 10px!important;border-radius:999px!important;background:rgba(255,255,255,.9)!important;
  border:1px solid rgba(15,23,42,.08)!important;color:#0f172a!important;box-shadow:0 8px 20px rgba(15,23,42,.07)!important;
}
.live-whiteboard .wb-field span{font-size:12px;font-weight:800;color:#334155}.live-whiteboard .wb-field b{font-size:11px;color:#475569;min-width:34px;text-align:center}
.live-whiteboard .wb-brush select{height:30px!important;min-width:92px!important;padding:2px 8px!important;margin:0!important;border-radius:999px!important;border:1px solid rgba(15,23,42,.1)!important;background:#fff!important;color:#0f172a!important}
.live-whiteboard .wb-state{align-self:center;padding:9px 12px;border-radius:999px;background:#dcfce7;color:#166534;font-size:12px;font-weight:900;border:1px solid rgba(22,101,52,.12)}
@keyframes wbPick{from{opacity:.9;transform:scale(.72)}to{opacity:0;transform:scale(1.25)}}
@media(max-width:720px){.live-whiteboard .wb-tools-panel{max-height:285px!important;overflow:auto!important}.live-whiteboard .whiteboard-toolbar button{width:36px!important;height:36px!important}.live-whiteboard .wb-field{height:38px!important}.live-whiteboard .wb-field span{display:none!important}}

/* v71 live voice chat element */


.live-voice-chat{width:100%;height:100%;box-sizing:border-box;display:flex;flex-direction:column;gap:12px;justify-content:center;padding:18px;border-radius:inherit;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(37,99,235,.84));color:#fff;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.live-voice-chat .vc-head{display:flex;align-items:center;gap:12px}.live-voice-chat .vc-mic-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:18px;background:rgba(255,255,255,.15);box-shadow:0 14px 32px rgba(0,0,0,.18)}
.live-voice-chat svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.live-voice-chat strong{display:block;font-size:18px;font-weight:900;line-height:1.35}.live-voice-chat small{display:block;color:rgba(255,255,255,.78);font-size:12px;line-height:1.55;margin-top:2px}.live-voice-chat .vc-mini-status.ok{color:#bbf7d0}
.live-voice-chat .vc-main-line{display:grid;grid-template-columns:minmax(90px,1fr) 42px 42px minmax(90px,1.1fr);align-items:center;gap:8px;padding:8px;border-radius:20px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14)}
.live-voice-chat .vc-name{height:42px;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:rgba(255,255,255,.94);color:#0f172a;padding:0 12px;font-weight:900;outline:none;min-width:0}.live-voice-chat .vc-name:focus{box-shadow:0 0 0 4px rgba(255,255,255,.18)}.live-voice-chat .vc-name[readonly]{background:rgba(255,255,255,.18);color:#fff;border-color:rgba(255,255,255,.16)}
.live-voice-chat button{width:42px;height:42px;border:0;border-radius:15px;padding:0;display:grid;place-items:center;font-weight:900;cursor:pointer;transition:.18s ease}.live-voice-chat .vc-start{background:#22c55e;color:#062b15;box-shadow:0 14px 30px rgba(34,197,94,.28)}.live-voice-chat .vc-start:hover{transform:translateY(-1px);filter:brightness(1.04)}.live-voice-chat .vc-start:disabled{opacity:.65;cursor:wait;transform:none}.live-voice-chat .vc-stop{background:#fee2e2;color:#991b1b}.live-voice-chat button svg{width:20px;height:20px}
.live-voice-chat .vc-meter{height:14px;min-width:78px;border-radius:999px;background:rgba(2,6,23,.38);overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:inset 0 1px 2px rgba(0,0,0,.18)}.live-voice-chat .vc-meter i{display:block;width:0%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#eab308,#ef4444);transition:width .08s linear}.live-voice-chat.vc-speaking .vc-mic-icon{box-shadow:0 0 0 6px rgba(34,197,94,.18),0 14px 32px rgba(0,0,0,.18)}
.live-voice-chat .vc-people{display:flex;gap:7px;flex-wrap:wrap}.live-voice-chat .vc-person,.live-voice-chat .vc-empty{display:inline-flex;align-items:center;min-height:28px;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12px;font-weight:800}.live-voice-chat .vc-person.me{background:rgba(34,197,94,.22);color:#dcfce7}.live-voice-chat .vc-empty{color:rgba(255,255,255,.74)}.live-voice-chat .vc-audios{display:none}
@media(max-width:640px){.live-voice-chat{padding:14px;gap:9px}.live-voice-chat .vc-mic-icon{width:42px;height:42px;border-radius:15px}.live-voice-chat strong{font-size:16px}.live-voice-chat .vc-main-line{grid-template-columns:1fr 42px 42px;}.live-voice-chat .vc-meter{grid-column:1/-1}}

/* v73: voice chat participants, meters and mute controls */
.live-voice-chat .vc-people{align-items:center;max-height:92px;overflow:auto;padding:2px;scrollbar-width:thin}
.live-voice-chat .vc-person{gap:7px;border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(10px);box-shadow:0 10px 22px rgba(2,6,23,.12)}
.live-voice-chat .vc-person b{max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:1}
.live-voice-chat .vc-person em{font-style:normal;font-size:10px;color:rgba(255,255,255,.72)}
.live-voice-chat .vc-person.speaker{background:rgba(255,255,255,.12)}
.live-voice-chat .vc-person.speaker:has(.vc-mini-meter i[style*="width: 0%"]) {opacity:.92}
.live-voice-chat .vc-mini-meter{width:54px;height:8px;border-radius:999px;background:rgba(2,6,23,.38);overflow:hidden;border:1px solid rgba(255,255,255,.12)}
.live-voice-chat .vc-mini-meter i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#22c55e,#f59e0b,#ef4444);transition:width .08s linear}
.live-voice-chat .vc-mute-peer{width:27px;height:27px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:13px;box-shadow:none}
.live-voice-chat .vc-mute-peer:hover{background:rgba(255,255,255,.24);transform:translateY(-1px)}
.live-voice-chat .vc-mute-peer.muted{background:rgba(239,68,68,.30);color:#fee2e2}
.live-voice-chat .vc-audios{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
@media(max-width:640px){.live-voice-chat .vc-people{max-height:120px}.live-voice-chat .vc-person b{max-width:76px}.live-voice-chat .vc-mini-meter{width:46px}}

/* v75: voice chat vertical participants list, without duplicating local user */
.live-voice-chat .vc-people{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:8px !important;
  max-height:150px !important;
  overflow:auto !important;
  padding:4px !important;
}
.live-voice-chat .vc-person,
.live-voice-chat .vc-empty{
  width:100% !important;
  box-sizing:border-box !important;
  justify-content:space-between !important;
  border-radius:16px !important;
}
.live-voice-chat .vc-person b{
  max-width:none !important;
  flex:1 1 auto !important;
}
.live-voice-chat .vc-person.me{
  display:none !important;
}
@media(max-width:640px){
  .live-voice-chat .vc-people{max-height:170px !important;}
}

/* v76: voice chat diagnostics and smoother connection status */
.live-voice-chat .vc-unlock{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:none;font-size:17px}
.live-voice-chat .vc-unlock:hover{background:rgba(255,255,255,.25);transform:translateY(-1px)}
.live-voice-chat .vc-quality{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;align-items:center;padding:8px;border-radius:18px;background:rgba(2,6,23,.22);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(10px)}
.live-voice-chat .vc-quality span{min-height:28px;display:flex;align-items:center;justify-content:center;text-align:center;padding:4px 7px;border-radius:12px;background:rgba(255,255,255,.10);color:rgba(255,255,255,.88);font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.live-voice-chat .vc-q-state{color:#dcfce7!important;background:rgba(34,197,94,.18)!important}
.live-voice-chat .vc-main-line{grid-template-columns:minmax(90px,1fr) 42px 42px 42px minmax(90px,1.1fr)}
@media(max-width:760px){.live-voice-chat .vc-quality{grid-template-columns:repeat(2,minmax(0,1fr))}.live-voice-chat .vc-quality .vc-q-peers{grid-column:1/-1}.live-voice-chat .vc-main-line{grid-template-columns:1fr 42px 42px 42px}.live-voice-chat .vc-meter{grid-column:1/-1}}


/* v77 voice chat professional controls */
.live-voice-chat .vc-main-line{grid-template-columns:minmax(92px,1fr) 42px 42px minmax(90px,1.1fr)!important}
.live-voice-chat .vc-name-display{width:auto!important;min-width:92px;padding:0 12px;border-radius:15px;background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:none;font-size:12px;justify-content:flex-start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-voice-chat .vc-start.is-on{background:#fee2e2;color:#991b1b;box-shadow:0 14px 30px rgba(239,68,68,.25)}
.live-voice-chat .vc-options{background:rgba(255,255,255,.16);color:#fff;border:1px solid rgba(255,255,255,.16);box-shadow:none}
.live-voice-chat .vc-options:hover,.live-voice-chat .vc-name-display:hover{background:rgba(255,255,255,.25);transform:translateY(-1px)}
.live-voice-chat .vc-options-pop{position:absolute;inset:0;z-index:30;display:grid;place-items:center;background:rgba(2,6,23,.38);backdrop-filter:blur(8px);padding:12px}
.live-voice-chat .vc-options-pop[hidden]{display:none!important}
.live-voice-chat .vc-options-card{position:relative;width:min(280px,100%);padding:18px;border-radius:22px;background:rgba(255,255,255,.96);color:#0f172a;box-shadow:0 24px 70px rgba(2,6,23,.35);border:1px solid rgba(15,23,42,.08);display:grid;gap:12px}
.live-voice-chat .vc-options-card strong{color:#0f172a;font-size:16px}.live-voice-chat .vc-options-card label{display:grid;gap:6px;font-size:12px;font-weight:900;color:#334155}.live-voice-chat .vc-options-card input{height:42px;border-radius:14px;border:1px solid #cbd5e1;padding:0 12px;font-weight:900;outline:none}.live-voice-chat .vc-options-card input:focus{box-shadow:0 0 0 4px rgba(37,99,235,.14);border-color:#2563eb}.live-voice-chat .vc-options-close{position:absolute;top:10px;left:10px;width:32px;height:32px;border-radius:50%;background:#f1f5f9;color:#0f172a;box-shadow:none}.live-voice-chat .vc-toggle-output{width:100%;height:42px;border-radius:14px;background:#0f172a;color:#fff;display:flex;align-items:center;justify-content:center;gap:8px}.live-voice-chat .vc-toggle-output.muted{background:#fee2e2;color:#991b1b}.live-voice-chat .vc-mute-peer svg,.live-voice-chat .vc-toggle-output svg{width:17px;height:17px}.live-voice-chat .vc-people{flex-direction:column!important;align-items:stretch!important}.live-voice-chat .vc-person,.live-voice-chat .vc-empty{width:100%;justify-content:space-between;border-radius:16px!important}.live-voice-chat .vc-person.me{display:none!important}
@media(max-width:760px){.live-voice-chat .vc-main-line{grid-template-columns:1fr 42px 42px!important}.live-voice-chat .vc-meter{grid-column:1/-1}}

/* v79 educational session compact admin preview */
body.edu-elements-only{margin:0;background:#f8fafc!important;overflow:hidden!important;min-height:auto!important}
body.edu-elements-only .phone-page{width:auto!important;min-height:auto!important;margin:0!important;padding:10px!important;background:#f8fafc!important;box-shadow:none!important;border-radius:0!important}
body.edu-elements-only .smart-canvas{position:static!important;width:auto!important;height:auto!important;min-height:0!important;display:flex!important;flex-wrap:wrap!important;gap:12px!important;align-items:flex-start!important;justify-content:flex-start!important;background:transparent!important;overflow:visible!important;padding:0!important}
body.edu-elements-only .smart-canvas .el{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:auto!important;height:auto!important;min-width:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;z-index:auto!important;overflow:visible!important}
body.edu-elements-only .smart-canvas .el:has(.live-whiteboard){width:300px!important;height:300px!important}
body.edu-elements-only .smart-canvas .el:has(.voice-chat-widget){width:300px!important;height:450px!important}
body.edu-elements-only .live-whiteboard{width:300px!important;height:300px!important;min-height:300px!important;border-radius:20px!important}
body.edu-elements-only .voice-chat-widget{width:300px!important;height:450px!important;min-height:450px!important;border-radius:20px!important;overflow:auto!important}
.edu-permission-pop{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;background:rgba(15,23,42,.52);backdrop-filter:blur(10px);padding:18px}.edu-permission-card{width:min(390px,100%);border-radius:26px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 30px 90px rgba(15,23,42,.28);padding:22px;text-align:center;position:relative;color:#0f172a;border:1px solid rgba(255,255,255,.65)}.edu-perm-close{position:absolute;top:12px;left:12px;width:34px;height:34px;border:0;border-radius:50%;background:#eef2ff;color:#334155;font-size:22px;cursor:pointer}.edu-perm-icon{width:64px;height:64px;margin:4px auto 12px;border-radius:22px;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;display:grid;place-items:center;box-shadow:0 14px 34px rgba(37,99,235,.25)}.edu-perm-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2}.edu-permission-card h3{margin:0 0 8px;font-size:20px}.edu-permission-card p{margin:0 0 18px;color:#475569;line-height:1.8}.edu-perm-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}.edu-perm-actions button{height:42px;border:0;border-radius:999px;padding:0 16px;font-weight:900;cursor:pointer}.edu-perm-accept{background:#2563eb;color:#fff;box-shadow:0 10px 26px rgba(37,99,235,.22)}.edu-perm-decline{background:#e2e8f0;color:#334155}
body.edu-elements-only .smart-canvas .el-whiteboard{width:300px!important;height:300px!important}
body.edu-elements-only .smart-canvas .el-voice_chat{width:300px!important;height:450px!important}

/* v80 cart order tracking success */
.cart-order-success{display:grid;gap:14px;text-align:center;padding:10px 4px 6px;color:#0f172a}.cart-success-icon{width:66px;height:66px;margin:auto;display:grid;place-items:center;border-radius:24px;background:linear-gradient(135deg,#16a34a,#22c55e);box-shadow:0 20px 45px rgba(34,197,94,.28)}.cart-success-icon svg{width:34px;height:34px;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.cart-order-success h3{margin:0;font-size:24px}.cart-order-success p{margin:0;color:#64748b;line-height:1.8}.cart-success-order{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#f0fdf4;color:#166534;border:1px solid #bbf7d0;border-radius:999px;padding:9px 14px;font-weight:800}.cart-tracking-link{direction:ltr;display:block;word-break:break-all;text-align:center;text-decoration:none;color:#1d4ed8;background:#eff6ff;border:1px solid #bfdbfe;border-radius:18px;padding:13px 14px;font-weight:800}.cart-success-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.cart-success-btn{border:0;border-radius:16px;padding:11px 14px;background:#f1f5f9;color:#0f172a;font-weight:900;cursor:pointer;text-decoration:none}.cart-success-btn.primary{background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;box-shadow:0 16px 35px rgba(37,99,235,.22)}

/* v83 blog post detail polish */
.blog-post-page{background:var(--blog-page-bg,linear-gradient(145deg,#f8fafc,#e0f2fe)) !important;background-size:cover !important;background-position:center !important;background-attachment:fixed;}
.blog-post-topbar{display:flex;justify-content:flex-start;margin-bottom:12px;}
.blog-back-btn{display:inline-flex;align-items:center;gap:8px;border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a;text-decoration:none;border-radius:999px;padding:9px 14px;font-weight:900;box-shadow:0 10px 22px rgba(15,23,42,.08);}
.blog-post-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin:4px 0 18px;}
.blog-post-title-row h1{margin:0;flex:1;}
.blog-share-icon{width:46px;height:46px;min-width:46px;border:0;border-radius:50%;display:inline-grid;place-items:center;cursor:pointer;color:#fff;background:linear-gradient(135deg,#2563eb,#06b6d4);box-shadow:0 16px 34px rgba(37,99,235,.25);transition:transform .18s ease,box-shadow .18s ease;}
.blog-share-icon:hover{transform:translateY(-2px);box-shadow:0 20px 42px rgba(37,99,235,.34);}
.blog-share-icon svg{width:22px;height:22px;display:block;}
.blog-post-card .share-row{display:none!important;}
@media(max-width:560px){.blog-post-title-row{align-items:center}.blog-share-icon{width:42px;height:42px;min-width:42px}.blog-post-card{padding:18px}.blog-post-topbar{margin-bottom:10px}}

.blog-post-date{display:block;margin:0 0 6px;color:#64748b;font-size:12px;font-weight:700}
.blog-post-meta{margin:-4px 0 18px;color:#64748b;font-size:14px;font-weight:700}

/* v85 blog post browser theme + share/back actions */
.blog-post-topbar,.blog-post-bottom-actions{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;flex-wrap:wrap;margin:0 0 16px;}
.blog-post-bottom-actions{margin:24px 0 0;padding-top:18px;border-top:1px solid rgba(226,232,240,.9);}
.blog-action-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;border:0;border-radius:999px;padding:10px 15px;font-weight:900;font-size:14px;text-decoration:none;cursor:pointer;line-height:1;transition:transform .18s ease,box-shadow .18s ease,opacity .18s ease;}
.blog-action-btn:hover{transform:translateY(-1px);opacity:.95;}
.blog-back-btn.blog-action-btn{border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a;box-shadow:0 10px 22px rgba(15,23,42,.08);}
.blog-share-btn{border:1px solid #e2e8f0;background:#f8fafc;color:#0f172a;box-shadow:0 10px 22px rgba(15,23,42,.08);padding-inline:13px;}
.blog-share-btn svg{width:19px;height:19px;display:block;}
.blog-post-title-row{margin:4px 0 8px!important;}
.blog-post-meta{margin:0 0 18px!important;}
@media(max-width:560px){.blog-post-topbar,.blog-post-bottom-actions{gap:8px}.blog-action-btn{flex:1;padding-inline:12px}.blog-post-bottom-actions{position:sticky;bottom:10px;background:rgba(255,255,255,.86);backdrop-filter:blur(12px);border:1px solid rgba(226,232,240,.9);border-radius:18px;padding:10px;box-shadow:0 16px 40px rgba(15,23,42,.12)}}

/* v89 customer contact call button */
.customer-call-widget,.customer-call-button{width:100%;height:100%}.customer-call-button{border:0;border-radius:inherit;background:transparent;color:inherit;display:flex;align-items:center;justify-content:center;gap:9px;font:inherit;font-weight:900;cursor:pointer}.customer-call-button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.customer-call-button img{max-width:100%;max-height:100%;display:block}.customer-call-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;background:rgba(2,6,23,.62);backdrop-filter:blur(10px);padding:18px}.ccv-card{position:relative;width:min(420px,100%);border-radius:28px;background:#fff;color:#0f172a;box-shadow:0 30px 90px rgba(2,6,23,.35);padding:24px;text-align:center}.ccv-x{position:absolute;top:12px;left:12px;width:34px;height:34px;border:0;border-radius:12px;background:#f1f5f9;color:#0f172a;font-size:22px;cursor:pointer}.ccv-icon{width:66px;height:66px;border-radius:24px;margin:4px auto 14px;display:grid;place-items:center;background:linear-gradient(135deg,#16a34a,#22c55e);color:#fff;box-shadow:0 18px 45px rgba(34,197,94,.25)}.ccv-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2}.ccv-card h3{margin:0 0 9px;font-size:21px;line-height:1.6}.ccv-card p{margin:0 0 14px;color:#64748b;line-height:1.8}.ccv-name{width:100%;height:46px;border:1px solid #e2e8f0;border-radius:16px;padding:0 14px;box-sizing:border-box;text-align:center;font-weight:800}.ccv-state{margin:12px 0;padding:11px;border-radius:16px;background:#f8fafc;color:#334155;font-weight:900;line-height:1.7}.ccv-actions{display:flex;gap:9px}.ccv-actions button{flex:1;height:46px;border:0;border-radius:16px;font-weight:900;cursor:pointer}.ccv-start{background:#16a34a;color:#fff}.ccv-end{background:#fee2e2;color:#991b1b}

/* v91 - full screen mobile-like customer call UI */
.customer-call-phone{position:fixed;inset:0;z-index:99999;background:radial-gradient(circle at top,#2f7bff 0,#111827 42%,#050816 100%);display:flex;align-items:stretch;justify-content:center;color:#fff;direction:rtl}
.customer-call-phone .ccv-phone-screen{position:relative;width:100%;height:100%;max-width:520px;margin:auto;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:calc(18px + env(safe-area-inset-top)) 24px calc(22px + env(safe-area-inset-bottom));text-align:center;overflow:hidden}
.customer-call-phone .ccv-phone-screen:before{content:"";position:absolute;inset:10% -30%;background:radial-gradient(circle,rgba(255,255,255,.18),transparent 62%);filter:blur(8px);pointer-events:none}
.customer-call-phone .ccv-x{position:absolute;top:20px;left:20px;width:42px;height:42px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;font-size:24px;z-index:2}
.customer-call-phone .ccv-top{position:relative;z-index:2;width:100%;display:flex;justify-content:center;align-items:center;min-height:40px}.customer-call-phone .ccv-duration{font-size:22px;letter-spacing:2px;font-variant-numeric:tabular-nums;color:#e5edff}
.customer-call-phone .ccv-avatar{position:relative;z-index:2;margin-top:auto;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;box-shadow:0 20px 65px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.22)}
.customer-call-phone .ccv-avatar svg{width:54px;height:54px}.customer-call-phone h3{position:relative;z-index:2;margin:24px 0 8px;font-size:30px;font-weight:900}.customer-call-phone .ccv-question{position:relative;z-index:2;margin:0;line-height:1.8;color:#e9eefc;font-size:16px}.customer-call-phone .ccv-question span{color:#c8d4f3;font-size:14px}.customer-call-phone .ccv-name{position:relative;z-index:2;width:min(360px,100%);border:1px solid rgba(255,255,255,.2);border-radius:18px;background:rgba(255,255,255,.12);color:#fff;padding:14px 16px;outline:none;text-align:center;margin:22px 0 10px}.customer-call-phone .ccv-name::placeholder{color:#cbd5e1}.customer-call-phone .ccv-state{position:relative;z-index:2;min-height:28px;color:#dbeafe;font-weight:700}.customer-call-phone .ccv-wave{position:relative;z-index:2;display:flex;gap:8px;align-items:center;justify-content:center;height:42px;margin:12px 0}.customer-call-phone .ccv-wave i{width:7px;height:18px;border-radius:999px;background:#93c5fd;animation:ccvWave 1s infinite ease-in-out}.customer-call-phone .ccv-wave i:nth-child(2){animation-delay:.15s;height:30px}.customer-call-phone .ccv-wave i:nth-child(3){animation-delay:.3s}.customer-call-phone.phase-ready .ccv-wave,.customer-call-phone.phase-ended .ccv-wave{opacity:.25;animation:none}.customer-call-phone .ccv-actions{position:relative;z-index:2;margin-top:auto;width:100%;display:flex;gap:22px;justify-content:center;align-items:center}.customer-call-phone .ccv-actions button{border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;transition:transform .16s ease,filter .16s ease}.customer-call-phone .ccv-actions button:active{transform:scale(.94)}.customer-call-phone .ccv-actions svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.customer-call-phone .ccv-start{width:86px;height:86px;border-radius:50%;padding:0;background:#22c55e;color:white;font-weight:900;box-shadow:0 20px 44px rgba(34,197,94,.35)}.customer-call-phone .ccv-start span{position:absolute;transform:translateY(62px);font-size:13px;color:#e8fff0}.customer-call-phone .ccv-end{width:86px;height:86px;border-radius:50%;padding:0;background:#ef4444;color:white;font-weight:900;box-shadow:0 18px 42px rgba(239,68,68,.36)}.customer-call-phone .ccv-end span{position:absolute;transform:translateY(62px);font-size:13px;color:#ffe7e7}.customer-call-phone.phase-ringing .ccv-start,.customer-call-phone.phase-active .ccv-start,.customer-call-phone.phase-ended .ccv-start{display:none}.customer-call-phone.phase-active .ccv-question,.customer-call-phone.phase-active .ccv-name{display:none}.customer-call-phone.phase-active .ccv-avatar{animation:ccvPulse 1.8s infinite}.customer-call-phone.phase-ended .ccv-end{width:112px;height:54px;border-radius:999px;padding:0 18px}.customer-call-phone.phase-ended .ccv-end span{position:static;transform:none;color:#fff}.customer-call-phone.phase-ended .ccv-question,.customer-call-phone.phase-ended .ccv-name{display:none}@keyframes ccvWave{0%,100%{transform:scaleY(.55);opacity:.55}50%{transform:scaleY(1.25);opacity:1}}@keyframes ccvPulse{0%,100%{box-shadow:0 20px 65px rgba(0,0,0,.28),0 0 0 0 rgba(96,165,250,.35)}50%{box-shadow:0 20px 65px rgba(0,0,0,.28),0 0 0 22px rgba(96,165,250,0)}}


/* v93 - force real circular call controls and override older shared button styles */
.customer-call-phone .ccv-actions .ccv-start,
.customer-call-phone .ccv-actions .ccv-end{
  flex:0 0 86px !important;
  width:86px !important;
  min-width:86px !important;
  max-width:86px !important;
  height:86px !important;
  min-height:86px !important;
  max-height:86px !important;
  aspect-ratio:1/1;
  border-radius:9999px !important;
  padding:0 !important;
  box-sizing:border-box;
}
.customer-call-phone.phase-ended .ccv-actions .ccv-end{
  flex:0 0 112px !important;
  width:112px !important;
  max-width:112px !important;
  min-width:112px !important;
  height:54px !important;
  min-height:54px !important;
  max-height:54px !important;
  border-radius:9999px !important;
}
.cc-no-record{display:inline-flex;align-items:center;justify-content:center;min-height:42px;border-radius:14px;background:#f8fafc;color:#64748b;font-weight:800;padding:0 14px;border:1px dashed #cbd5e1;white-space:nowrap}

/* v96: تحسين واجهة اتصال المتصل وإظهار مخرج الصوت واسم الموظف */
.customer-call-phone .ccv-top{justify-content:space-between!important;gap:10px;color:#fff;font-weight:800}
.customer-call-phone .ccv-agent-name{min-width:0;max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f8fafc;font-size:13px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 10px}
.customer-call-phone .ccv-output{width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.22);background:rgba(255,255,255,.12);color:#fff;font-size:20px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;flex:0 0 42px}
.customer-call-phone .ccv-actions .ccv-start,
.customer-call-phone .ccv-actions .ccv-end{flex:0 0 86px!important;width:86px!important;height:86px!important;min-width:86px!important;max-width:86px!important;min-height:86px!important;max-height:86px!important;aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;line-height:1!important;box-sizing:border-box!important;overflow:visible!important;position:relative!important}
.customer-call-phone .ccv-actions .ccv-start svg,
.customer-call-phone .ccv-actions .ccv-end svg{display:block;flex:0 0 auto}
.customer-call-phone.phase-ended .ccv-actions .ccv-end{flex-basis:112px!important;width:112px!important;max-width:112px!important;height:54px!important;min-height:54px!important;max-height:54px!important;aspect-ratio:auto!important;border-radius:999px!important}

/* v97 - إزالة زر مخرج الصوت وتحسين وضوح حالة الاتصال */
.customer-call-phone .ccv-output{display:none!important}
.customer-call-phone .ccv-top{justify-content:center!important;gap:12px!important}
.customer-call-phone .ccv-agent-name{max-width:62%!important;color:#ffffff!important;background:rgba(15,23,42,.46)!important;border-color:rgba(255,255,255,.32)!important;box-shadow:0 10px 28px rgba(0,0,0,.18);font-weight:900!important;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.customer-call-phone .ccv-duration{color:#ffffff!important;background:rgba(15,23,42,.46);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:7px 12px;text-shadow:0 1px 2px rgba(0,0,0,.35)}
.customer-call-phone .ccv-state{display:inline-flex!important;align-items:center;justify-content:center;min-height:38px;margin-top:10px;padding:10px 15px!important;border-radius:999px!important;background:rgba(255,255,255,.94)!important;color:#0f172a!important;border:1px solid rgba(255,255,255,.75)!important;box-shadow:0 16px 38px rgba(0,0,0,.22)!important;font-weight:950!important;text-shadow:none!important;line-height:1.6!important}
.customer-call-phone.phase-ringing .ccv-state{background:#fef3c7!important;color:#78350f!important;border-color:#fde68a!important}
.customer-call-phone.phase-active .ccv-state{background:#dcfce7!important;color:#14532d!important;border-color:#86efac!important}
.customer-call-phone.phase-ended .ccv-state{background:#fee2e2!important;color:#7f1d1d!important;border-color:#fecaca!important}

/* v98: زر كتم الصوت في واجهة المتصل */
.customer-call-phone .ccv-actions .ccv-mute{flex:0 0 74px!important;width:74px!important;height:74px!important;min-width:74px!important;max-width:74px!important;min-height:74px!important;max-height:74px!important;aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;line-height:1!important;box-sizing:border-box!important;overflow:visible!important;position:relative!important;background:rgba(255,255,255,.16)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:0 14px 34px rgba(15,23,42,.28)!important}
.customer-call-phone .ccv-actions .ccv-mute svg{width:25px;height:25px;display:block;flex:0 0 auto}
.customer-call-phone .ccv-actions .ccv-mute span{position:absolute;transform:translateY(55px);font-size:12px;color:#eef2ff;font-weight:900;white-space:nowrap}
.customer-call-phone .ccv-actions .ccv-mute.muted{background:#f59e0b!important;color:#111827!important}
.customer-call-phone.phase-ready .ccv-mute{display:none!important}
.customer-call-phone.phase-ended .ccv-mute{display:none!important}

/* v106: fixed elements stay clear of Lampa credit */
.el.is-fixed-safe{position:fixed!important;right:auto!important;bottom:auto!important;margin:0!important;max-width:100vw;max-height:calc(100svh - 46px);will-change:transform,opacity,top,left}.el.is-fixed-safe:hover{z-index:9990}.lampa-credit{z-index:99999!important}

/* v115: exact rich text rendering + zero-gap fixed corners */
.rich-text-render{
  display:block!important;
  align-items:initial!important;
  justify-content:initial!important;
  text-align:inherit;
  white-space:pre-wrap!important;
  line-height:1.85;
  overflow:auto;
  word-break:normal;
  overflow-wrap:anywhere;
}
.rich-text-render *{max-width:100%;box-sizing:border-box;line-height:inherit;white-space:inherit;word-break:inherit;overflow-wrap:inherit}
.rich-text-render p,.rich-text-render div{margin:.28em 0;min-height:1em}
.rich-text-render br{display:block!important;content:""!important;margin:0!important}
.rich-text-render span{display:inline!important}
.el.rich-text-render{padding:var(--el-padding,8px)}
.el.is-fixed-safe{margin:0!important;inset:auto;max-width:100vw!important;max-height:100svh!important}

/* v116: public desktop target support */
body.desktop-public{margin:0;background:#020617;color:#fff;overflow-x:auto}
.desktop-public .phone-page{display:block;min-height:100vh;padding:0;background:#020617}
.desktop-public .smart-canvas{width:min(1200px,100%)!important;max-width:1200px!important;margin:0 auto!important;border-radius:0!important;min-height:100vh!important;height:auto!important;overflow:visible!important;box-shadow:none!important;background-size:cover!important;background-position:center!important}
.desktop-public .public-top-banner{width:min(1200px,100%)!important;max-width:1200px!important}
.mobile-only-public .smart-canvas{width:min(390px,100%)!important;max-width:390px!important}

/* v118: public geometric shapes */
.el-shape{padding:0!important;background:transparent!important;overflow:visible!important}.el-shape .shape-svg{width:100%;height:100%;display:block;fill:currentColor;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round;filter:drop-shadow(0 10px 22px rgba(0,0,0,.20))}.desktop-public .smart-canvas{width:min(1600px,100%)!important;max-width:1600px!important}.desktop-public .public-top-banner{width:min(1600px,100%)!important;max-width:1600px!important}

/* v120: صفحات الكمبيوتر قابلة للسحب أفقيًا وتتمدد حسب توزيع العناصر */
body.desktop-public{overflow-x:auto!important;overflow-y:auto!important;max-width:none!important;}
.desktop-public .phone-page{width:max-content!important;min-width:100vw!important;margin:0!important;}
.desktop-public .smart-canvas{width:auto;max-width:none!important;min-width:100vw!important;margin:0!important;overflow:visible!important;}
body.mobile-only-public{overflow-x:hidden!important;}
.mobile-only-public .phone-page,.mobile-only-public .smart-canvas{max-width:430px!important;}

/* v121: desktop pages use exact content bounds and unclipped header menu */
body.desktop-public{overflow-x:auto!important;max-width:none!important;}
.desktop-public .phone-page{max-width:none!important;justify-content:flex-start!important;align-items:flex-start!important;}
.desktop-public .smart-canvas{max-width:none!important;overflow:visible!important;}
.public-page-banner,.public-banner-menu{overflow:visible!important;}
.public-banner-menu-list{box-sizing:border-box;overscroll-behavior:contain;}
.public-banner-menu[open] .public-banner-menu-list{display:grid!important;}

/* v124: teacher page renders public content directly without iframe */
.teacher-public-body{min-height:100vh;}
.teacher-public-body .teacher-settings-fab{position:fixed!important;left:10px!important;right:auto!important;bottom:10px!important;top:auto!important;z-index:100000!important;display:inline-flex!important;align-items:center!important;gap:7px!important;width:auto!important;min-width:0!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:999px!important;background:rgba(15,23,42,.42)!important;color:rgba(255,255,255,.78)!important;font:800 11px/1.2 Tajawal,Tahoma,Arial,sans-serif!important;box-shadow:none!important;backdrop-filter:blur(10px);cursor:pointer;transition:.18s ease;}
.teacher-public-body .teacher-settings-fab:hover,.teacher-public-body .teacher-settings-fab:focus{opacity:1;background:rgba(37,99,235,.80)!important;color:#fff!important;transform:translateY(-1px);}
.teacher-public-body .teacher-settings-fab svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto;}
.teacher-settings-overlay{position:fixed;inset:0;z-index:100001;display:grid;place-items:center;padding:18px;background:rgba(2,6,23,.48);backdrop-filter:blur(8px)}
.teacher-settings-overlay[hidden]{display:none!important}.teacher-settings-dialog{position:relative;width:min(720px,calc(100vw - 28px));max-height:min(82vh,760px);overflow:auto;border-radius:30px;padding:22px;background:linear-gradient(180deg,#ffffff,#f8fafc);box-shadow:0 30px 90px rgba(2,6,23,.32);border:1px solid rgba(15,23,42,.10);color:#0f172a;font-family:Tajawal,Tahoma,Arial,sans-serif}.teacher-modal-close{position:absolute;inset:14px auto auto 14px;width:38px!important;height:38px!important;min-width:0!important;margin:0!important;padding:0!important;border:0;border-radius:14px;background:#f1f5f9;color:#0f172a;font-size:26px;line-height:1;cursor:pointer}.teacher-settings-dialog h1{margin:10px 0 6px;font-size:24px;color:#0f172a}.teacher-settings-dialog p{margin:0 0 16px;color:#64748b;line-height:1.8}.edu-secure-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:12px;font-weight:900}.teacher-settings-dialog .teacher-control-card{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:22px;padding:14px;margin-bottom:12px;box-shadow:0 14px 35px rgba(15,23,42,.06);color:#0f172a}.teacher-settings-dialog .teacher-control-card>b{display:block;margin-bottom:10px;color:#0f172a}.edu-global-switch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 12px;border-radius:16px;background:#fff;border:1px solid rgba(15,23,42,.08);box-shadow:0 8px 20px rgba(15,23,42,.04);font-weight:900;color:#0f172a}.edu-global-switch input{width:42px!important;height:22px!important;margin:0!important;padding:0!important;accent-color:#2563eb}.teacher-settings-dialog .teacher-session-participants{display:grid;gap:8px}.teacher-settings-dialog .edu-participant-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:10px;border:1px solid rgba(15,23,42,.08);border-radius:16px;background:#f8fafc}.teacher-settings-dialog .edu-participant-row b{display:block}.teacher-settings-dialog .edu-participant-row small{color:#64748b}.teacher-settings-dialog .edu-participant-row label{display:inline-flex;gap:5px;align-items:center;font-weight:800}.teacher-settings-dialog .edu-participant-row input{width:auto!important;height:auto!important;margin:0!important;padding:0!important}.teacher-settings-dialog .edu-muted{color:#64748b}.teacher-settings-dialog .saving{opacity:.7}.teacher-modal-open .teacher-settings-fab{opacity:.35}.teacher-public-body .lampa-credit{z-index:99999!important}@media(max-width:640px){.teacher-public-body .teacher-settings-fab{left:10px!important;bottom:10px!important;padding:8px 9px!important}.teacher-public-body .teacher-settings-fab span{display:none}.teacher-settings-dialog{border-radius:24px;padding:18px}.teacher-settings-dialog .edu-participant-row{grid-template-columns:1fr 1fr}.teacher-settings-dialog .edu-participant-row>div{grid-column:1/-1}}

/* v125: مدير الحصة للمتواجدين */
.edu-manager-fab{position:fixed;left:0;bottom:14px;z-index:2147483000;border:0;border-radius:0 18px 18px 0;padding:10px 14px;display:inline-flex;align-items:center;gap:8px;background:rgba(15,23,42,.92);color:#fff;box-shadow:0 12px 30px rgba(0,0,0,.24);font-family:inherit;cursor:pointer;backdrop-filter:blur(12px)}
.edu-manager-fab span{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:rgba(255,255,255,.16)}
.edu-manager-fab b{font-size:13px;font-weight:800;white-space:nowrap}.edu-manager-fab[hidden]{display:none!important}
.edu-manager-overlay{position:fixed;inset:0;z-index:2147483100;background:rgba(2,6,23,.48);display:grid;place-items:center;padding:18px;backdrop-filter:blur(8px)}
.edu-manager-overlay[hidden]{display:none!important}.edu-manager-dialog{width:min(720px,96vw);max-height:88vh;overflow:auto;background:linear-gradient(180deg,#fff,#f8fafc);color:#0f172a;border:1px solid rgba(15,23,42,.08);border-radius:28px;padding:24px;box-shadow:0 30px 80px rgba(2,6,23,.28);position:relative;direction:rtl}.edu-manager-close{position:absolute;left:18px;top:18px;width:38px;height:38px;border-radius:14px;border:1px solid rgba(15,23,42,.1);background:#fff;font-size:24px;line-height:1;cursor:pointer}.edu-manager-badge{display:inline-flex;padding:6px 12px;border-radius:999px;background:#ecfdf5;color:#047857;font-weight:800;font-size:12px}.edu-manager-dialog h2{margin:12px 0 6px;font-size:24px}.edu-manager-dialog p{margin:0 0 16px;color:#64748b}.edu-manager-card{border:1px solid rgba(15,23,42,.08);border-radius:22px;background:rgba(255,255,255,.82);padding:16px;margin-top:14px;box-shadow:0 12px 28px rgba(15,23,42,.06)}.edu-manager-card>b{display:block;margin-bottom:12px}.edu-manager-card label,.edu-manager-row label{display:inline-flex;align-items:center;gap:8px;margin:6px 8px 6px 0;font-weight:800}.edu-manager-card input,.edu-manager-row input{inline-size:18px;block-size:18px}.edu-manager-list{display:grid;gap:10px}.edu-manager-row{display:grid;grid-template-columns:minmax(150px,1fr) auto auto auto;gap:10px;align-items:center;padding:12px;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff}.edu-manager-row small{display:block;color:#64748b;margin-top:3px}.edu-manager-row.saving{opacity:.62}.edu-manager-muted{color:#64748b;font-weight:700}@media(max-width:640px){.edu-manager-row{grid-template-columns:1fr 1fr 1fr;}.edu-manager-row>div{grid-column:1/-1}.edu-manager-fab b{display:none}}
/* v129 payment gateways in cart */
.cart-payment-methods{display:grid;gap:8px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px;color:#fff}.cart-payment-methods>b{font-size:13px}.cart-payment-methods label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.6}.cart-payment-methods input{width:auto!important}.cart-payment-methods small{opacity:.78;color:inherit}

/* v137 - الدفع الإلزامي في عنصر المتجر عبر Thawani */
.cart-payment-methods.requires-online-payment{background:linear-gradient(135deg,#eff6ff,#ecfeff);border:1px solid #bfdbfe;border-radius:18px;padding:14px;box-shadow:0 12px 28px rgba(37,99,235,.08)}
.cart-payment-required{display:block;margin:0 0 8px;color:#1d4ed8;font-weight:900;line-height:1.8}.cart-payment-methods.requires-online-payment label{background:#fff;border:1px solid #dbeafe;border-radius:14px;padding:10px 12px;box-shadow:0 8px 18px rgba(15,23,42,.04)}

/* v138 store checkout review, currency clarity, and contrast improvements */
.smart-store,.store-product,.store-product *{color:inherit}.store-product{background:rgba(15,23,42,.08);border-color:rgba(15,23,42,.16);color:#0f172a}.dark-page .store-product,.public-dark .store-product{background:rgba(255,255,255,.13);border-color:rgba(255,255,255,.2);color:#fff}.store-product p{opacity:1;color:#475569}.dark-page .store-product p,.public-dark .store-product p{color:rgba(255,255,255,.86)}.store-product span{color:#0f172a}.dark-page .store-product span,.public-dark .store-product span{color:#fff}.store-product del{color:#64748b}.store-product button{background:linear-gradient(135deg,#ffffff,#e0f2fe);color:#0f172a;border:1px solid rgba(15,23,42,.08);box-shadow:0 10px 24px rgba(15,23,42,.12)}
.cart-box{background:linear-gradient(145deg,#0f172a,#1e293b);color:#fff;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 90px rgba(2,6,23,.45)}.cart-content h3{margin:0 0 14px;color:#fff;font-size:24px}.cart-items{gap:10px}.cart-item{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);color:#fff}.cart-item span{color:#fff;font-weight:800}.cart-item b{color:#dbeafe;text-align:left;direction:rtl}.cart-item-noimg{width:48px;height:48px;border-radius:12px;background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.08));display:block}.cart-checkout strong{color:#fff;font-size:18px;background:rgba(34,197,94,.14);border:1px solid rgba(34,197,94,.25);border-radius:16px;padding:12px;text-align:center}.cart-checkout input,.cart-checkout textarea{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.22);color:#fff}.cart-checkout input::placeholder,.cart-checkout textarea::placeholder{color:rgba(255,255,255,.72)}.cart-checkout small,.cart-payment-methods small{color:#dbeafe}.cart-payment-methods{display:grid;gap:9px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:12px}.cart-payment-methods b,.cart-payment-methods label{color:#fff}.cart-checkout button{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 16px 35px rgba(34,197,94,.24)}
.cart-review-panel{display:grid;gap:16px;color:#fff}.cart-review-head{background:linear-gradient(135deg,rgba(59,130,246,.25),rgba(34,197,94,.16));border:1px solid rgba(255,255,255,.16);border-radius:24px;padding:18px}.cart-review-head span{display:inline-flex;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:7px 12px;font-weight:900;color:#e0f2fe}.cart-review-head h3{margin:10px 0 6px;color:#fff}.cart-review-head p{margin:0;color:#dbeafe;line-height:1.8}.cart-review-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.cart-review-info div{background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:12px;min-width:0}.cart-review-info small{display:block;color:#bfdbfe;margin-bottom:5px}.cart-review-info b{color:#fff;word-break:break-word}.cart-review-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;justify-content:center}.cart-review-note{width:100%;text-align:center;color:#dbeafe;font-weight:800}.cart-success-btn.primary{background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff}.cart-success-btn:disabled{opacity:.55;cursor:not-allowed}@media(max-width:520px){.cart-review-info{grid-template-columns:1fr}.cart-item{grid-template-columns:48px 1fr}.cart-item b{grid-column:2}.cart-item button{grid-column:1/-1}}


/* v139 - صيغة الأسعار وألوان نصوص المتجر */
.store-product strong,.store-product p,.store-product span,.store-product del{transition:color .2s ease}
.store-product p[style],.store-product strong[style],.store-product span[style],.store-product del[style]{opacity:1!important}

/* v140 cart clean payment flow and larger cart icon */
.store-cart-btn svg{width:28px!important;height:28px!important;stroke-width:2.35!important}.custom-cart-btn svg{width:68%!important;height:68%!important;stroke-width:2.35!important}.cart-payment-hint{display:block;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:16px;padding:12px 14px;color:#e2e8f0;font-weight:800;line-height:1.8}.cart-payment-hint.online{background:linear-gradient(135deg,#eff6ff,#ecfeff);border-color:#bfdbfe;color:#1d4ed8;box-shadow:0 12px 28px rgba(37,99,235,.08)}

/* v142 editor guide lines + smart store product modal */
.edit-canvas{
  background-blend-mode: normal;
  position: relative;
}
.edit-canvas::before,
.edit-canvas::after{
  content:'';
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;
  opacity:.55;
}
.edit-canvas::before{
  background-image:
    linear-gradient(to right, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(34,211,238,.55) 1.5px, transparent 1.5px),
    linear-gradient(to bottom, rgba(34,211,238,.55) 1.5px, transparent 1.5px);
  background-size: 40px 40px, 40px 40px, 50% 100%, 100% 50%;
  background-position: 0 0, 0 0, center 0, 0 center;
}
.edit-canvas.show-guide-x::after{
  background: linear-gradient(to right, transparent calc(var(--active-guide-x) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-x) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-x) + 1px), transparent calc(var(--active-guide-x) + 1px));
}
.edit-canvas.show-guide-y::after{
  background: linear-gradient(to bottom, transparent calc(var(--active-guide-y) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-y) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-y) + 1px), transparent calc(var(--active-guide-y) + 1px));
}
.edit-canvas.show-guide-x.show-guide-y::after{
  background:
    linear-gradient(to right, transparent calc(var(--active-guide-x) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-x) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-x) + 1px), transparent calc(var(--active-guide-x) + 1px)),
    linear-gradient(to bottom, transparent calc(var(--active-guide-y) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-y) - 1px), rgba(250,204,21,.95) calc(var(--active-guide-y) + 1px), transparent calc(var(--active-guide-y) + 1px));
}
.store-products-grid.store-products-horizontal{
  display:flex;
  gap:12px;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  padding-bottom:8px;
}
.store-products-horizontal .store-product{
  min-width:240px;
  scroll-snap-align:start;
}
.store-product-clickable{
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.store-product-clickable:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 42px rgba(15,23,42,.16);
  border-color:rgba(255,255,255,.28);
}
.store-click-hint{
  display:block;
  margin-top:7px;
  opacity:.68;
  font-weight:800;
}
.product-detail-box{
  max-width:min(430px,94vw);
  background:linear-gradient(145deg,#ffffff,#f8fafc);
  color:#0f172a;
  border-radius:30px;
  box-shadow:0 30px 90px rgba(15,23,42,.28);
}
.product-detail-content{
  padding:54px 20px 20px;
  display:grid;
  gap:13px;
  text-align:center;
}
.product-detail-img{
  width:100%;
  height:210px;
  border-radius:24px;
  object-fit:cover;
  background:#e2e8f0;
}
.product-detail-content h3{margin:0;font-size:24px}.product-detail-content p{margin:0;line-height:1.8;color:#475569}.product-detail-price{font-size:22px}.product-detail-price del{opacity:.55;margin-inline-end:8px}.product-qty-control{display:flex;align-items:center;justify-content:center;gap:10px;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:22px;padding:10px}.product-qty-control button{width:44px;height:44px;border:0;border-radius:16px;background:#0f172a;color:#fff;font-size:26px;font-weight:900;cursor:pointer}.product-qty-control input{width:84px;height:44px;border:1px solid #cbd5e1;border-radius:16px;text-align:center;font-weight:900;font-size:18px}.product-add-confirm{border:0;border-radius:20px;padding:15px 18px;background:linear-gradient(135deg,#16a34a,#22c55e);color:white;font-weight:900;font-size:16px;cursor:pointer;box-shadow:0 18px 42px rgba(22,163,74,.24)}

/* v143 paid forms */
.smart-form-payment-info{display:grid;gap:5px;margin:10px 0 12px;padding:13px 14px;border-radius:18px;background:linear-gradient(135deg,#eff6ff,#ecfeff);border:1px solid #bfdbfe;color:#0f172a;box-shadow:0 10px 26px rgba(37,99,235,.10)}
.smart-form-payment-info b{font-size:14px;color:#1d4ed8}.smart-form-payment-info span{font-size:13px;font-weight:900;color:#0f172a}
.form-verify-page{margin:0;min-height:100vh;padding-bottom:54px;font-family:Tajawal,Arial,sans-serif;background:radial-gradient(circle at 20% 12%,#dbeafe,transparent 28%),radial-gradient(circle at 82% 0,#dcfce7,transparent 24%),linear-gradient(135deg,#f8fafc,#eef2ff);display:grid;place-items:center;color:#0f172a}.form-verify-card{width:min(760px,92vw);background:rgba(255,255,255,.96);border:1px solid #e2e8f0;border-radius:34px;box-shadow:0 32px 90px rgba(15,23,42,.16);overflow:hidden}.form-verify-top{padding:34px;background:linear-gradient(135deg,#0f172a,#7c3aed,#06b6d4);color:#fff}.form-verify-top h1{margin:0 0 8px;font-size:30px}.form-verify-top p{margin:0;line-height:1.9;color:rgba(255,255,255,.88)}.form-verify-body{padding:30px;display:grid;gap:18px;text-align:center}.form-verify-icon{margin:auto;width:94px;height:94px;border-radius:999px;display:grid;place-items:center;font-size:42px;font-weight:900;animation:pulse 1.5s infinite}.paid .form-verify-icon{background:#ecfdf5;color:#047857;box-shadow:inset 0 0 0 10px #bbf7d0}.cancelled .form-verify-icon{background:#fef2f2;color:#b91c1c;box-shadow:inset 0 0 0 10px #fecaca}.unpaid .form-verify-icon{background:#fffbeb;color:#ca8a04;box-shadow:inset 0 0 0 10px #fde68a}.form-verify-status{font-size:28px;font-weight:900}.form-verify-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:22px;padding:16px;line-height:2;text-align:right}.form-verify-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;background:#0f172a;color:#fff;text-decoration:none;font-weight:900;padding:13px 18px}.form-verify-btn.light{background:#fff;color:#0f172a;border:1px solid #cbd5e1}

/* v153: احتراف قائمة الرسائل ومنع تحديد النص داخل غرفة الدردشة */
.chat-public-body.chat-pro-body,
.chat-public-body .chat-app,
.chat-public-body .chat-wa-messages,
.chat-public-body .chat-wa-bubble,
.chat-public-body .chat-wa-bubble *{
  -webkit-user-select:none!important;
  user-select:none!important;
  -webkit-touch-callout:none!important;
}
.chat-public-body input,
.chat-public-body textarea,
.chat-public-body button,
.chat-public-body a,
.chat-public-body audio{
  -webkit-user-select:auto!important;
  user-select:auto!important;
}
.chat-message-menu.chat-mod-menu{
  position:fixed!important;
  z-index:1000000!important;
  width:220px!important;
  display:grid!important;
  gap:7px!important;
  padding:10px!important;
  border-radius:20px!important;
  background:linear-gradient(145deg,rgba(15,23,42,.96),rgba(30,41,59,.96))!important;
  border:1px solid rgba(255,255,255,.16)!important;
  box-shadow:0 24px 70px rgba(2,6,23,.42), inset 0 1px 0 rgba(255,255,255,.08)!important;
  backdrop-filter:blur(18px)!important;
  animation:chatMenuPop .16s ease both!important;
  direction:rtl!important;
}
.chat-message-menu.chat-mod-menu[hidden]{display:none!important;}
.chat-message-menu.chat-mod-menu button{
  appearance:none!important;
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  width:100%!important;
  min-height:42px!important;
  padding:10px 12px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.08)!important;
  color:#f8fafc!important;
  font:900 13px/1.3 Tajawal,Tahoma,Arial,sans-serif!important;
  text-align:right!important;
  cursor:pointer!important;
  transition:transform .16s ease, background .16s ease, border-color .16s ease!important;
}
.chat-message-menu.chat-mod-menu button:hover{
  transform:translateY(-1px)!important;
  background:rgba(59,130,246,.24)!important;
  border-color:rgba(147,197,253,.34)!important;
}
.chat-message-menu.chat-mod-menu button span{
  width:24px!important;
  height:24px!important;
  display:grid!important;
  place-items:center!important;
  border-radius:10px!important;
  background:rgba(255,255,255,.10)!important;
  flex:0 0 auto!important;
}
@keyframes chatMenuPop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
@media(max-width:560px){
  .chat-message-menu.chat-mod-menu{width:min(220px,calc(100vw - 18px))!important;}
}

/* v154: تحسين الرسائل الصوتية ومعاينة صور الدردشة */
.chat-public-body .chat-wa-image{width:300px!important;max-width:min(300px,78vw)!important;height:auto!important;max-height:300px!important;object-fit:cover!important;cursor:zoom-in!important;border-radius:18px!important;display:block!important;transition:transform .18s ease, box-shadow .18s ease!important}
.chat-public-body .chat-wa-image:hover{transform:translateY(-2px) scale(1.015)!important;box-shadow:0 16px 38px rgba(15,23,42,.18)!important}
.chat-wa-voice{width:min(330px,76vw)!important;display:flex!important;align-items:center!important;gap:11px!important;padding:10px 11px!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(18,140,126,.10),rgba(37,211,102,.10))!important;border:1px solid rgba(18,140,126,.14)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)!important}.chat-wa-bubble.mine .chat-wa-voice{background:linear-gradient(135deg,rgba(18,140,126,.12),rgba(37,211,102,.18))!important}.chat-wa-voice-icon{width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#128c7e,#25d366)!important;color:#fff!important;box-shadow:0 10px 24px rgba(18,140,126,.22)!important;font-size:19px!important}.chat-wa-voice-main{display:grid!important;gap:5px!important;min-width:0!important;flex:1!important}.chat-wa-voice-main b{color:#075e54!important;font-size:12px!important;font-weight:1000!important;line-height:1.2!important}.chat-wa-audio{width:100%!important;min-width:0!important;height:34px!important;display:block!important;filter:drop-shadow(0 6px 12px rgba(15,23,42,.10))!important}.chat-image-preview{position:fixed!important;inset:0!important;z-index:2000000!important;display:grid!important;place-items:center!important;padding:22px!important;background:rgba(2,6,23,.76)!important;backdrop-filter:blur(12px)!important;animation:chatImageFade .16s ease both!important}.chat-image-preview[hidden]{display:none!important}.chat-image-preview img{max-width:min(92vw,980px)!important;max-height:86vh!important;object-fit:contain!important;border-radius:26px!important;box-shadow:0 30px 95px rgba(0,0,0,.46),0 0 0 1px rgba(255,255,255,.18)!important;background:#fff!important}.chat-image-preview-close{position:fixed!important;top:max(14px,env(safe-area-inset-top))!important;left:16px!important;width:46px!important;height:46px!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.92)!important;color:#0f172a!important;font-size:30px!important;font-weight:900!important;cursor:pointer!important;box-shadow:0 18px 48px rgba(0,0,0,.28)!important}@keyframes chatImageFade{from{opacity:0}to{opacity:1}}@media(max-width:560px){.chat-public-body .chat-wa-image{width:min(300px,76vw)!important;max-height:260px!important}.chat-wa-voice{width:min(310px,78vw)!important;padding:9px!important;gap:9px!important}.chat-wa-voice-icon{width:38px!important;height:38px!important;min-width:38px!important;font-size:17px!important}.chat-wa-audio{height:32px!important}.chat-image-preview{padding:12px!important}.chat-image-preview img{max-width:94vw!important;max-height:82vh!important;border-radius:20px!important}}

/* v159 - chat quote/voice refinements */
.chat-public-body.chat-pro-body,
.chat-public-body.chat-pro-body *:not(input):not(textarea):not(audio){-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important;}

/* v161: منع تنزيل الصوتيات ظاهريًا + محادثة صوتية مباشرة داخل غرفة الدردشة */
.chat-public-body .chat-wa-audio::-webkit-media-controls-enclosure{overflow:hidden!important}
.chat-public-body .chat-wa-audio::-webkit-media-controls-download-button{display:none!important}
.chat-live-voice{margin:10px 12px 0;padding:12px;border-radius:22px;background:linear-gradient(135deg,rgba(15,23,42,.94),rgba(18,140,126,.92));color:#fff;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;box-shadow:0 18px 42px rgba(2,6,23,.22);border:1px solid rgba(255,255,255,.16)}
.chat-live-voice[hidden]{display:none!important}.chat-live-voice-main{display:flex;align-items:center;gap:10px;min-width:0}.chat-live-voice-main b{display:block;font-weight:1000;font-size:14px}.chat-live-voice-main small{display:block;color:rgba(255,255,255,.78);font-weight:800;font-size:11px;margin-top:3px}.chat-live-dot{width:14px;height:14px;border-radius:999px;background:#22c55e;box-shadow:0 0 0 6px rgba(34,197,94,.16);flex:0 0 auto}.chat-live-people{grid-column:1/-1;display:flex;gap:7px;flex-wrap:wrap;min-height:28px}.chat-live-people span{display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.12);font-size:12px;font-weight:900}.chat-live-join,.chat-live-leave{height:38px;border:0;border-radius:14px;padding:0 14px;font-weight:1000;cursor:pointer;box-shadow:0 10px 24px rgba(2,6,23,.18)}.chat-live-join{background:#dcfce7;color:#065f46}.chat-live-leave{background:#fee2e2;color:#991b1b}.chat-live-remote{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
@media(max-width:640px){.chat-live-voice{grid-template-columns:1fr 42px 42px;margin:8px 8px 0;padding:10px;border-radius:18px}.chat-live-join,.chat-live-leave{font-size:0;width:42px;padding:0}.chat-live-join:before{content:'🎙️';font-size:18px}.chat-live-leave:before{content:'×';font-size:24px}.chat-live-voice-main b{font-size:13px}.chat-live-voice-main small{font-size:10px}}

/* v162 - compact professional live voice room + secure voice notes */
.chat-live-voice.chat-live-voice-slots{order:-5;margin:10px 12px 8px!important;padding:10px!important;border-radius:24px!important;background:linear-gradient(135deg,#071827,#0f766e 58%,#14b8a6)!important;color:#fff!important;display:grid!important;grid-template-columns:1fr auto!important;gap:9px!important;align-items:center!important;box-shadow:0 18px 52px rgba(2,6,23,.24)!important;border:1px solid rgba(255,255,255,.18)!important;position:relative!important;overflow:visible!important}.chat-live-voice-slots[hidden]{display:none!important}.chat-live-topline{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.chat-live-topline b{display:block!important;font-size:13px!important;font-weight:1000!important}.chat-live-topline small{display:block!important;margin-top:2px!important;color:rgba(255,255,255,.78)!important;font-size:10.5px!important;font-weight:800!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:58vw!important}.chat-live-controls{display:flex!important;justify-content:flex-end!important}.chat-live-admin-toggle{height:34px!important;border:0!important;border-radius:14px!important;padding:0 10px!important;background:rgba(255,255,255,.14)!important;color:#fff!important;font-size:11px!important;font-weight:1000!important;cursor:pointer!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16)!important}.chat-live-admin-toggle.active{background:#fef3c7!important;color:#92400e!important}.chat-live-slot-list{grid-column:1/-1!important;display:grid!important;grid-template-rows:repeat(3,44px)!important;gap:7px!important;min-height:0!important}.chat-live-slot{width:100%!important;height:44px!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:16px!important;background:rgba(255,255,255,.10)!important;color:#fff!important;display:grid!important;grid-template-columns:32px minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;text-align:right!important;padding:5px 8px!important;cursor:pointer!important;position:relative!important;overflow:hidden!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.10)!important}.chat-live-slot:before{content:'';position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,#22c55e,#bef264);transform-origin:right;transform:scaleX(calc(var(--v,4%)/100));opacity:.9}.chat-live-slot .slot-no{width:28px!important;height:28px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:rgba(255,255,255,.15)!important;font-weight:1000!important;font-size:12px!important}.chat-live-slot b{font-size:12.5px!important;font-weight:1000!important;line-height:1.1!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}.chat-live-slot em{font-style:normal!important;font-size:10.5px!important;font-weight:900!important;color:rgba(255,255,255,.72)!important}.chat-live-slot i{width:38px!important;height:20px!important;border-radius:999px!important;background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.08))!important;position:relative!important;overflow:hidden!important}.chat-live-slot i:after{content:'';position:absolute;inset:3px auto 3px 3px;width:calc(var(--v,4%)*.32);min-width:4px;border-radius:999px;background:#86efac;box-shadow:0 0 16px rgba(134,239,172,.65)}.chat-live-slot.active{background:linear-gradient(135deg,rgba(34,197,94,.26),rgba(255,255,255,.12))!important;border-color:rgba(134,239,172,.50)!important}.chat-live-slot.me{outline:2px solid rgba(255,255,255,.45)!important}.chat-live-leave{grid-column:1/-1!important;height:36px!important;border:0!important;border-radius:15px!important;background:#fee2e2!important;color:#991b1b!important;font-weight:1000!important;cursor:pointer!important}.chat-live-menu{position:absolute!important;z-index:60!important;min-width:210px!important;top:64px!important;left:12px!important;padding:10px!important;border-radius:18px!important;background:#fff!important;color:#0f172a!important;box-shadow:0 25px 70px rgba(2,6,23,.35)!important;border:1px solid rgba(15,23,42,.08)!important}.chat-live-menu[hidden]{display:none!important}.chat-live-menu b{display:block!important;margin:0 0 7px!important;font-size:13px!important}.chat-live-menu button{width:100%!important;height:36px!important;margin:4px 0!important;border:0!important;border-radius:12px!important;background:#f1f5f9!important;color:#0f172a!important;font-weight:900!important;cursor:pointer!important}.chat-live-menu button:hover{background:#e2e8f0!important}.chat-live-remote{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}.chat-wa-voice-secure{width:min(330px,76vw)!important;display:flex!important;align-items:center!important;gap:11px!important;padding:11px!important;border-radius:20px!important;background:linear-gradient(135deg,rgba(15,118,110,.12),rgba(20,184,166,.12))!important;border:1px solid rgba(15,118,110,.18)!important}.chat-wa-voice-play{width:46px!important;height:46px!important;min-width:46px!important;border:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#0f766e,#14b8a6)!important;color:#fff!important;box-shadow:0 12px 28px rgba(15,118,110,.24)!important;cursor:pointer!important}.chat-wa-voice-play svg{width:24px!important;height:24px!important;fill:currentColor!important}.chat-wa-wave{height:22px!important;display:flex!important;align-items:end!important;gap:3px!important}.chat-wa-wave span{display:block!important;width:4px!important;border-radius:999px!important;background:#0f766e!important;opacity:.75}.chat-wa-wave span:nth-child(1){height:8px}.chat-wa-wave span:nth-child(2){height:14px}.chat-wa-wave span:nth-child(3){height:18px}.chat-wa-wave span:nth-child(4){height:11px}.chat-wa-wave span:nth-child(5){height:20px}.chat-wa-wave span:nth-child(6){height:13px}.chat-wa-wave span:nth-child(7){height:9px}.chat-wa-voice.playing .chat-wa-wave span{animation:chatVoiceWave .7s ease-in-out infinite alternate}.chat-wa-voice.playing .chat-wa-wave span:nth-child(2n){animation-delay:.16s}.chat-wa-voice.playing .chat-wa-wave span:nth-child(3n){animation-delay:.28s}.chat-wa-voice-main small{font-size:10px!important;font-weight:800!important;color:#64748b!important}.chat-wa-audio-hidden{display:none!important}.chat-public-body audio::-webkit-media-controls-download-button{display:none!important}@keyframes chatVoiceWave{to{height:22px;opacity:1}}@media(max-width:640px){.chat-live-voice.chat-live-voice-slots{margin:8px 8px 6px!important;border-radius:20px!important;grid-template-columns:1fr!important}.chat-live-controls{justify-content:stretch!important}.chat-live-admin-toggle{width:100%!important}.chat-live-topline small{max-width:78vw!important}.chat-live-slot-list{grid-template-rows:repeat(3,42px)!important}.chat-live-slot{height:42px!important;grid-template-columns:30px minmax(0,1fr) 44px!important}.chat-live-slot em{font-size:0!important}.chat-live-slot.active em{font-size:10px!important}.chat-live-menu{left:8px!important;right:8px!important;top:60px!important;width:auto!important}}

/* v163: message owner editing + quote jump */
.chat-wa-quote{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.chat-wa-quote:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(15,23,42,.10)}
.chat-edited-label{display:inline-flex;align-items:center;margin-inline-start:6px;padding:1px 6px;border-radius:999px;background:rgba(15,23,42,.08);color:inherit;font-size:10px;font-weight:800;opacity:.72}
.chat-jump-highlight{animation:chatJumpPulse 1.4s ease both;position:relative;z-index:3}
@keyframes chatJumpPulse{0%,100%{filter:none;transform:scale(1)}20%{filter:drop-shadow(0 0 18px rgba(37,99,235,.45));transform:scale(1.018)}45%{filter:drop-shadow(0 0 24px rgba(16,185,129,.38));transform:scale(1.01)}}
.chat-edit-overlay{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:18px;background:rgba(15,23,42,.38);backdrop-filter:blur(8px)}
.chat-edit-card{width:min(460px,calc(100vw - 28px));border-radius:26px;background:linear-gradient(180deg,#fff,#f8fafc);box-shadow:0 24px 80px rgba(2,6,23,.30);border:1px solid rgba(15,23,42,.10);padding:18px;font-family:Tajawal,Tahoma,Arial,sans-serif;color:#0f172a}
.chat-edit-card h3{margin:0 0 12px;font-size:18px;font-weight:900}.chat-edit-card textarea{width:100%;min-height:130px;resize:vertical;border:1px solid rgba(15,23,42,.14);border-radius:18px;padding:12px;font:700 14px/1.8 Tajawal,Tahoma,Arial,sans-serif;outline:none;background:#fff;color:#0f172a}.chat-edit-card textarea:focus{border-color:#2563eb;box-shadow:0 0 0 4px rgba(37,99,235,.10)}.chat-edit-card>div{display:flex;gap:10px;justify-content:flex-end;margin-top:12px}.chat-edit-card button{border:0;border-radius:14px;padding:10px 14px;font-weight:900;cursor:pointer}.chat-edit-card [data-no]{background:#e2e8f0;color:#0f172a}.chat-edit-card [data-yes]{background:#2563eb;color:#fff}

/* v164: احتراف المحادثة الصوتية كدوائر معلقة أسفل البنر */
.chat-wa-shell .chat-live-voice.chat-live-voice-slots{
  position:relative!important;
  z-index:8!important;
  margin:-8px auto 10px!important;
  width:min(520px,calc(100% - 22px))!important;
  min-height:104px!important;
  padding:13px 14px 14px!important;
  display:grid!important;
  grid-template-columns:1fr auto!important;
  align-items:start!important;
  gap:8px 12px!important;
  border-radius:0 0 30px 30px!important;
  background:linear-gradient(180deg,rgba(15,23,42,.94),rgba(30,41,59,.86))!important;
  border:1px solid rgba(255,255,255,.15)!important;
  border-top:0!important;
  box-shadow:0 18px 44px rgba(2,6,23,.22), inset 0 1px 0 rgba(255,255,255,.12)!important;
  backdrop-filter:blur(18px)!important;
}
.chat-wa-shell .chat-live-voice.chat-live-voice-slots:before{
  content:'';position:absolute;top:-1px;right:16%;left:16%;height:10px;border-radius:0 0 999px 999px;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.38),transparent);opacity:.9;
}
.chat-live-topline{grid-column:1/2!important;display:flex!important;align-items:center!important;gap:8px!important;min-width:0!important}.chat-live-topline b{font-size:12.5px!important}.chat-live-topline small{display:block!important;max-width:320px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;font-size:10.5px!important;color:rgba(255,255,255,.72)!important}.chat-live-controls{grid-column:2/3!important;grid-row:1!important}.chat-live-admin-toggle{height:31px!important;padding:0 10px!important;border-radius:999px!important;font-size:10.5px!important}.chat-live-people.chat-live-slot-list{grid-column:1/-1!important;display:flex!important;justify-content:center!important;align-items:flex-start!important;gap:18px!important;padding:7px 2px 0!important;background:transparent!important;border:0!important;box-shadow:none!important;min-height:76px!important;overflow:visible!important}.chat-live-slot{position:relative!important;width:74px!important;height:74px!important;min-width:74px!important;padding:0!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;border-radius:50%!important;background:radial-gradient(circle at 35% 28%,rgba(255,255,255,.28),rgba(255,255,255,.10) 43%,rgba(15,23,42,.52))!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;box-shadow:0 14px 34px rgba(2,6,23,.28), inset 0 1px 0 rgba(255,255,255,.20)!important;transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease!important;cursor:pointer!important;overflow:visible!important}.chat-live-slot:before{content:'';position:absolute;inset:-7px;border-radius:50%;border:1px solid rgba(255,255,255,.12);box-shadow:0 0 0 4px rgba(255,255,255,.03);pointer-events:none}.chat-live-slot:hover{transform:translateY(-5px) scale(1.03)!important;box-shadow:0 20px 44px rgba(2,6,23,.34),0 0 0 7px rgba(34,197,94,.08)!important}.chat-live-slot .slot-no{position:absolute!important;top:-7px!important;right:-4px!important;width:25px!important;height:25px!important;background:linear-gradient(135deg,#38bdf8,#2563eb)!important;border:2px solid rgba(255,255,255,.82)!important;font-size:11px!important}.chat-live-slot b{max-width:58px!important;font-size:11.5px!important;text-align:center!important}.chat-live-slot em{font-size:9px!important;color:rgba(255,255,255,.68)!important}.chat-live-slot i{position:absolute!important;right:13px!important;left:13px!important;bottom:10px!important;width:auto!important;height:5px!important;background:rgba(15,23,42,.58)!important;border-radius:999px!important;overflow:hidden!important}.chat-live-slot i:after{content:''!important;position:absolute!important;right:0!important;top:0!important;bottom:0!important;width:var(--v,4%)!important;min-width:5px!important;border-radius:999px!important;background:linear-gradient(90deg,#22c55e,#bef264,#f59e0b)!important;box-shadow:0 0 14px rgba(34,197,94,.65)!important}.chat-live-slot.active{background:radial-gradient(circle at 35% 26%,rgba(134,239,172,.42),rgba(34,197,94,.20) 42%,rgba(15,23,42,.50))!important;border-color:rgba(134,239,172,.62)!important;animation:chatLiveFloat 2.2s ease-in-out infinite!important}.chat-live-slot.active:after{content:'';position:absolute;inset:-12px;border-radius:50%;background:radial-gradient(circle,rgba(34,197,94,.22),transparent 64%);z-index:-1;animation:chatLivePulse 1.3s ease-in-out infinite}.chat-live-slot.me{border-color:rgba(255,255,255,.78)!important;box-shadow:0 20px 48px rgba(34,197,94,.30),0 0 0 4px rgba(255,255,255,.16)!important}.chat-live-slot.me em{color:#dcfce7!important}.chat-live-leave{display:none!important}.chat-live-menu{top:96px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important}.chat-live-remote{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important}@keyframes chatLiveFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes chatLivePulse{0%,100%{opacity:.35;transform:scale(.96)}50%{opacity:.75;transform:scale(1.06)}}@media(max-width:640px){.chat-wa-shell .chat-live-voice.chat-live-voice-slots{width:calc(100% - 14px)!important;margin:-6px 7px 8px!important;padding:12px 10px 13px!important;border-radius:0 0 24px 24px!important}.chat-live-people.chat-live-slot-list{gap:12px!important}.chat-live-slot{width:66px!important;height:66px!important;min-width:66px!important}.chat-live-topline small{max-width:62vw!important}.chat-live-controls{grid-column:1/-1!important;grid-row:auto!important}.chat-live-admin-toggle{width:100%!important}.chat-live-menu{top:108px!important;width:min(270px,calc(100vw - 28px))!important}}

/* v167 chat live voice circles only */
.chat-public-body .chat-live-topline,.chat-public-body .chat-live-controls,.chat-public-body .chat-live-leave{display:none!important}
.chat-public-body .chat-live-voice.chat-live-voice-slots{background:transparent!important;border:0!important;box-shadow:none!important;padding:4px 8px 8px!important;margin:0 8px 6px!important;border-radius:0!important;display:block!important;overflow:visible!important}

/* v168: تثبيت دوائر الصوت مباشرة أسفل البنر وإخفاء أي إطار زائد */
.chat-public-body .chat-wa-head + .chat-room-image-modal + .chat-live-voice.chat-live-voice-slots,
.chat-public-body .chat-wa-head + .chat-live-voice.chat-live-voice-slots,
.chat-public-body #chatLiveVoice{
  display:block!important;
  position:relative!important;
  z-index:12!important;
  width:100%!important;
  margin:0 0 8px!important;
  padding:8px 0 4px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  border-radius:0!important;
  overflow:visible!important;
}
.chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{
  display:flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:18px!important;
  margin:0 auto!important;
  padding:0!important;
  width:auto!important;
  min-height:82px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.chat-public-body #chatLiveVoice .chat-live-topline,
.chat-public-body #chatLiveVoice .chat-live-controls,
.chat-public-body #chatLiveVoice .chat-live-leave{display:none!important}
.chat-public-body #chatLiveVoice .chat-live-slot{border-radius:50%!important;width:74px!important;height:74px!important;min-width:74px!important}
@media(max-width:640px){.chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{gap:12px!important;min-height:74px!important}.chat-public-body #chatLiveVoice .chat-live-slot{width:66px!important;height:66px!important;min-width:66px!important}}

/* v169: voice live minimalist horizontal circles */
.chat-public-body #chatLiveVoice,
.chat-public-body .chat-live-voice.chat-live-voice-slots{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  padding:4px 0 0!important;
  margin:0 auto 8px!important;
}
.chat-public-body #chatLiveVoice:before,
.chat-public-body .chat-live-voice.chat-live-voice-slots:before,
.chat-public-body .chat-live-topline,
.chat-public-body .chat-live-controls,
.chat-public-body .chat-live-leave{
  display:none!important;
  content:none!important;
}
.chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{
  display:flex!important;
  flex-direction:row!important;
  justify-content:center!important;
  align-items:center!important;
  flex-wrap:nowrap!important;
  gap:16px!important;
  padding:0!important;
  margin:0 auto!important;
  min-height:auto!important;
  width:100%!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
.chat-public-body #chatLiveVoice .chat-live-slot{
  border-radius:50%!important;
  overflow:visible!important;
}

/* v170 professional voice messages */
.chat-wa-voice-top{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important}
.chat-wa-speed{height:24px!important;min-width:48px!important;padding:0 10px!important;border:0!important;border-radius:999px!important;background:rgba(15,118,110,.12)!important;color:#0f766e!important;font-size:11px!important;font-weight:1000!important;cursor:pointer!important}
.chat-wa-progress-wrap{display:grid!important;grid-template-columns:42px 1fr 42px!important;align-items:center!important;gap:6px!important}
.chat-wa-current,.chat-wa-duration{font-size:10px!important;font-weight:900!important;color:#64748b!important;text-align:center!important}
.chat-wa-progress{appearance:none!important;-webkit-appearance:none!important;height:5px!important;border-radius:999px!important;background:rgba(15,23,42,.10)!important;overflow:hidden!important;cursor:pointer!important}
.chat-wa-progress::-webkit-slider-thumb{-webkit-appearance:none!important;appearance:none!important;width:12px!important;height:12px!important;border-radius:50%!important;background:#14b8a6!important;box-shadow:0 0 0 3px rgba(20,184,166,.18)!important}
.chat-wa-voice.playing .chat-wa-voice-play{background:linear-gradient(135deg,#ef4444,#f97316)!important}


.chat-room-actions{display:flex;align-items:center;gap:10px}
.chat-room-settings-btn{width:44px;height:44px;border-radius:50%;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;cursor:pointer;backdrop-filter:blur(10px);transition:.2s ease}
.chat-room-settings-btn:hover{transform:rotate(18deg) scale(1.05);background:rgba(255,255,255,.16)}
.chat-room-settings-btn svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* v172: إصلاح ظهور دوائر المحادثة الصوتية تحت 720px وتنظيم الرسالة الصوتية بسطر واحد */
.chat-public-body #chatLiveVoice.chat-live-voice-slots:not([hidden]),
.chat-public-body #chatLiveVoice:not([hidden]){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  position:relative!important;
  z-index:20!important;
  min-height:86px!important;
  height:auto!important;
  max-height:none!important;
  overflow:visible!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:6px 4px 8px!important;
  margin:0 auto 8px!important;
}
.chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{
  display:flex!important;
  flex-flow:row nowrap!important;
  justify-content:center!important;
  align-items:center!important;
  gap:14px!important;
  min-height:82px!important;
  height:auto!important;
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  transform:none!important;
  clip:auto!important;
}
.chat-public-body #chatLiveVoice .chat-live-slot{
  display:grid!important;
  flex:0 0 74px!important;
  width:74px!important;
  height:74px!important;
  min-width:74px!important;
  max-width:74px!important;
  max-height:74px!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}
@media(max-width:720px){
  .chat-public-body #chatLiveVoice.chat-live-voice-slots:not([hidden]),
  .chat-public-body #chatLiveVoice:not([hidden]){
    display:block!important;
    min-height:78px!important;
    padding:5px 2px 7px!important;
    margin:0 auto 7px!important;
  }
  .chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{
    display:flex!important;
    flex-flow:row nowrap!important;
    justify-content:center!important;
    align-items:center!important;
    gap:10px!important;
    min-height:74px!important;
    overflow:visible!important;
  }
  .chat-public-body #chatLiveVoice .chat-live-slot{
    display:grid!important;
    flex:0 0 66px!important;
    width:66px!important;
    height:66px!important;
    min-width:66px!important;
    max-width:66px!important;
    max-height:66px!important;
    padding:7px!important;
  }
}
@media(max-width:360px){
  .chat-public-body #chatVoicePeople.chat-live-people.chat-live-slot-list{gap:7px!important}
  .chat-public-body #chatLiveVoice .chat-live-slot{flex-basis:62px!important;width:62px!important;height:62px!important;min-width:62px!important;max-width:62px!important;max-height:62px!important}
}
.chat-wa-voice-secure.chat-wa-voice-inline{
  width:min(390px,78vw)!important;
  max-width:100%!important;
  min-height:50px!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:8px!important;
  padding:8px 10px!important;
  border-radius:999px!important;
  overflow:hidden!important;
}
.chat-wa-voice-inline .chat-wa-voice-play{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  flex:0 0 38px!important;
}
.chat-wa-voice-inline .chat-wa-voice-play svg{width:20px!important;height:20px!important}
.chat-wa-voice-inline .chat-wa-current,
.chat-wa-voice-inline .chat-wa-duration{
  flex:0 0 auto!important;
  min-width:34px!important;
  font-size:10.5px!important;
  line-height:1!important;
  white-space:nowrap!important;
}
.chat-wa-voice-inline .chat-wa-progress{
  flex:1 1 auto!important;
  min-width:82px!important;
  width:auto!important;
  margin:0!important;
}
.chat-wa-voice-inline .chat-wa-speed{
  flex:0 0 auto!important;
  height:30px!important;
  min-width:42px!important;
  padding:0 8px!important;
}
.chat-wa-voice-inline .chat-wa-wave,
.chat-wa-voice-inline .chat-wa-voice-top,
.chat-wa-voice-inline .chat-wa-progress-wrap,
.chat-wa-voice-inline small,
.chat-wa-voice-inline .chat-wa-voice-main{display:contents!important}
@media(max-width:420px){
  .chat-wa-voice-secure.chat-wa-voice-inline{width:min(330px,82vw)!important;gap:6px!important;padding:7px 8px!important}
  .chat-wa-voice-inline .chat-wa-voice-play{width:34px!important;height:34px!important;min-width:34px!important;flex-basis:34px!important}
  .chat-wa-voice-inline .chat-wa-current,.chat-wa-voice-inline .chat-wa-duration{min-width:30px!important;font-size:9.5px!important}
  .chat-wa-voice-inline .chat-wa-speed{height:28px!important;min-width:38px!important;font-size:10px!important}
  .chat-wa-voice-inline .chat-wa-progress{min-width:58px!important}
}

/* v176: زر المتواجدين الآن وقائمة تحكم المشرف */
.chat-room-online-btn{
  height:44px;min-width:58px;padding:0 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;
  background:rgba(255,255,255,.09);color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  cursor:pointer;backdrop-filter:blur(10px);box-shadow:inset 0 1px 0 rgba(255,255,255,.10);transition:.18s ease
}
.chat-room-online-btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.16)}
.chat-room-online-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-room-online-btn b{min-width:22px;height:22px;padding:0 6px;border-radius:999px;background:#22c55e;color:#052e16;display:grid;place-items:center;font-size:12px;font-weight:1000;line-height:1}
.chat-online-modal[hidden]{display:none!important}
.chat-online-modal{position:fixed;inset:0;z-index:100050;display:grid;place-items:center;padding:18px;background:rgba(2,6,23,.62);backdrop-filter:blur(12px)}
.chat-online-card{position:relative;width:min(430px,100%);max-height:min(82vh,720px);overflow:hidden;border-radius:28px;background:linear-gradient(180deg,#fff,#f8fafc);color:#0f172a;box-shadow:0 30px 90px rgba(2,6,23,.35);border:1px solid rgba(15,23,42,.10);padding:18px;font-family:Tajawal,Tahoma,Arial,sans-serif}
.chat-online-close{position:absolute;top:12px;left:12px;width:36px;height:36px;border:0;border-radius:14px;background:#eef2f7;color:#0f172a;font-size:24px;line-height:1;cursor:pointer}
.chat-online-head{display:flex;align-items:center;gap:12px;padding:4px 0 14px;border-bottom:1px solid rgba(15,23,42,.08);margin-bottom:12px}
.chat-online-head>span{width:50px;height:50px;border-radius:18px;display:grid;place-items:center;background:linear-gradient(135deg,#0f766e,#14b8a6);color:#fff;box-shadow:0 16px 34px rgba(20,184,166,.24)}
.chat-online-head svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.chat-online-head h3{margin:0;font-size:19px;font-weight:1000;color:#0f172a}.chat-online-head p{margin:2px 0 0;color:#64748b;font-size:12.5px;font-weight:800}
.chat-online-list{display:grid;gap:9px;max-height:58vh;overflow:auto;padding:2px 2px 4px}.chat-online-list>em{display:block;padding:20px;text-align:center;color:#64748b;font-style:normal;font-weight:900;background:#f1f5f9;border-radius:18px}
.chat-online-user{width:100%;border:1px solid rgba(15,23,42,.08);border-radius:18px;background:#fff;display:grid;grid-template-columns:44px minmax(0,1fr);grid-template-areas:'avatar name' 'avatar note';gap:2px 10px;align-items:center;text-align:right;padding:10px;cursor:pointer;color:#0f172a;box-shadow:0 10px 26px rgba(15,23,42,.05);transition:.16s ease}
.chat-online-user:hover{transform:translateY(-2px);border-color:rgba(20,184,166,.38);box-shadow:0 16px 36px rgba(20,184,166,.13)}
.chat-online-user:disabled{cursor:default;opacity:1}.chat-online-user:disabled:hover{transform:none;border-color:rgba(15,23,42,.08);box-shadow:0 10px 26px rgba(15,23,42,.05)}
.chat-online-user span{grid-area:avatar;width:44px;height:44px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(135deg,#e0f2fe,#ccfbf1);color:#0f766e;font-weight:1000}
.chat-online-user b{grid-area:name;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.chat-online-user small{grid-area:note;color:#64748b;font-size:11.5px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-online-user.me{background:#f0fdfa;border-color:rgba(20,184,166,.28)}
.chat-choice-card p b{display:block;margin-bottom:6px;color:#0f172a}.chat-choice-card p span{display:block;color:#64748b}.chat-choice-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.chat-choice-actions button{width:100%!important;background:#f1f5f9!important;color:#0f172a!important}.chat-choice-actions button:hover{background:#e2e8f0!important}.chat-choice-actions button:last-child{background:#fee2e2!important;color:#991b1b!important}
@media(max-width:520px){.chat-room-online-btn{height:40px;min-width:54px;padding:0 8px}.chat-room-online-btn svg{width:20px;height:20px}.chat-online-card{border-radius:24px;padding:15px}.chat-online-head>span{width:46px;height:46px}.chat-online-list{max-height:62vh}}


/* v177: تحسين زر المتواجدين والنافذة لتعمل باحتراف على الشاشات الصغيرة وكل المتصفحات */
.chat-room-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  min-width:max-content!important;
  position:relative!important;
  z-index:20!important;
}
.chat-room-online-btn{
  isolation:isolate!important;
  position:relative!important;
  width:auto!important;
  height:44px!important;
  min-width:64px!important;
  max-width:96px!important;
  padding:0 10px!important;
  border:1px solid rgba(255,255,255,.26)!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.22),rgba(255,255,255,.08))!important;
  color:#fff!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  cursor:pointer!important;
  -webkit-appearance:none!important;
  appearance:none!important;
  -webkit-tap-highlight-color:transparent!important;
  backdrop-filter:blur(14px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
  box-shadow:0 10px 24px rgba(2,6,23,.18),inset 0 1px 0 rgba(255,255,255,.28)!important;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease!important;
  line-height:1!important;
}
.chat-room-online-btn::before{
  content:''!important;
  position:absolute!important;
  inset:5px!important;
  border-radius:inherit!important;
  background:radial-gradient(circle at 70% 20%,rgba(34,197,94,.22),transparent 46%)!important;
  pointer-events:none!important;
  z-index:-1!important;
}
.chat-room-online-btn:hover,.chat-room-online-btn:focus-visible{
  transform:translateY(-1px)!important;
  background:linear-gradient(135deg,rgba(255,255,255,.30),rgba(255,255,255,.13))!important;
  box-shadow:0 14px 32px rgba(2,6,23,.23),0 0 0 3px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.34)!important;
  outline:none!important;
}
.chat-room-online-btn svg{
  width:22px!important;
  height:22px!important;
  min-width:22px!important;
  display:block!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:2.15!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  opacity:1!important;
  visibility:visible!important;
}
.chat-room-online-btn b{
  min-width:24px!important;
  height:24px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#bbf7d0,#22c55e)!important;
  color:#052e16!important;
  display:grid!important;
  place-items:center!important;
  font-size:12px!important;
  font-weight:1000!important;
  line-height:1!important;
  box-shadow:0 8px 16px rgba(34,197,94,.24),inset 0 1px 0 rgba(255,255,255,.55)!important;
}
.chat-online-modal[hidden]{display:none!important}
.chat-online-modal{
  position:fixed!important;
  inset:0!important;
  width:100vw!important;
  height:100vh!important;
  height:100dvh!important;
  z-index:2147483000!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:max(14px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(14px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
  background:rgba(2,6,23,.68)!important;
  backdrop-filter:blur(14px) saturate(140%)!important;
  -webkit-backdrop-filter:blur(14px) saturate(140%)!important;
  overflow:auto!important;
  overscroll-behavior:contain!important;
  box-sizing:border-box!important;
}
.chat-online-card{
  position:relative!important;
  width:min(460px,calc(100vw - 24px))!important;
  max-width:calc(100vw - 24px)!important;
  max-height:min(86vh,760px)!important;
  max-height:min(86dvh,760px)!important;
  overflow:hidden!important;
  border-radius:30px!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 58%,#eefcf8 100%)!important;
  color:#0f172a!important;
  box-shadow:0 28px 80px rgba(2,6,23,.38),0 0 0 1px rgba(255,255,255,.82),inset 0 1px 0 rgba(255,255,255,.96)!important;
  border:1px solid rgba(15,23,42,.09)!important;
  padding:18px!important;
  font-family:Tajawal,Tahoma,Arial,sans-serif!important;
  box-sizing:border-box!important;
  animation:chatOnlinePop .18s ease both!important;
}
.chat-online-card::before{
  content:''!important;
  position:absolute!important;
  inset:0 0 auto 0!important;
  height:96px!important;
  background:radial-gradient(circle at 82% 8%,rgba(20,184,166,.18),transparent 42%),linear-gradient(135deg,rgba(15,118,110,.13),rgba(255,255,255,0))!important;
  pointer-events:none!important;
}
@keyframes chatOnlinePop{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.chat-online-close{
  position:absolute!important;
  top:12px!important;
  left:12px!important;
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  border:0!important;
  border-radius:15px!important;
  background:rgba(241,245,249,.92)!important;
  color:#0f172a!important;
  font-size:26px!important;
  font-weight:900!important;
  line-height:1!important;
  display:grid!important;
  place-items:center!important;
  cursor:pointer!important;
  box-shadow:0 10px 22px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.9)!important;
  -webkit-tap-highlight-color:transparent!important;
  z-index:3!important;
}
.chat-online-close:hover,.chat-online-close:focus-visible{background:#e2e8f0!important;outline:none!important;transform:translateY(-1px)!important}
.chat-online-head{
  position:relative!important;
  z-index:2!important;
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  padding:4px 0 16px!important;
  border-bottom:1px solid rgba(15,23,42,.08)!important;
  margin-bottom:12px!important;
  padding-left:48px!important;
}
.chat-online-head>span{
  width:54px!important;
  height:54px!important;
  min-width:54px!important;
  border-radius:20px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#0f766e,#14b8a6)!important;
  color:#fff!important;
  box-shadow:0 16px 36px rgba(20,184,166,.28),inset 0 1px 0 rgba(255,255,255,.28)!important;
}
.chat-online-head svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.chat-online-head h3{margin:0!important;font-size:20px!important;font-weight:1000!important;color:#0f172a!important;line-height:1.25!important}.chat-online-head p{margin:4px 0 0!important;color:#64748b!important;font-size:12.5px!important;font-weight:800!important;line-height:1.5!important}
.chat-online-list{
  position:relative!important;
  z-index:2!important;
  display:grid!important;
  gap:10px!important;
  max-height:calc(min(86vh,760px) - 112px)!important;
  max-height:calc(min(86dvh,760px) - 112px)!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  padding:2px 2px 4px!important;
  scrollbar-width:thin!important;
}
.chat-online-list>em{display:block!important;padding:22px!important;text-align:center!important;color:#64748b!important;font-style:normal!important;font-weight:900!important;background:linear-gradient(135deg,#f8fafc,#f1f5f9)!important;border:1px dashed rgba(15,23,42,.12)!important;border-radius:20px!important}
.chat-online-user{
  width:100%!important;
  min-height:66px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.92)!important;
  display:grid!important;
  grid-template-columns:48px minmax(0,1fr) auto!important;
  grid-template-areas:'avatar name arrow' 'avatar note arrow'!important;
  gap:2px 11px!important;
  align-items:center!important;
  text-align:right!important;
  padding:10px 12px!important;
  cursor:pointer!important;
  color:#0f172a!important;
  box-shadow:0 12px 28px rgba(15,23,42,.06),inset 0 1px 0 rgba(255,255,255,.75)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
  box-sizing:border-box!important;
  -webkit-tap-highlight-color:transparent!important;
}
.chat-online-user::after{content:'›'!important;grid-area:arrow!important;font-size:26px!important;font-weight:900!important;color:#94a3b8!important;line-height:1!important;transform:scaleX(-1)!important}
.chat-online-user:hover,.chat-online-user:focus-visible{transform:translateY(-2px)!important;border-color:rgba(20,184,166,.42)!important;box-shadow:0 18px 40px rgba(20,184,166,.15)!important;outline:none!important;background:#fff!important}
.chat-online-user:disabled{cursor:default!important;opacity:1!important}.chat-online-user:disabled::after{display:none!important}.chat-online-user:disabled:hover{transform:none!important;border-color:rgba(15,23,42,.08)!important;box-shadow:0 12px 28px rgba(15,23,42,.06)!important;background:#fff!important}
.chat-online-user span{grid-area:avatar!important;width:48px!important;height:48px!important;border-radius:18px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#e0f2fe,#ccfbf1)!important;color:#0f766e!important;font-weight:1000!important;font-size:16px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important}
.chat-online-user b{grid-area:name!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;font-size:14.5px!important;font-weight:1000!important;color:#0f172a!important;line-height:1.25!important}.chat-online-user small{grid-area:note!important;color:#64748b!important;font-size:11.5px!important;font-weight:800!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;line-height:1.35!important}
.chat-online-user.me{background:linear-gradient(135deg,#f0fdfa,#ffffff)!important;border-color:rgba(20,184,166,.30)!important}.chat-online-user.me span{background:linear-gradient(135deg,#14b8a6,#22c55e)!important;color:#fff!important}
body.chat-online-open{overflow:hidden!important;touch-action:none!important}
@media(max-width:720px){
  .chat-wa-head,.chat-app-head{gap:8px!important}
  .chat-wa-room-meta{min-width:0!important;flex:1 1 auto!important;overflow:hidden!important}
  .chat-wa-room-meta>div{min-width:0!important;overflow:hidden!important}
  .chat-wa-head h1,.chat-app-head h1{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .chat-wa-head p,.chat-app-head p{max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
  .chat-room-actions{gap:6px!important;min-width:auto!important;flex-shrink:0!important}
  .chat-room-online-btn{height:40px!important;min-width:58px!important;max-width:74px!important;padding:0 8px!important;gap:5px!important}
  .chat-room-online-btn svg{width:20px!important;height:20px!important;min-width:20px!important}
  .chat-room-online-btn b{min-width:22px!important;height:22px!important;padding:0 6px!important;font-size:11.5px!important}
  .chat-wa-exit{height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:8px 11px!important;white-space:nowrap!important}
}
@media(max-width:520px){
  .chat-online-modal{align-items:flex-end!important;padding:10px 10px max(10px,env(safe-area-inset-bottom))!important}
  .chat-online-card{width:100%!important;max-width:100%!important;max-height:calc(100dvh - 20px)!important;border-radius:28px 28px 22px 22px!important;padding:16px 14px 14px!important}
  .chat-online-head{gap:10px!important;padding-left:46px!important;margin-bottom:10px!important}
  .chat-online-head>span{width:48px!important;height:48px!important;min-width:48px!important;border-radius:18px!important}
  .chat-online-head h3{font-size:18px!important}.chat-online-head p{font-size:11.5px!important}
  .chat-online-close{top:10px!important;left:10px!important;width:36px!important;height:36px!important}
  .chat-online-list{max-height:calc(100dvh - 124px)!important;gap:8px!important}
  .chat-online-user{min-height:62px!important;grid-template-columns:44px minmax(0,1fr) auto!important;padding:9px 10px!important;border-radius:18px!important}
  .chat-online-user span{width:44px!important;height:44px!important;border-radius:16px!important}
}
@media(max-width:380px){
  .chat-room-actions{gap:5px!important}
  .chat-room-online-btn{min-width:50px!important;max-width:58px!important;padding:0 6px!important}
  .chat-room-online-btn svg{width:18px!important;height:18px!important;min-width:18px!important}
  .chat-room-online-btn b{min-width:19px!important;height:19px!important;font-size:10.5px!important;padding:0 5px!important}
  .chat-wa-exit{font-size:12px!important;padding-inline:9px!important}
  .chat-online-card{border-radius:24px 24px 18px 18px!important;padding:14px 12px 12px!important}
  .chat-online-head>span{width:44px!important;height:44px!important;min-width:44px!important}.chat-online-head svg{width:23px!important;height:23px!important}.chat-online-head h3{font-size:17px!important}.chat-online-head p{font-size:11px!important}
}


/* v178: إصلاح تبديل أيقونة الصوتية وحالات تحكم المشرف */
.chat-public-body .chat-wa-voice-inline.playing .chat-wa-voice-play{background:linear-gradient(135deg,#0f766e,#14b8a6)!important;box-shadow:0 10px 26px rgba(15,118,110,.28)!important}
.chat-public-body .chat-wa-voice-play svg,
.chat-public-body .chat-wa-voice-play .chat-wa-play-icon,
.chat-public-body .chat-wa-voice-play .chat-wa-pause-icon{display:block!important;width:21px!important;height:21px!important;min-width:21px!important;min-height:21px!important;color:#fff!important;fill:currentColor!important;stroke:none!important;opacity:1!important;visibility:visible!important;margin:0!important;position:relative!important;z-index:3!important;overflow:visible!important}
.chat-public-body .chat-wa-voice-play svg path{fill:currentColor!important;stroke:none!important;opacity:1!important;visibility:visible!important}
.chat-online-user.me{cursor:default!important;opacity:.88!important}
.chat-online-user.me:after{content:'لا تظهر خيارات الإدارة لحسابك الحالي';display:block;grid-column:2/-1;color:#94a3b8;font-size:10px;font-weight:800;margin-top:2px}

/* v179: نوافذ الدردشة الاحترافية ومنع حذف رسالة المستخدم عند الجميع */
.chat-modern-modal{
  position:fixed!important;inset:0!important;z-index:2147483000!important;display:grid!important;place-items:center!important;
  padding:16px!important;background:rgba(2,6,23,.66)!important;backdrop-filter:blur(16px) saturate(130%)!important;-webkit-backdrop-filter:blur(16px) saturate(130%)!important;
}
.chat-modern-card{
  position:relative!important;width:min(430px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;
  border-radius:30px!important;background:linear-gradient(180deg,#ffffff,#f8fafc)!important;color:#0f172a!important;
  border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 32px 90px rgba(2,6,23,.38),inset 0 1px 0 rgba(255,255,255,.9)!important;
  padding:26px 22px 20px!important;text-align:center!important;font-family:Tajawal,Tahoma,Arial,sans-serif!important;
}
.chat-modern-card:before{content:'';position:absolute;inset:0 0 auto 0;height:7px;background:linear-gradient(90deg,#14b8a6,#2563eb,#8b5cf6);border-radius:30px 30px 0 0}
.chat-modern-x{position:absolute!important;top:12px!important;left:12px!important;width:38px!important;height:38px!important;border:0!important;border-radius:15px!important;background:#eef2f7!important;color:#0f172a!important;font-size:24px!important;line-height:1!important;cursor:pointer!important}
.chat-modern-icon{width:64px!important;height:64px!important;margin:0 auto 12px!important;border-radius:22px!important;display:grid!important;place-items:center!important;background:linear-gradient(135deg,#ecfeff,#dbeafe)!important;color:#0f766e!important;box-shadow:0 16px 34px rgba(20,184,166,.18)!important}
.chat-modern-icon svg{width:32px!important;height:32px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.35!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.chat-modern-card h3{margin:6px 0 8px!important;font-size:21px!important;font-weight:1000!important;color:#0f172a!important;line-height:1.35!important}
.chat-modern-card p{margin:0 0 18px!important;color:#64748b!important;font-size:14px!important;font-weight:800!important;line-height:1.9!important}
.chat-modern-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:4px!important}
.chat-modern-actions button{height:46px!important;border:0!important;border-radius:16px!important;font-weight:1000!important;cursor:pointer!important;font-family:inherit!important;font-size:14px!important}
.chat-modern-actions [data-no]{background:#f1f5f9!important;color:#334155!important}.chat-modern-actions [data-yes],.chat-modern-actions [data-ok]{background:linear-gradient(135deg,#0f766e,#14b8a6)!important;color:#fff!important;box-shadow:0 14px 30px rgba(20,184,166,.22)!important}
.chat-notice-modal .chat-modern-actions{grid-template-columns:1fr!important}.chat-notice-modal.success .chat-modern-icon{background:linear-gradient(135deg,#dcfce7,#ccfbf1)!important;color:#047857!important}
@media(max-width:420px){.chat-modern-modal{padding:10px!important;place-items:end center!important}.chat-modern-card{width:100%!important;border-radius:26px 26px 22px 22px!important;padding:24px 16px 16px!important}.chat-modern-actions{grid-template-columns:1fr!important}.chat-modern-card h3{font-size:19px!important}.chat-modern-card p{font-size:13px!important}}
.chat-edit-overlay{z-index:2147483000!important;background:rgba(2,6,23,.66)!important;backdrop-filter:blur(16px) saturate(130%)!important;-webkit-backdrop-filter:blur(16px) saturate(130%)!important;padding:16px!important}
.chat-edit-card{width:min(470px,calc(100vw - 28px))!important;max-height:calc(100dvh - 28px)!important;overflow:auto!important;border-radius:30px!important;border:1px solid rgba(255,255,255,.72)!important;box-shadow:0 32px 90px rgba(2,6,23,.38)!important;padding:22px!important}
.chat-edit-card h3{font-size:21px!important;text-align:center!important}.chat-edit-card textarea{border-radius:20px!important;background:#fff!important}.chat-edit-card>div{display:grid!important;grid-template-columns:1fr 1fr!important}.chat-edit-card button{height:46px!important;border-radius:16px!important}.chat-edit-card [data-yes]{background:linear-gradient(135deg,#0f766e,#14b8a6)!important}
@media(max-width:420px){.chat-edit-overlay{place-items:end center!important;padding:10px!important}.chat-edit-card{width:100%!important;border-radius:26px!important}.chat-edit-card>div{grid-template-columns:1fr!important}}

/* v180: تحسين حذف الرسائل ونوافذ الدردشة */
.chat-edit-card textarea,
.chat-edit-card textarea:focus,
.chat-edit-card textarea::placeholder{
  color:#0f172a!important;
  -webkit-text-fill-color:#0f172a!important;
  caret-color:#0f766e!important;
}
.chat-edit-card textarea::placeholder{opacity:.55!important}
.chat-confirm-overlay.chat-modern-modal,
.chat-choice-overlay.chat-modern-modal,
.chat-edit-overlay{
  z-index:2147483600!important;
  background:rgba(2,6,23,.68)!important;
  backdrop-filter:blur(18px) saturate(135%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(135%)!important;
}
.chat-modern-card,
.chat-choice-card,
.chat-edit-card{
  color:#0f172a!important;
  text-align:center!important;
  background:linear-gradient(180deg,#ffffff 0%,#f8fafc 100%)!important;
  border:1px solid rgba(255,255,255,.82)!important;
  box-shadow:0 32px 95px rgba(2,6,23,.42)!important;
}
.chat-modern-card p,
.chat-choice-card p{color:#475569!important}
.chat-choice-card p b{font-size:17px!important;font-weight:1000!important;color:#0f172a!important}
.chat-choice-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;margin-top:4px!important}
.chat-choice-actions button{
  width:100%!important;
  min-height:46px!important;
  border:0!important;
  border-radius:16px!important;
  background:#f1f5f9!important;
  color:#0f172a!important;
  font-weight:1000!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.06)!important;
}
.chat-choice-actions button:hover{background:#e2e8f0!important;transform:translateY(-1px)!important}
.chat-choice-actions button:last-child{background:#fee2e2!important;color:#991b1b!important}
.chat-message-menu button[data-act="delete_message"] b{color:#991b1b!important}
@media(max-width:420px){
  .chat-confirm-overlay.chat-modern-modal,
  .chat-choice-overlay.chat-modern-modal,
  .chat-edit-overlay{padding:10px!important;place-items:end center!important}
  .chat-modern-card,.chat-choice-card,.chat-edit-card{width:100%!important;max-height:calc(100dvh - 20px)!important;overflow:auto!important;border-radius:26px!important;padding:24px 16px 16px!important}
}
.public-live-stream{width:100%;height:100%;background:#020617;border-radius:inherit;overflow:hidden;display:grid;place-items:center}.public-live-stream video{width:100%;height:100%;object-fit:contain;background:#020617}.public-live-stream .live-empty{color:#fff;background:rgba(15,23,42,.86);padding:14px 18px;border-radius:18px;font-weight:900}

/* v184: عنصر كاميرا البث المباشر */
.public-live-camera{width:100%;height:100%;min-height:260px;display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:inherit;background:linear-gradient(135deg,#020617,#0f172a 48%,#1d4ed8);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);overflow:hidden}
.live-camera-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.live-camera-head strong{font-size:18px}.live-camera-head small{opacity:.78;font-weight:700}.live-camera-stage{position:relative;flex:1;min-height:160px;border-radius:18px;overflow:hidden;background:#020617;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12)}
.live-camera-stage video{width:100%;height:100%;object-fit:cover;background:#020617}.live-camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;text-align:center;padding:16px;background:radial-gradient(circle at top,rgba(59,130,246,.25),rgba(2,6,23,.88));font-weight:900}.live-camera-placeholder[hidden]{display:none!important}
.live-camera-actions{display:flex;gap:10px;flex-wrap:wrap}.live-camera-actions button{border:0;border-radius:999px;padding:10px 16px;font-weight:900;cursor:pointer}.live-camera-start{background:#22c55e;color:#052e16}.live-camera-stop{background:#ef4444;color:#fff}.live-camera-actions button:disabled{opacity:.55;cursor:not-allowed}.live-camera-state{margin:0;padding:10px 12px;border-radius:14px;background:rgba(255,255,255,.1);font-weight:800;font-size:13px}

/* v186: مؤشرات إثبات عمل كاميرا البث المباشر */
.live-camera-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border-radius:999px;padding:10px 16px;font-weight:900;background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.18)}
.live-camera-link[hidden]{display:none!important}
.live-camera-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.live-camera-metrics span{display:flex;flex-direction:column;gap:3px;padding:9px 10px;border-radius:14px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1);min-width:0}
.live-camera-metrics b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff}
.live-camera-metrics em{font-style:normal;font-size:11px;opacity:.72;font-weight:800}
@media(max-width:720px){.live-camera-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.live-camera-actions button,.live-camera-link{flex:1}}
.public-live-embed iframe{width:100%;height:100%;border:0;background:#020617;border-radius:inherit;display:block}
.public-live-stream iframe{width:100%;height:100%;border:0;background:#020617;border-radius:inherit;display:block}

/* v199: زر نقل اللقطة للمصور ضمن عنصر كاميرا البث */
.live-camera-take{
  border:0;
  border-radius:999px;
  padding:10px 14px;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  color:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(34,197,94,.28);
}
.live-camera-take:disabled{opacity:.45;cursor:not-allowed;filter:grayscale(.25)}
.public-live-camera .live-camera-actions{gap:8px;flex-wrap:wrap}

/* v204: ملاءمة البث المباشر وملء الشاشة */
.public-live-stream,.public-live-embed,.global-live-program{width:100%;height:100%;min-height:100%;background:#000;overflow:hidden;border-radius:inherit;position:relative;}
.public-live-stream iframe,.public-live-embed iframe,.global-live-program iframe{width:100%;height:100%;min-height:100%;border:0;display:block;background:#000;border-radius:inherit;}
.public-live-stream video,.public-live-stream img,.live-camera-stage video{width:100%;height:100%;object-fit:cover;background:#000;}

/* v214 - clean photographer camera screen */
.public-live-camera{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;z-index:2147483500!important;background:#000!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;overflow:hidden!important;display:block!important}
.live-camera-clean-stage{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border-radius:0!important;background:#000!important;overflow:hidden!important;display:block!important}
.live-camera-clean-stage video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;background:#000!important;transform:none!important}
.live-camera-hidden-start{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;left:-9999px!important;top:-9999px!important}
.live-camera-exit{position:fixed!important;top:calc(env(safe-area-inset-top,0px) + 14px)!important;left:14px!important;z-index:2147483600!important;border:0!important;border-radius:999px!important;background:rgba(15,23,42,.78)!important;color:#fff!important;padding:11px 18px!important;font-weight:900!important;backdrop-filter:blur(12px)!important;box-shadow:0 12px 34px rgba(0,0,0,.35)!important}
.live-camera-exit:disabled{opacity:.45}
.live-camera-placeholder{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;background:#000!important;color:#fff!important;text-align:center!important;padding:30px!important;font-weight:900!important;font-size:18px!important}


/* v220: يجعل عنصر الفيديو عند كونه بثًا يملأ مساحة العرض بالكامل بدون فراغات */
.live-viewer-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;border-radius:0!important;background:#000!important;overflow:hidden!important;}
.live-viewer-fullscreen iframe,.live-viewer-fullscreen video,.live-viewer-fullscreen img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;object-fit:cover!important;background:#000!important;}
@supports not (height:100dvh){.live-viewer-fullscreen{height:100vh!important}}

/* v224: force live video element to occupy the entire viewport when used as a live broadcast viewer */
.live-broadcast-fullscreen-root,.live-viewer-fullscreen{position:fixed!important;inset:0!important;z-index:2147483000!important;width:100vw!important;height:100dvh!important;max-width:100vw!important;max-height:100dvh!important;margin:0!important;padding:0!important;border-radius:0!important;background:#000!important;overflow:hidden!important;display:block!important;transform:none!important;contain:none!important;}
.live-broadcast-fullscreen-root iframe,.live-viewer-fullscreen iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;border-radius:0!important;background:#000!important;display:block!important;}
.has-live-fullscreen-program{background:#000!important;overflow:hidden!important;}
@supports not (height:100dvh){.live-broadcast-fullscreen-root,.live-viewer-fullscreen{height:100vh!important}}

/* v237 - عنصر المعلق للبث المباشر */
.public-commentator-box{width:100%;height:100%;display:grid;place-items:center;text-align:center;background:linear-gradient(135deg,rgba(17,24,39,.96),rgba(88,28,135,.86));border:1px solid rgba(216,180,254,.36);border-radius:inherit;color:#fff;overflow:hidden;padding:14px;box-shadow:0 18px 48px rgba(88,28,135,.28)}
.public-commentator-box button{border:0;border-radius:18px;padding:12px 16px;background:linear-gradient(135deg,#7c3aed,#2563eb);color:#fff;font-weight:900;cursor:pointer;box-shadow:0 14px 32px rgba(37,99,235,.30)}
.public-commentator-box .commentator-start{display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;min-width:180px}
.public-commentator-box .commentator-start span{font-size:12px;color:#ede9fe;font-weight:700;line-height:1.5}.public-commentator-box .commentator-stop{background:linear-gradient(135deg,#dc2626,#7f1d1d)}
.public-commentator-box .commentator-state{margin:10px 0 0;font-size:12px;color:#e9d5ff;font-weight:800;line-height:1.6}
.edit-el .commentator-preview{background:linear-gradient(135deg,rgba(17,24,39,.96),rgba(88,28,135,.76));border:1px solid rgba(216,180,254,.38)}

/* v239 - مؤشرات صوت وسرعة نقل عنصر المعلق */
.public-commentator-box{--voice-level:0%}
.public-commentator-box .commentator-start,.public-commentator-box .commentator-stop{position:relative;isolation:isolate;gap:8px;overflow:hidden}
.public-commentator-box .commentator-start:before,.public-commentator-box .commentator-stop:before{content:"";position:absolute;inset:auto 0 0 0;height:4px;background:linear-gradient(90deg,#22c55e,#38bdf8,#a78bfa);transform-origin:right center;transform:scaleX(calc(var(--voice-level,0%) / 100));opacity:.95;z-index:-1;transition:transform .16s ease}
.commentator-sound-mark{width:38px;height:24px;display:inline-flex;align-items:end;justify-content:center;gap:4px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.24);padding:4px 7px;box-shadow:inset 0 0 18px rgba(255,255,255,.08)}
.commentator-sound-mark em{display:block;width:5px;height:8px;border-radius:999px;background:#fff;opacity:.78;animation:commentatorWave 1.05s ease-in-out infinite;transform-origin:bottom}
.commentator-sound-mark em:nth-child(2){height:14px;animation-delay:.12s}.commentator-sound-mark em:nth-child(3){height:10px;animation-delay:.24s}.commentator-sound-mark.live em{background:#86efac;box-shadow:0 0 12px rgba(134,239,172,.65)}
.commentator-speed{display:inline-flex;align-items:center;justify-content:center;margin-top:3px;padding:4px 9px;border-radius:999px;background:rgba(15,23,42,.42);border:1px solid rgba(255,255,255,.16);font-size:11px!important;color:#e0f2fe!important;font-weight:900!important;direction:ltr;unicode-bidi:plaintext}
@keyframes commentatorWave{0%,100%{transform:scaleY(.45);opacity:.55}50%{transform:scaleY(1.25);opacity:1}}
.stage-commentator-card small{display:block;line-height:1.7}

/* v242 - نافذة موافقة المعلق قبل بث الصوت */
.public-commentator-box{position:relative;overflow:visible}
.commentator-consent{position:absolute;inset:auto 0 100% 0;margin-bottom:12px;z-index:30;display:grid;place-items:center;filter:drop-shadow(0 18px 40px rgba(15,23,42,.28))}
.commentator-consent[hidden]{display:none!important}
.commentator-consent>div{width:min(360px,92vw);background:linear-gradient(145deg,#ffffff,#eef8ff);border:1px solid rgba(14,165,233,.32);border-radius:22px;padding:14px;color:#0f172a;text-align:center;box-shadow:0 20px 55px rgba(2,6,23,.22)}
.commentator-consent strong{display:block;font-size:16px;color:#082f49;margin-bottom:6px}
.commentator-consent p{margin:0 0 12px;color:#334155;font-weight:800;line-height:1.7;font-size:13px}
.commentator-consent nav{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.commentator-consent button{border:0;border-radius:14px;padding:10px 14px;font-weight:900;cursor:pointer}
.commentator-consent-ok{background:linear-gradient(135deg,#16a34a,#06b6d4);color:#fff;box-shadow:0 10px 24px rgba(14,165,233,.22)}
.commentator-consent-cancel{background:#e2e8f0;color:#334155}

/* v287: عنصر المعلق الصوتي الدائري ووميض النيون */
.public-commentator-box{background:linear-gradient(145deg,#0f172a,#312e81 55%,#581c87)!important;border:1px solid rgba(167,139,250,.45)!important;box-shadow:0 22px 55px rgba(88,28,135,.34),inset 0 0 34px rgba(255,255,255,.05)!important;color:#fff!important}
.public-commentator-box .commentator-mic-round{width:min(170px,82%);aspect-ratio:1/1;border-radius:50%!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:14px!important;margin:auto;background:radial-gradient(circle at 30% 20%,#a78bfa,#7c3aed 45%,#1d4ed8 100%)!important;color:#fff!important;box-shadow:0 0 0 8px rgba(124,58,237,.18),0 18px 42px rgba(37,99,235,.34),inset 0 0 24px rgba(255,255,255,.22)!important;border:1px solid rgba(255,255,255,.28)!important;position:relative;overflow:hidden}
.public-commentator-box .commentator-mic-round:after{content:"";position:absolute;inset:-10px;border-radius:inherit;background:conic-gradient(from 120deg,rgba(34,197,94,.0),rgba(34,197,94,.75),rgba(56,189,248,.75),rgba(167,139,250,.0));opacity:calc(.18 + (var(--voice-level,0%) / 130));filter:blur(9px);z-index:-1;animation:commentatorNeonSpin 2.2s linear infinite}
.public-commentator-box .commentator-mic-round.is-live{animation:commentatorNeonPulse .9s ease-in-out infinite alternate}
.commentator-mic-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.26)}
.commentator-mic-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.public-commentator-box .commentator-mic-round b{font-size:16px;color:#fff}.public-commentator-box .commentator-mic-round span{font-size:11px!important;color:#e0f2fe!important;line-height:1.45;max-width:130px}.public-commentator-box .commentator-state{color:#e0e7ff!important}
@keyframes commentatorNeonPulse{from{box-shadow:0 0 0 8px rgba(34,197,94,.16),0 18px 42px rgba(37,99,235,.34),0 0 18px rgba(34,197,94,.32)}to{box-shadow:0 0 0 14px rgba(34,197,94,.08),0 22px 56px rgba(34,197,94,.38),0 0 38px rgba(56,189,248,.42)}}
@keyframes commentatorNeonSpin{to{transform:rotate(360deg)}}

/* v314: عنصر التسعيرة العام */
/* Pricing barcode element v315 */
.pricing-widget{width:100%;height:100%;display:flex;flex-direction:column;gap:10px;padding:10px;border-radius:inherit;background:linear-gradient(145deg,#0f172a,#075985 58%,#0e7490);color:#fff;overflow:auto;box-shadow:inset 0 0 40px rgba(255,255,255,.06)}
.pricing-widget.pricing-camera-only{padding:0;background:#020617;overflow:hidden}
.pricing-camera{position:relative;min-height:100%;height:100%;border-radius:inherit;background:#020617;overflow:hidden;border:1px solid rgba(125,211,252,.35);display:grid;place-items:center}
.pricing-camera video{width:100%;height:100%;object-fit:cover;position:absolute;inset:0}
.pricing-scan-line{position:absolute;left:10%;right:10%;top:50%;height:3px;background:#ef4444;box-shadow:0 0 18px #ef4444;border-radius:99px;animation:pricingLine .62s infinite alternate;z-index:2}
.pricing-start{position:absolute;inset:0;margin:auto;width:min(78%,210px);height:58px;z-index:4;border:0;border-radius:20px;background:linear-gradient(135deg,#38bdf8,#2563eb);color:#fff;font-weight:900;display:inline-flex;align-items:center;justify-content:center;gap:9px;box-shadow:0 16px 36px rgba(14,165,233,.32)}
.pricing-start svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pricing-stop{position:absolute;top:10px;left:10px;z-index:5;border:0;border-radius:15px;padding:10px 14px;font-weight:900;background:linear-gradient(135deg,#a855f7,#7c3aed)!important;color:#fff;box-shadow:0 10px 28px rgba(124,58,237,.25)}
.pricing-status{position:absolute;right:10px;left:10px;bottom:10px;z-index:3;background:rgba(2,6,23,.72);border:1px solid rgba(255,255,255,.18);border-radius:14px;padding:8px;text-align:center;font-weight:900;color:#e0f2fe;backdrop-filter:blur(8px)}
.pricing-manual{display:flex;gap:8px;padding:8px;background:rgba(2,6,23,.95)}
.pricing-manual button,.pricing-add-cart,.pricing-open-report,.pricing-report-form button{border:0;border-radius:15px;padding:11px 13px;font-weight:900;background:linear-gradient(135deg,#38bdf8,#2563eb);color:#fff;box-shadow:0 10px 28px rgba(14,165,233,.22)}
.pricing-open-report{background:linear-gradient(135deg,#a855f7,#7c3aed)!important}
.pricing-manual input,.pricing-report-form input,.pricing-report-form select,.pricing-report-form textarea{flex:1;min-width:0;border:1px solid #dbeafe;border-radius:14px;padding:11px;background:#fff;color:#0f172a;font-weight:800}
.pricing-modal-overlay{z-index:999999!important}.pricing-modal-box{width:min(94vw,520px);max-height:90vh;overflow:auto;background:linear-gradient(145deg,#0f172a,#075985);border:1px solid rgba(125,211,252,.35);box-shadow:0 28px 90px rgba(2,6,23,.55)}
.pricing-modal-body{display:grid;gap:12px;color:#fff}.pricing-card{display:grid;gap:10px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:13px}.pricing-card-modal{background:rgba(15,23,42,.55)}.pricing-modal-title h3{margin:7px 0;color:#fff;font-size:24px}.pricing-modal-title p{margin:0;color:#bae6fd}.pricing-card strong{font-size:26px;color:#bbf7d0;direction:ltr;unicode-bidi:plaintext}.pricing-card del{color:#fecaca;font-size:16px;margin-inline-end:6px}.pricing-card small{color:#e0f2fe;font-weight:900}.pricing-barcode{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(2,6,23,.55);color:#fff;direction:ltr}.pricing-desc{max-height:150px;overflow:auto;color:#f8fafc;line-height:1.7}.pricing-qty{display:grid;grid-template-columns:48px 1fr 48px;gap:7px}.pricing-qty button{border:0;border-radius:12px;background:#e0f2fe;color:#0f172a;font-weight:900;font-size:18px}.pricing-qty input{text-align:center;border:1px solid #dbeafe;border-radius:12px;padding:10px}.pricing-modal-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pricing-report{display:grid;gap:10px}.pricing-report-form{display:grid;gap:8px;background:rgba(15,23,42,.72);border:1px solid rgba(216,180,254,.25);border-radius:22px;padding:12px}.pricing-report-form h3{margin:0;color:#fff}.pricing-photo{display:grid;gap:7px;padding:10px;border-radius:14px;background:rgba(255,255,255,.08);border:1px dashed rgba(255,255,255,.25);font-weight:900}.pricing-report-form small.ok{color:#bbf7d0;font-weight:900}.pricing-report-form small.err{color:#fecaca;font-weight:900}.pricing-notfound{display:grid;gap:6px;text-align:center;padding:18px;border-radius:22px;background:rgba(239,68,68,.16);border:1px solid rgba(248,113,113,.28);color:#fff}.pricing-notfound em{direction:ltr;color:#fff}
@media(max-width:520px){.pricing-modal-actions{grid-template-columns:1fr}.pricing-modal-box{width:96vw}}
@keyframes pricingLine{from{transform:translateY(-34px);background:#ef4444}to{transform:translateY(34px);background:#22c55e;box-shadow:0 0 18px #22c55e}}

/* v316 pricing quantity guard + polished report upload */
.pricing-stock-line b{color:#fff;background:rgba(34,197,94,.16);border:1px solid rgba(34,197,94,.28);border-radius:999px;padding:2px 8px}
.pricing-qty input:invalid{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,.14)}
.pricing-qty-error{background:rgba(239,68,68,.16);border:1px solid rgba(248,113,113,.32);color:#fecaca;border-radius:14px;padding:10px 12px;font-weight:900;line-height:1.7;text-align:center}
.pricing-report-fields{display:grid;gap:9px}
.pricing-photo{position:relative;overflow:hidden;min-height:86px;align-items:center;text-align:center;background:linear-gradient(135deg,rgba(56,189,248,.12),rgba(124,58,237,.14))!important;border:1px dashed rgba(125,211,252,.42)!important;color:#e0f2fe;cursor:pointer}
.pricing-photo span{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;background:rgba(255,255,255,.1);padding:10px 12px;color:#fff}
.pricing-photo input{position:absolute;inset:0;opacity:0;cursor:pointer;z-index:3}
.pricing-photo-preview{width:100%;max-height:190px;object-fit:cover;border-radius:16px;border:1px solid rgba(255,255,255,.18);margin-top:8px;box-shadow:0 16px 35px rgba(2,6,23,.28)}
.pricing-report-loading{display:grid;place-items:center;gap:9px;padding:18px;border-radius:20px;background:rgba(14,165,233,.13);border:1px solid rgba(125,211,252,.28);color:#e0f2fe;text-align:center}
.pricing-report-loading i{width:34px;height:34px;border-radius:50%;border:3px solid rgba(255,255,255,.22);border-top-color:#38bdf8;animation:pricingSpin .8s linear infinite}
@keyframes pricingSpin{to{transform:rotate(360deg)}}
.pricing-report-form.sending{pointer-events:none;opacity:.96}

/* v318: pricing cart is cost-only + report image loading */
.pricing-cart-summary{display:grid;gap:10px;margin-top:14px;padding:14px;border-radius:18px;background:linear-gradient(135deg,rgba(34,197,94,.16),rgba(14,165,233,.12));border:1px solid rgba(125,211,252,.28);color:#fff;text-align:center}
.pricing-cart-summary strong{font-size:20px;color:#bbf7d0}.pricing-cart-summary p{margin:0;color:#dbeafe;font-weight:800;line-height:1.8}
.report-types-list#reportTypesList{display:none!important}
.report-image-loader{display:grid;gap:8px;margin-top:12px;padding:12px;border-radius:16px;background:rgba(14,165,233,.12);border:1px solid rgba(125,211,252,.28);color:#e0f2fe;font-weight:900;text-align:center}
.report-image-loader .bar{height:10px;border-radius:999px;background:rgba(255,255,255,.14);overflow:hidden}.report-image-loader i{display:block;height:100%;width:0%;background:linear-gradient(90deg,#38bdf8,#22c55e);border-radius:inherit;transition:width .2s ease}.report-image-loader small{color:#bfdbfe}

/* v321 pricing barcode missing report + camera controls */
.pricing-start[hidden],.pricing-stop[hidden]{display:none!important}
.pricing-camera{isolation:isolate}
.pricing-stop{top:8px!important;left:8px!important;max-width:calc(100% - 16px);min-height:38px;padding:8px 12px!important;border-radius:14px!important;font-size:13px;line-height:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;z-index:8!important}
.pricing-start{max-width:calc(100% - 28px);min-width:0}
.pricing-readonly-barcode{display:grid;gap:7px;width:100%;margin:14px 0}
.pricing-readonly-barcode small{font-weight:900;color:#bae6fd}
.pricing-readonly-barcode input{width:100%;box-sizing:border-box;border:1px solid rgba(125,211,252,.38);border-radius:16px;padding:12px;background:rgba(15,23,42,.86);color:#e0f2fe;font-weight:900;text-align:center;direction:ltr}
.pricing-unknown-card .pricing-notfound{display:grid;gap:12px;text-align:center}
.pricing-unknown-card .pricing-open-report{width:100%;justify-content:center}

/* v322: pricing report form states */
.pricing-report-loading[hidden],.pricing-report-success[hidden],.pricing-report-fields[hidden],.pricing-report-submit[hidden]{display:none!important}
.pricing-report-success{display:grid;place-items:center;gap:10px;padding:20px;border-radius:22px;background:linear-gradient(135deg,rgba(34,197,94,.22),rgba(14,165,233,.12));border:1px solid rgba(74,222,128,.42);color:#ecfdf5;text-align:center;box-shadow:0 18px 45px rgba(34,197,94,.18),inset 0 0 30px rgba(255,255,255,.04)}
.pricing-report-success svg{width:58px;height:58px;border-radius:50%;padding:12px;background:linear-gradient(135deg,#22c55e,#16a34a);stroke:#fff;stroke-width:3;fill:none;box-shadow:0 0 28px rgba(34,197,94,.45)}
.pricing-report-success h3{margin:0!important;color:#fff!important;font-size:21px!important}
.pricing-report-success p{margin:0;color:#bbf7d0;font-weight:900;direction:ltr}
.pricing-report-loading span{color:#bae6fd;font-weight:800;font-size:13px}

/* v324 pricing one-piece limit */
.pricing-one-limit{display:inline-flex;margin-inline-start:8px;padding:4px 9px;border-radius:999px;background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;border:1px solid rgba(245,158,11,.35);font-style:normal;font-weight:900;font-size:11px}.pricing-qty input[readonly]{background:rgba(254,243,199,.9)!important;color:#92400e!important;border-color:#fbbf24!important}.pricing-qty-error{margin-top:8px;padding:9px 11px;border-radius:14px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;font-weight:900;font-size:12px}

/* v325: product allowed quantity field */
.field-hint{display:block;margin-top:6px;color:#93c5fd;font-size:12px;font-weight:800;line-height:1.6}
.pricing-one-limit{display:inline-flex;margin-inline-start:6px;padding:2px 8px;border-radius:999px;background:rgba(56,189,248,.16);border:1px solid rgba(125,211,252,.32);color:#e0f2fe;font-style:normal;font-weight:900}

/* v326 accounting element */
.accounting-widget{display:grid;gap:10px;width:100%;height:100%;overflow:auto;padding:10px;box-sizing:border-box;background:linear-gradient(145deg,rgba(2,6,23,.96),rgba(8,47,73,.92));border-radius:inherit;color:#e0f2fe}
.accounting-manual{display:grid;grid-template-columns:1fr auto;gap:8px}.accounting-manual input{min-width:0;border:1px solid rgba(125,211,252,.25);border-radius:14px;padding:10px;background:rgba(255,255,255,.08);color:#fff}.accounting-manual button,.accounting-qty button{border:0;border-radius:12px;padding:9px 12px;background:linear-gradient(135deg,#06b6d4,#2563eb);color:#fff;font-weight:900}.accounting-list{display:grid;gap:8px}.accounting-list h3{margin:0;font-size:15px}.accounting-items{display:grid;gap:8px}.accounting-empty{margin:0;padding:12px;border-radius:14px;background:rgba(255,255,255,.07);color:#bae6fd}.accounting-item-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:10px;border:1px solid rgba(125,211,252,.16);border-radius:16px;background:rgba(255,255,255,.07)}.accounting-item-row b,.accounting-item-row small{display:block}.accounting-item-row small{color:#a5f3fc}.accounting-qty{display:flex;gap:5px;align-items:center}.accounting-qty input{width:56px;text-align:center;border:1px solid rgba(255,255,255,.18);border-radius:10px;padding:8px;background:#0f172a;color:#fff}.accounting-del{background:linear-gradient(135deg,#ef4444,#be123c)!important}.accounting-total{display:flex;justify-content:space-between;align-items:center;padding:12px;border-radius:16px;background:rgba(34,211,238,.14);border:1px solid rgba(34,211,238,.22);font-weight:900}

/* v330: cashier cart QR + return buttons */
.pricing-cart-barcode{display:grid;place-items:center;gap:8px;padding:12px;border-radius:18px;background:rgba(255,255,255,.10);border:1px solid rgba(125,211,252,.28)}
.pricing-cart-barcode b{color:#fff}.pricing-cart-barcode small{color:#dbeafe;font-weight:800;line-height:1.6}.pricing-cart-qr{width:150px;height:150px;display:grid;place-items:center;background:#fff;border-radius:18px;padding:8px;box-shadow:0 15px 40px rgba(2,6,23,.22)}

/* v336: زر تحويل المكالمة واضح في واجهة المتصل */
.customer-call-phone .ccv-actions .ccv-transfer{
  flex:0 0 74px!important;width:74px!important;height:74px!important;min-width:74px!important;max-width:74px!important;min-height:74px!important;max-height:74px!important;
  aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;line-height:1!important;box-sizing:border-box!important;overflow:visible!important;position:relative!important;
  background:linear-gradient(135deg,#f59e0b,#ec4899)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;box-shadow:0 14px 34px rgba(236,72,153,.25)!important;
}
.customer-call-phone .ccv-actions .ccv-transfer svg{width:24px;height:24px;display:block;flex:0 0 auto}
.customer-call-phone .ccv-actions .ccv-transfer span{position:absolute;transform:translateY(55px);font-size:12px;color:#fff7ed;font-weight:900;white-space:nowrap}
.customer-call-phone.phase-ready .ccv-transfer,.customer-call-phone.phase-ended .ccv-transfer{display:none!important}
.customer-call-phone.phase-ringing .ccv-transfer,.customer-call-phone.phase-active .ccv-transfer{display:inline-flex!important}

/* v338: نقل تحويل المكالمة من واجهة المتصل إلى واجهات الموظفين فقط */
.customer-call-phone .ccv-transfer{display:none!important}
.cc-call-toolbar #ccTransferAccounting,.cashier-transfer-call{display:inline-flex!important}

/* v348: واجهة متجر إلكتروني متقدمة للصفحات المخصصة */
.enhanced-store{display:grid;gap:12px;width:100%;height:100%;overflow:auto;padding:8px;box-sizing:border-box}
.storefront-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;border-radius:24px;background:linear-gradient(135deg,rgba(15,23,42,.96),rgba(22,163,74,.78));color:#fff;box-shadow:0 16px 38px rgba(0,0,0,.22)}
.storefront-head small{display:block;color:#bbf7d0;font-weight:900}.storefront-head b{display:block;font-size:22px}.storefront-head p{margin:4px 0 0;color:#e2e8f0;font-size:12px;line-height:1.6}.storefront-cart{flex:0 0 auto;background:rgba(255,255,255,.14)!important;border:1px solid rgba(255,255,255,.24)!important}
.storefront-offer-hero{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;border-radius:22px;background:radial-gradient(circle at top right,rgba(250,204,21,.32),transparent 45%),linear-gradient(135deg,#7f1d1d,#ea580c);color:#fff;box-shadow:0 14px 34px rgba(234,88,12,.25)}
.storefront-offer-hero span{display:inline-grid;padding:4px 10px;border-radius:999px;background:rgba(255,255,255,.18);font-size:11px;font-weight:1000}.storefront-offer-hero strong{display:block;margin-top:5px;font-size:18px}.storefront-offer-hero small{display:block;color:#ffedd5}.storefront-offer-hero>b{font-size:18px;white-space:nowrap}
.storefront-tools{display:grid;grid-template-columns:1.2fr .9fr .9fr;gap:8px}.storefront-tools input,.storefront-tools select{min-width:0;border:0;border-radius:16px;padding:11px 12px;font-family:inherit;font-weight:900;background:#fff;color:#0f172a;box-shadow:0 10px 24px rgba(15,23,42,.12)}
.enhanced-product-card{position:relative;overflow:hidden;background:linear-gradient(145deg,rgba(15,23,42,.92),rgba(30,41,59,.82))!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;box-shadow:0 12px 32px rgba(0,0,0,.18)}
.enhanced-product-card img,.enhanced-product-card .no-img{border-radius:18px}.store-product-body{display:grid;gap:5px;align-content:start}.store-cat{justify-self:start;font-style:normal;font-size:11px;font-weight:1000;color:#bbf7d0;background:rgba(34,197,94,.16);border:1px solid rgba(134,239,172,.22);padding:3px 8px;border-radius:999px}.store-offer-ribbon{position:absolute;top:10px;left:10px;font-style:normal;font-weight:1000;color:#fff;background:linear-gradient(135deg,#ef4444,#f97316);padding:5px 9px;border-radius:999px;box-shadow:0 10px 24px rgba(239,68,68,.28)}.store-countdown{display:inline-grid;width:max-content;color:#fde68a;background:rgba(250,204,21,.12);border:1px solid rgba(250,204,21,.28);padding:4px 8px;border-radius:999px;font-weight:1000}.quick-add-store{border:0;border-radius:14px;padding:9px 10px;background:linear-gradient(135deg,#22c55e,#0ea5e9);color:#fff;font-family:inherit;font-weight:1000;cursor:pointer;box-shadow:0 10px 24px rgba(14,165,233,.22)}
@media(max-width:560px){.storefront-tools{grid-template-columns:1fr}.storefront-head{align-items:flex-start}.storefront-offer-hero{align-items:flex-start;flex-direction:column}}


/* v350 standalone full-page accounting store */
html.standalone-store-html,body.standalone-store-public{min-height:100%;width:100%;margin:0;overflow-x:hidden!important;background:#07111f;color:#fff}
body.standalone-store-public{font-family:Cairo,Tahoma,Arial,sans-serif;background:radial-gradient(circle at 12% 10%,rgba(34,197,94,.20),transparent 34%),radial-gradient(circle at 88% 0,rgba(14,165,233,.18),transparent 32%),linear-gradient(135deg,#07111f,#0f172a 48%,#064e3b);}
body.standalone-store-public .phone-page{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;background:transparent!important;box-shadow:none!important;border:0!important;overflow:visible!important}
.standalone-store-canvas{position:relative!important;width:100%!important;min-width:0!important;max-width:none!important;min-height:100vh!important;margin:0!important;padding:0!important;overflow:visible!important;background:transparent!important}
.standalone-store-shell{width:min(1440px,100%);margin:0 auto;padding:28px clamp(14px,3vw,44px) 54px;box-sizing:border-box;display:grid;gap:18px}
.standalone-store-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.7fr);gap:18px;align-items:stretch}.standalone-store-title,.standalone-store-spotlight,.standalone-store-topbar,.standalone-store-wrap{border:1px solid rgba(255,255,255,.14);background:linear-gradient(145deg,rgba(15,23,42,.76),rgba(15,118,110,.22));box-shadow:0 24px 70px rgba(0,0,0,.28);backdrop-filter:blur(14px);border-radius:34px}.standalone-store-title{padding:34px}.standalone-store-title span{display:inline-grid;padding:7px 13px;border-radius:999px;background:rgba(34,197,94,.18);color:#bbf7d0;font-weight:1000}.standalone-store-title h1{margin:13px 0 10px;font-size:clamp(32px,5vw,64px);line-height:1.05;color:#fff}.standalone-store-title p{margin:0;max-width:850px;color:#dbeafe;font-size:clamp(15px,1.6vw,20px);line-height:1.9}.standalone-store-badges{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.standalone-store-badges b{padding:10px 14px;border-radius:999px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.12);color:#fff}.standalone-store-spotlight{padding:28px;display:grid;align-content:center;background:radial-gradient(circle at top left,rgba(250,204,21,.30),transparent 42%),linear-gradient(135deg,rgba(127,29,29,.8),rgba(234,88,12,.7))}.standalone-store-spotlight small{color:#fde68a;font-weight:1000}.standalone-store-spotlight strong{font-size:clamp(24px,3vw,38px);line-height:1.25}.standalone-store-spotlight p{color:#ffedd5;line-height:1.8}.standalone-store-topbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px}.standalone-store-topbar b{display:block;font-size:22px}.standalone-store-topbar small{display:block;color:#cbd5e1}.standalone-store-cart{background:linear-gradient(135deg,#22c55e,#0ea5e9)!important;width:58px!important;height:58px!important;border-radius:22px!important}.standalone-store-wrap{padding:18px;overflow:visible}.standalone-store-wrap .smart-store{height:auto!important;min-height:520px;overflow:visible!important;padding:0!important}.standalone-store-wrap .storefront-head{display:none}.standalone-store-wrap .storefront-offer-hero{padding:20px 22px;border-radius:28px}.standalone-store-wrap .storefront-tools{grid-template-columns:1.4fr .8fr .8fr;gap:12px;margin:0 0 16px}.standalone-store-wrap .storefront-tools input,.standalone-store-wrap .storefront-tools select{border-radius:20px;padding:15px 16px;font-size:15px}.standalone-store-wrap .store-products-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.standalone-store-wrap .store-product{position:relative;grid-template-columns:1fr!important;align-content:start;min-height:100%;border-radius:28px;padding:14px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));border-color:rgba(255,255,255,.16);color:#fff;box-shadow:0 16px 42px rgba(0,0,0,.18);transition:transform .18s ease,box-shadow .18s ease}.standalone-store-wrap .store-product:hover{transform:translateY(-4px);box-shadow:0 22px 58px rgba(0,0,0,.28)}.standalone-store-wrap .store-product img,.standalone-store-wrap .store-product .no-img{width:100%!important;height:190px!important;border-radius:22px;background:linear-gradient(135deg,rgba(34,197,94,.18),rgba(14,165,233,.16))}.standalone-store-wrap .store-product strong{font-size:20px;color:#fff}.standalone-store-wrap .store-product p{font-size:14px;color:#dbeafe;min-height:42px}.standalone-store-wrap .store-product span{font-size:18px;color:#fff}.standalone-store-wrap .quick-add-store{padding:13px 14px;border-radius:18px;font-size:15px}.standalone-store-public .cart-box{max-width:min(560px,94vw);border-radius:30px;background:#0f172a;color:#fff}
@media(max-width:850px){.standalone-store-hero{grid-template-columns:1fr}.standalone-store-shell{padding-top:14px}.standalone-store-title{padding:24px}.standalone-store-topbar{position:sticky;top:8px;z-index:50}.standalone-store-wrap{padding:12px}.standalone-store-wrap .storefront-tools{grid-template-columns:1fr}.standalone-store-wrap .store-products-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}.standalone-store-wrap .store-product img,.standalone-store-wrap .store-product .no-img{height:145px!important}.standalone-store-wrap .store-product{border-radius:22px;padding:10px}.standalone-store-wrap .store-product strong{font-size:16px}}


/* v352 - Fluid standalone store sizing for all browser widths */
.standalone-store-public{font-size:clamp(12px, .9vw + .35rem, 16px)}
.standalone-store-shell{padding:clamp(10px,2.4vw,28px) clamp(8px,3vw,44px) clamp(22px,4vw,54px);gap:clamp(8px,1.4vw,18px)}
.standalone-store-title,.standalone-store-spotlight,.standalone-store-topbar,.standalone-store-wrap{border-radius:clamp(16px,2.3vw,34px)}
.standalone-store-title{padding:clamp(14px,3vw,34px)}
.standalone-store-title span{padding:clamp(4px,.8vw,7px) clamp(8px,1.3vw,13px);font-size:clamp(10px,.8vw,14px)}
.standalone-store-title h1{font-size:clamp(22px,5vw,64px)}
.standalone-store-title p{font-size:clamp(12px,1.4vw,20px);line-height:1.65}
.standalone-store-badges{gap:clamp(5px,1vw,10px);margin-top:clamp(10px,2vw,22px)}
.standalone-store-badges b{padding:clamp(6px,.9vw,10px) clamp(8px,1.2vw,14px);font-size:clamp(10px,.85vw,14px)}
.standalone-store-spotlight{padding:clamp(14px,2.5vw,28px)}
.standalone-store-spotlight strong{font-size:clamp(18px,3vw,38px)}
.standalone-store-spotlight p{font-size:clamp(11px,1vw,15px);line-height:1.65}
.standalone-store-topbar{padding:clamp(9px,1.4vw,16px) clamp(10px,1.6vw,18px);gap:clamp(8px,1vw,14px)}
.standalone-store-topbar b{font-size:clamp(15px,1.6vw,22px)}
.standalone-store-topbar small{font-size:clamp(10px,.9vw,13px)}
.standalone-store-cart{width:clamp(42px,4.2vw,58px)!important;height:clamp(42px,4.2vw,58px)!important;border-radius:clamp(14px,1.7vw,22px)!important}
.standalone-store-wrap{padding:clamp(8px,1.5vw,18px)}
.standalone-store-wrap .smart-store{min-height:clamp(360px,55vh,520px)}
.standalone-store-wrap .storefront-offer-hero{padding:clamp(10px,1.8vw,22px);border-radius:clamp(14px,2vw,28px)}
.standalone-store-wrap .storefront-offer-hero strong,.standalone-store-wrap .storefront-offer-hero>b{font-size:clamp(13px,1.5vw,18px)}
.standalone-store-wrap .storefront-tools{gap:clamp(7px,1vw,12px);margin:0 0 clamp(8px,1.3vw,16px)}
.standalone-store-wrap .storefront-tools input,.standalone-store-wrap .storefront-tools select{border-radius:clamp(12px,1.5vw,20px);padding:clamp(9px,1.1vw,15px) clamp(10px,1.2vw,16px);font-size:clamp(12px,1vw,15px)}
.standalone-store-wrap .store-products-grid{gap:clamp(8px,1.2vw,16px);grid-template-columns:repeat(auto-fill,minmax(clamp(150px,20vw,240px),1fr))}
.standalone-store-wrap .store-product{border-radius:clamp(15px,2vw,28px);padding:clamp(8px,1.1vw,14px)}
.standalone-store-wrap .store-product img,.standalone-store-wrap .store-product .no-img{height:clamp(118px,17vw,190px)!important;border-radius:clamp(12px,1.7vw,22px)}
.standalone-store-wrap .store-product strong{font-size:clamp(13px,1.35vw,20px);line-height:1.35}
.standalone-store-wrap .store-product p{font-size:clamp(11px,1vw,14px);line-height:1.5;min-height:auto;margin:.35em 0}
.standalone-store-wrap .store-product span{font-size:clamp(13px,1.35vw,18px)}
.standalone-store-wrap .quick-add-store{padding:clamp(9px,1vw,13px) clamp(10px,1.1vw,14px);border-radius:clamp(12px,1.4vw,18px);font-size:clamp(12px,1vw,15px)}
@media(max-width:560px){
  .standalone-store-shell{padding:8px 7px 18px;gap:8px}
  .standalone-store-hero{gap:8px}
  .standalone-store-title{padding:12px;border-radius:16px}
  .standalone-store-title h1{margin:7px 0 5px;font-size:22px;line-height:1.15}
  .standalone-store-title p{font-size:11.5px;line-height:1.55}
  .standalone-store-badges{margin-top:8px;gap:5px}
  .standalone-store-badges b{padding:5px 7px;font-size:10px}
  .standalone-store-spotlight{padding:11px;border-radius:16px}
  .standalone-store-spotlight strong{font-size:17px}
  .standalone-store-spotlight p{font-size:11px;margin:5px 0 0}
  .standalone-store-topbar{top:4px;padding:8px 9px;border-radius:15px}
  .standalone-store-topbar b{font-size:14px}
  .standalone-store-topbar small{font-size:9.5px}
  .standalone-store-cart{width:38px!important;height:38px!important;border-radius:12px!important}
  .standalone-store-wrap{padding:7px;border-radius:16px}
  .standalone-store-wrap .storefront-offer-hero{padding:9px;border-radius:14px;gap:4px}
  .standalone-store-wrap .storefront-tools{gap:6px;margin-bottom:8px}
  .standalone-store-wrap .storefront-tools input,.standalone-store-wrap .storefront-tools select{padding:8px 9px;border-radius:11px;font-size:12px}
  .standalone-store-wrap .store-products-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .standalone-store-wrap .store-product{padding:7px;border-radius:14px;box-shadow:0 8px 22px rgba(0,0,0,.16)}
  .standalone-store-wrap .store-product:hover{transform:none}
  .standalone-store-wrap .store-product img,.standalone-store-wrap .store-product .no-img{height:104px!important;border-radius:11px}
  .standalone-store-wrap .store-product strong{font-size:12.5px}
  .standalone-store-wrap .store-product p{font-size:10.5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .standalone-store-wrap .store-product span{font-size:12px}
  .standalone-store-wrap .quick-add-store{padding:8px 7px;border-radius:10px;font-size:11.5px}
}
@media(max-width:360px){.standalone-store-wrap .store-products-grid{grid-template-columns:1fr}.standalone-store-wrap .store-product img,.standalone-store-wrap .store-product .no-img{height:120px!important}}

/* v353 - standalone store compact top banner and centered action icons */
.standalone-store-shell{padding-top:0!important}
.standalone-store-banner{position:sticky!important;top:0!important;z-index:120!important;margin:0!important;border-radius:0 0 clamp(16px,2vw,28px) clamp(16px,2vw,28px)!important;background:linear-gradient(135deg,rgba(2,6,23,.96),rgba(15,118,110,.92),rgba(14,165,233,.86))!important;box-shadow:0 18px 48px rgba(0,0,0,.34)!important;backdrop-filter:blur(16px)!important;flex-wrap:wrap}
.standalone-store-brand{min-width:0;display:grid;gap:2px}.standalone-store-brand b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.standalone-store-actions{display:flex;align-items:center;justify-content:center;gap:clamp(6px,1vw,10px);margin-inline-start:auto;flex-wrap:wrap}.standalone-store-action,.standalone-store-cart{display:inline-grid!important;place-items:center!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1!important;vertical-align:middle!important}.standalone-store-action{grid-auto-flow:column;grid-auto-columns:max-content;gap:7px;border:0;border-radius:clamp(13px,1.5vw,18px);min-height:clamp(38px,4vw,50px);padding:0 clamp(10px,1.3vw,16px);font-family:inherit;font-weight:1000;color:#fff;background:rgba(255,255,255,.13);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.16);cursor:pointer}.standalone-store-action:hover{background:rgba(255,255,255,.20);transform:translateY(-1px)}.standalone-store-action svg,.standalone-store-cart svg,.store-cart-btn svg{display:block!important;margin:auto!important;position:static!important;inset:auto!important;transform:none!important;flex:0 0 auto!important}.standalone-store-action svg{width:clamp(18px,1.8vw,22px);height:clamp(18px,1.8vw,22px);fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.standalone-store-cart{flex:0 0 auto!important;background:linear-gradient(135deg,#22c55e,#0ea5e9)!important;color:#fff!important}.standalone-store-cart .cart-badge{display:none;align-items:center;justify-content:center}.standalone-store-wrap .storefront-offer-hero{display:none!important}.standalone-store-wrap .storefront-tools{position:relative;z-index:5}
@media(max-width:560px){.standalone-store-banner{top:0!important;padding:7px!important;gap:7px!important}.standalone-store-brand{flex:1 1 100%;text-align:center}.standalone-store-brand b{font-size:13px!important}.standalone-store-brand small{font-size:9px!important}.standalone-store-actions{width:100%;margin:0;display:grid;grid-template-columns:1fr 1fr auto;gap:6px}.standalone-store-action{min-width:0;min-height:36px;padding:0 8px;border-radius:12px;font-size:10.5px;gap:5px}.standalone-store-action svg{width:17px;height:17px}.standalone-store-cart{width:36px!important;height:36px!important;border-radius:12px!important}.standalone-store-cart svg{width:18px!important;height:18px!important}.standalone-store-wrap{margin-top:8px}}

/* v354 - store banner actions, hidden search, accountant call, product modal polish */
.standalone-store-wrap .storefront-tools.store-search-collapsed{display:none!important}
.standalone-store-wrap .storefront-tools.store-search-open{display:grid!important;animation:storeToolsDrop .18s ease both}
@keyframes storeToolsDrop{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
.standalone-store-action.active{background:rgba(34,197,94,.28);box-shadow:inset 0 0 0 1px rgba(187,247,208,.35),0 12px 28px rgba(34,197,94,.18)}
.standalone-store-action,.standalone-store-cart,.quick-add-store,.product-add-confirm{display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;gap:7px!important;line-height:1!important}
.standalone-store-action svg,.standalone-store-cart svg,.quick-add-store svg,.product-add-confirm svg{display:block!important;margin:0!important;position:static!important;transform:none!important;flex:0 0 auto!important;align-self:center!important}
.standalone-store-cart{padding:0!important}
.store-modern-product-modal{width:min(720px,94vw);max-width:min(720px,94vw);overflow:hidden;border:1px solid rgba(255,255,255,.16);background:linear-gradient(145deg,#07111f,#0f172a 46%,#083344);color:#fff;box-shadow:0 34px 110px rgba(2,6,23,.55)}
.store-modern-product-modal .smart-popup-close{background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.18);display:grid;place-items:center}
.store-modern-product-modal .product-detail-content{padding:52px 18px 20px;grid-template-columns:minmax(210px,.85fr) minmax(0,1.15fr);align-items:center;gap:18px;text-align:right}
.product-detail-media{position:relative;min-width:0}.store-modern-product-modal .product-detail-img{height:300px;border-radius:26px;background:linear-gradient(135deg,rgba(34,197,94,.18),rgba(14,165,233,.18));border:1px solid rgba(255,255,255,.14);box-shadow:0 20px 54px rgba(0,0,0,.30)}
.product-detail-badge{position:absolute;top:12px;right:12px;padding:7px 12px;border-radius:999px;background:linear-gradient(135deg,#f97316,#ef4444);color:#fff;font-weight:1000;box-shadow:0 12px 30px rgba(239,68,68,.28)}
.product-detail-info{display:grid;gap:8px}.product-detail-cat{justify-self:start;padding:6px 11px;border-radius:999px;background:rgba(34,197,94,.14);color:#bbf7d0;font-weight:1000}.store-modern-product-modal .product-detail-content h3{font-size:clamp(22px,3vw,34px);line-height:1.25;color:#fff!important}.store-modern-product-modal .product-detail-content p{color:#dbeafe!important;line-height:1.85}.store-modern-product-modal .product-detail-price{font-size:clamp(20px,2.4vw,30px);color:#fff!important}.store-modern-product-modal .product-detail-price del{color:#94a3b8!important}
.store-modern-product-modal .product-qty-control{grid-column:1/-1;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.15);border-radius:22px}.store-modern-product-modal .product-qty-control button{background:linear-gradient(135deg,#0ea5e9,#22c55e);color:#fff;display:grid;place-items:center}.store-modern-product-modal .product-qty-control input{background:rgba(255,255,255,.94);color:#0f172a}.store-modern-product-modal .product-add-confirm{grid-column:1/-1;min-height:52px;border-radius:20px;background:linear-gradient(135deg,#22c55e,#0ea5e9);color:#fff;box-shadow:0 18px 45px rgba(14,165,233,.25)}.store-modern-product-modal .product-add-confirm svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2}.store-modern-product-modal .product-add-confirm.done{background:linear-gradient(135deg,#16a34a,#22c55e)}
@media(max-width:640px){.standalone-store-actions{align-items:center!important}.standalone-store-action{display:flex!important;align-items:center!important;justify-content:center!important}.store-modern-product-modal{width:min(430px,94vw)}.store-modern-product-modal .product-detail-content{grid-template-columns:1fr;padding:50px 14px 16px;text-align:center}.product-detail-cat{justify-self:center}.store-modern-product-modal .product-detail-img{height:210px}.store-modern-product-modal .product-qty-control{padding:8px}.store-modern-product-modal .product-qty-control button{width:40px;height:40px}.store-modern-product-modal .product-qty-control input{height:40px}}

/* v355 - advanced category flyout + paged important products */
.store-category-panel{position:fixed;top:clamp(76px,9vw,102px);right:clamp(8px,2vw,22px);z-index:9998;width:min(92vw,720px);max-height:min(72vh,560px);overflow:hidden;border-radius:24px;background:linear-gradient(145deg,rgba(2,6,23,.96),rgba(15,23,42,.94));border:1px solid rgba(148,163,184,.24);box-shadow:0 30px 90px rgba(0,0,0,.38),inset 0 0 0 1px rgba(255,255,255,.04);backdrop-filter:blur(18px);color:#fff;transform-origin:top right}.store-category-panel.open{animation:storeCatPop .18s ease both}@keyframes storeCatPop{from{opacity:0;transform:translateY(-10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.store-category-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.05)}.store-category-panel-head b{font-size:clamp(14px,1.4vw,17px)}.store-category-close{width:34px;height:34px;border:0;border-radius:12px;background:rgba(255,255,255,.12);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}.store-category-columns{display:flex;gap:8px;overflow:auto;padding:12px;scrollbar-width:thin}.store-category-column{flex:0 0 min(220px,42vw);display:grid;align-content:start;gap:8px;padding:8px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.08);max-height:430px;overflow:auto}.store-category-choice{width:100%;border:0;border-radius:15px;min-height:46px;padding:8px 10px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;text-align:right;font-family:inherit;font-weight:900;color:#f8fafc;background:rgba(255,255,255,.08);cursor:pointer;transition:.16s ease}.store-category-choice:hover{background:linear-gradient(135deg,rgba(34,197,94,.24),rgba(14,165,233,.20));transform:translateY(-1px)}.store-category-choice small{font-size:10px;color:#bbf7d0}.store-category-choice i{font-style:normal;font-size:20px;color:#67e8f9}.store-category-choice.all{background:linear-gradient(135deg,rgba(34,197,94,.30),rgba(14,165,233,.22))}.store-infinite-loader{grid-column:1/-1;text-align:center;color:#cbd5e1;font-weight:900;padding:18px 8px}.standalone-store-menu-action svg path{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}.standalone-store-action.active{background:rgba(34,197,94,.30)!important}.standalone-store-action svg{display:block;margin:auto;align-self:center;justify-self:center}.quick-add-store{display:inline-flex!important;align-items:center!important;justify-content:center!important}
@media(max-width:640px){.store-category-panel{top:96px;right:6px;left:6px;width:auto;max-height:68vh;border-radius:20px}.store-category-columns{gap:7px;padding:8px}.store-category-column{flex-basis:78vw;max-height:350px}.store-category-choice{min-height:42px;font-size:12px}.standalone-store-actions{grid-template-columns:1fr 1fr 1fr auto!important}.standalone-store-action span{font-size:10px}.standalone-store-action svg{width:17px!important;height:17px!important}}

/* v356: ترتيب أزرار رأس المتجر وقائمة التصنيفات المنسدلة */
.standalone-store-banner{
  position:sticky;
  top:0;
  z-index:80;
  display:grid!important;
  grid-template-columns:1fr!important;
  gap:clamp(8px,1.1vw,12px)!important;
  align-items:center!important;
  padding:clamp(9px,1.4vw,16px) clamp(10px,1.8vw,20px)!important;
}
.standalone-store-titlebar{
  position:relative;
  width:100%;
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:center;
  gap:clamp(8px,1.2vw,16px);
}
.standalone-store-menu-slot{position:relative;justify-self:start;z-index:90;}
.standalone-store-cart-slot{justify-self:end;display:flex;align-items:center;justify-content:flex-end;}
.standalone-store-brand{min-width:0;text-align:center!important;justify-self:center;}
.standalone-store-brand b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.standalone-store-brand small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.standalone-store-actions{
  width:100%;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(7px,1vw,12px)!important;
  flex-wrap:wrap!important;
}
.standalone-store-action,
.standalone-store-cart{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  place-items:center!important;
  line-height:1!important;
  gap:7px!important;
}
.standalone-store-action svg,
.standalone-store-cart svg{
  display:block!important;
  margin:0!important;
  position:static!important;
  transform:none!important;
  align-self:center!important;
  justify-self:center!important;
}
.standalone-store-public .store-category-panel{
  position:absolute!important;
  top:calc(100% + 9px)!important;
  right:0!important;
  left:auto!important;
  width:min(86vw,680px)!important;
  max-height:min(68vh,540px)!important;
  border-radius:20px!important;
  transform-origin:top right!important;
  z-index:120!important;
}
.standalone-store-public .store-category-panel-head{display:none!important;}
.standalone-store-public .store-category-columns{padding:10px!important;gap:8px!important;}
.standalone-store-public .store-category-column{flex:0 0 min(210px,44vw)!important;max-height:min(54vh,420px)!important;}
@media(max-width:640px){
  .standalone-store-banner{top:0!important;padding:8px!important;gap:7px!important;}
  .standalone-store-titlebar{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px;}
  .standalone-store-brand b{font-size:13px!important;}
  .standalone-store-brand small{font-size:9px!important;}
  .standalone-store-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;}
  .standalone-store-action{min-height:36px!important;min-width:0!important;padding:0 8px!important;border-radius:12px!important;font-size:10.5px!important;}
  .standalone-store-action svg{width:17px!important;height:17px!important;}
  .standalone-store-cart{width:38px!important;height:38px!important;border-radius:13px!important;}
  .standalone-store-cart svg{width:18px!important;height:18px!important;}
  .standalone-store-public .store-category-panel{right:0!important;left:auto!important;width:min(94vw,520px)!important;max-height:64vh!important;}
  .standalone-store-public .store-category-columns{padding:7px!important;gap:7px!important;}
  .standalone-store-public .store-category-column{flex-basis:min(74vw,250px)!important;max-height:50vh!important;}
}

/* v357 - إصلاح تخطيط أزرار المتجر والقائمة واتصال المحاسب */
.standalone-store-public .standalone-store-actions{
  width:auto!important;
  max-width:100%!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:clamp(7px,1vw,12px)!important;
}
.standalone-store-public .standalone-store-action{
  width:auto!important;
  max-width:max-content!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-align:center!important;
  gap:7px!important;
  white-space:nowrap!important;
  min-inline-size:clamp(104px,9vw,132px)!important;
}
.standalone-store-public .standalone-store-menu-action,
.standalone-store-public .standalone-store-cart{
  min-inline-size:0!important;
}
.standalone-store-public .standalone-store-action svg,
.standalone-store-public .standalone-store-cart svg{
  display:block!important;
  margin:0!important;
  flex:0 0 auto!important;
  align-self:center!important;
  transform:none!important;
}
.standalone-store-public .standalone-store-menu-slot{overflow:visible!important;}
.standalone-store-public .store-category-panel{
  position:absolute!important;
  top:calc(100% + 8px)!important;
  right:0!important;
  left:auto!important;
  width:min(88vw,640px)!important;
  max-height:min(68vh,520px)!important;
  overflow:hidden!important;
  border-radius:18px!important;
  background:linear-gradient(145deg,rgba(2,6,23,.97),rgba(15,23,42,.95))!important;
  border:1px solid rgba(125,211,252,.20)!important;
  box-shadow:0 18px 46px rgba(0,0,0,.34)!important;
  padding:0!important;
}
.standalone-store-public .store-category-columns{
  padding:8px!important;
  gap:8px!important;
  align-items:stretch!important;
}
.standalone-store-public .store-category-column{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  padding:0!important;
  border-radius:0!important;
  flex:0 0 min(206px,40vw)!important;
  gap:7px!important;
}
.standalone-store-public .store-category-choice{
  border:1px solid rgba(255,255,255,.08)!important;
  background:rgba(255,255,255,.075)!important;
  box-shadow:none!important;
}
.standalone-store-public .store-category-choice:hover,
.standalone-store-public .store-category-choice.active{
  background:linear-gradient(135deg,rgba(34,197,94,.26),rgba(14,165,233,.22))!important;
  border-color:rgba(125,211,252,.24)!important;
}
@media(max-width:640px){
  .standalone-store-public .standalone-store-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:6px!important;
  }
  .standalone-store-public .standalone-store-action{
    max-width:none!important;
    width:100%!important;
    min-inline-size:0!important;
    min-height:36px!important;
    padding:0 8px!important;
    gap:5px!important;
  }
  .standalone-store-public .store-category-panel{
    width:min(94vw,520px)!important;
    max-height:64vh!important;
  }
  .standalone-store-public .store-category-column{
    flex-basis:min(74vw,250px)!important;
  }
}

/* v358 - mobile nested categories and centered order icons */
@media(max-width:640px){
  .standalone-store-public .store-category-panel{width:min(94vw,420px)!important;max-height:70vh!important;overflow:auto!important;}
  .standalone-store-public .store-category-columns.mobile-nested{display:grid!important;gap:7px!important;overflow:visible!important;max-height:none!important;padding:8px!important;}
  .standalone-store-public .store-category-columns.mobile-nested .store-category-column{display:none!important;}
  .store-category-mobile-level{display:grid;gap:7px;}
  .store-category-mobile-item{display:grid;gap:6px;}
  .store-category-mobile-children{display:grid;gap:6px;margin-inline-start:10px;padding-inline-start:8px;border-inline-start:2px solid rgba(125,211,252,.22);}
  .store-category-mobile-children[hidden]{display:none!important;}
  .store-category-columns.mobile-nested .store-category-choice{min-height:42px!important;width:100%!important;display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;border-radius:13px!important;}
  .store-category-columns.mobile-nested .store-category-choice.active{background:linear-gradient(135deg,rgba(34,197,94,.30),rgba(14,165,233,.24))!important;border-color:rgba(125,211,252,.32)!important;}
}
.quick-add-store,.product-add-confirm,.product-qty-control button,.cart-qty-btn,.qty-btn,.order-qty button{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;place-items:center!important;line-height:1!important;padding-top:0!important;padding-bottom:0!important;vertical-align:middle!important;
}
.quick-add-store svg,.product-add-confirm svg,.product-qty-control button svg,.cart-qty-btn svg,.qty-btn svg,.order-qty button svg{display:block!important;margin:auto!important;align-self:center!important;justify-self:center!important;position:static!important;transform:none!important;}

/* v359 - rich product descriptions and balanced add-to-cart buttons */
.standalone-store-wrap .store-products-grid{align-items:start!important;}
.standalone-store-wrap .store-product{min-height:0!important;height:auto!important;align-self:start!important;display:grid!important;grid-template-columns:1fr!important;grid-auto-rows:auto!important;}
.standalone-store-wrap .store-product-body{display:grid!important;gap:clamp(5px,.8vw,9px)!important;align-content:start!important;min-height:0!important;}
.store-product-desc,.product-detail-desc{line-height:1.75;overflow-wrap:anywhere;word-break:break-word;}
.store-product-desc p,.store-product-desc div,.product-detail-desc p,.product-detail-desc div{margin:.15em 0;}
.store-product-desc ul,.store-product-desc ol,.product-detail-desc ul,.product-detail-desc ol{margin:.2em 1.1em .2em 0;padding:0;}
.store-product-desc *,.product-detail-desc *{max-width:100%;}
.standalone-store-wrap .store-product .quick-add-store{justify-self:start!important;align-self:end!important;width:auto!important;max-width:100%!important;margin-top:clamp(5px,.9vw,10px)!important;margin-inline-start:0!important;margin-inline-end:auto!important;min-height:clamp(34px,3.4vw,44px)!important;padding:0 clamp(11px,1.2vw,16px)!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;line-height:1!important;}
.standalone-store-wrap .store-product .quick-add-store svg{width:18px!important;height:18px!important;display:block!important;flex:0 0 auto!important;margin:0!important;align-self:center!important;}
.store-modern-product-modal .product-detail-desc{color:#dbeafe!important;}
.store-modern-product-modal .product-add-confirm{grid-column:1/-1!important;justify-self:center!important;width:auto!important;min-width:0!important;max-width:max-content!important;min-height:46px!important;padding:0 18px!important;border-radius:18px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;}
.store-modern-product-modal .product-add-confirm svg{width:20px!important;height:20px!important;display:block!important;flex:0 0 auto!important;margin:0!important;}
@media(max-width:560px){
  .store-product-desc{font-size:10.5px;display:block!important;max-height:none!important;overflow:visible!important;}
  .standalone-store-wrap .store-product .quick-add-store{min-height:32px!important;padding:0 10px!important;font-size:11px!important;border-radius:10px!important;}
  .standalone-store-wrap .store-product .quick-add-store svg{width:15px!important;height:15px!important;}
  .store-modern-product-modal .product-add-confirm{min-height:42px!important;padding:0 14px!important;}
}

/* v360: complete standalone store theme variables controlled from page settings */
.standalone-store-shell,
.enhanced-store{
  --store-bg-1:#07111f;--store-bg-2:#0f766e;--store-accent:#22c55e;
  --store-topbar-bg:#0f172a;--store-topbar-border:#134e4a;--store-topbar-shadow:#0ea5e9;
  --store-title-color:#f8fafc;--store-description-color:#cbd5e1;
  --store-menu-btn-bg:#16a34a;--store-menu-btn-color:#fff;
  --store-cart-bg:#0ea5e9;--store-cart-color:#fff;--store-cart-badge-bg:#ef4444;
  --store-action-bg:#fff;--store-action-color:#0f172a;
  --store-search-bg:#fff;--store-search-color:#0f172a;
  --store-category-panel-bg:#0b1220;--store-category-border:#334155;
  --store-category-item-bg:#111827;--store-category-item-color:#e5f2ff;--store-category-active-bg:#0ea5e9;
  --store-product-bg:#101827;--store-product-border:#1e3a8a;
  --store-product-title-color:#fff;--store-product-desc-color:#dbeafe;
  --store-price-color:#fff;--store-sale-price-color:#86efac;--store-tax-color:#fbbf24;
  --store-product-cat-bg:#052e2b;--store-product-cat-color:#bbf7d0;
  --store-offer-bg:#ef4444;--store-offer-color:#fff;
  --store-countdown-bg:#422006;--store-countdown-color:#fde68a;
  --store-add-btn-bg:#22c55e;--store-add-btn-color:#fff;
  --store-modal-bg:#0f172a;--store-modal-color:#e5e7eb;
  --store-qty-btn-bg:#e0f2fe;--store-qty-btn-color:#075985;
}
.standalone-store-shell{background:linear-gradient(135deg,var(--store-bg-1),var(--store-bg-2))!important;}
.standalone-store-banner{background:var(--store-topbar-bg)!important;border-color:var(--store-topbar-border)!important;box-shadow:0 16px 36px color-mix(in srgb,var(--store-topbar-shadow),transparent 72%)!important;}
.standalone-store-brand b{color:var(--store-title-color)!important;}
.standalone-store-brand small{color:var(--store-description-color)!important;}
.standalone-store-menu-action{background:var(--store-menu-btn-bg)!important;color:var(--store-menu-btn-color)!important;border-color:color-mix(in srgb,var(--store-menu-btn-bg),#fff 20%)!important;}
.standalone-store-cart{background:var(--store-cart-bg)!important;color:var(--store-cart-color)!important;border-color:color-mix(in srgb,var(--store-cart-bg),#fff 22%)!important;}
.standalone-store-cart .cart-badge,.cart-badge{background:var(--store-cart-badge-bg,#ef4444)!important;color:#fff!important;}
.standalone-store-action:not(.standalone-store-menu-action),.standalone-store-public .standalone-store-action:not(.standalone-store-menu-action){background:var(--store-action-bg)!important;color:var(--store-action-color)!important;border-color:color-mix(in srgb,var(--store-action-color),transparent 82%)!important;}
.standalone-store-wrap .storefront-tools input,.standalone-store-wrap .storefront-tools select{background:var(--store-search-bg)!important;color:var(--store-search-color)!important;border:1px solid color-mix(in srgb,var(--store-search-color),transparent 82%)!important;}
.enhanced-store .storefront-head{background:linear-gradient(135deg,var(--store-topbar-bg),color-mix(in srgb,var(--store-accent),transparent 62%))!important;border:1px solid var(--store-topbar-border)!important;color:var(--store-title-color)!important;}
.enhanced-store .storefront-head b{color:var(--store-title-color)!important;}
.enhanced-store .storefront-head p,.enhanced-store .storefront-head small{color:var(--store-description-color)!important;}
.store-category-panel{background:var(--store-category-panel-bg)!important;border-color:var(--store-category-border)!important;color:var(--store-category-item-color)!important;box-shadow:0 18px 42px rgba(0,0,0,.28)!important;}
.store-category-choice{background:var(--store-category-item-bg)!important;color:var(--store-category-item-color)!important;border-color:var(--store-category-border)!important;}
.store-category-choice:hover,.store-category-choice.active{background:var(--store-category-active-bg)!important;color:#fff!important;border-color:color-mix(in srgb,var(--store-category-active-bg),#fff 22%)!important;}
.enhanced-product-card,.standalone-store-wrap .store-product{background:var(--store-product-bg)!important;border-color:var(--store-product-border)!important;color:var(--store-product-title-color)!important;box-shadow:0 14px 34px color-mix(in srgb,var(--store-product-border),transparent 72%)!important;}
.enhanced-product-card strong,.standalone-store-wrap .store-product strong{color:var(--store-product-title-color)!important;}
.store-product-desc,.store-product-desc *{color:var(--store-product-desc-color)!important;}
.enhanced-product-card span:not(.cart-badge),.product-detail-price{color:var(--store-price-color)!important;}
.enhanced-product-card span del,.product-detail-price del{color:color-mix(in srgb,var(--store-price-color),transparent 35%)!important;}
.store-cat,.product-detail-cat{background:var(--store-product-cat-bg)!important;color:var(--store-product-cat-color)!important;border-color:color-mix(in srgb,var(--store-product-cat-color),transparent 72%)!important;}
.store-offer-ribbon,.product-detail-badge{background:var(--store-offer-bg)!important;color:var(--store-offer-color)!important;}
.store-countdown{background:var(--store-countdown-bg)!important;color:var(--store-countdown-color)!important;border-color:color-mix(in srgb,var(--store-countdown-color),transparent 70%)!important;}
.quick-add-store,.store-modern-product-modal .product-add-confirm{background:var(--store-add-btn-bg)!important;color:var(--store-add-btn-color)!important;border-color:color-mix(in srgb,var(--store-add-btn-bg),#fff 22%)!important;}
.quick-add-store svg,.product-add-confirm svg{stroke:currentColor!important;}
.store-modern-product-modal{background:var(--store-modal-bg)!important;color:var(--store-modal-color)!important;border-color:color-mix(in srgb,var(--store-modal-color),transparent 84%)!important;}
.store-modern-product-modal h3,.store-modern-product-modal .product-detail-desc,.store-modern-product-modal .product-detail-desc *{color:var(--store-modal-color)!important;}
.store-modern-product-modal .product-qty-control button{background:var(--store-qty-btn-bg)!important;color:var(--store-qty-btn-color)!important;}
.store-modern-product-modal .product-qty-control input{background:color-mix(in srgb,var(--store-modal-bg),#fff 10%)!important;color:var(--store-modal-color)!important;border-color:color-mix(in srgb,var(--store-modal-color),transparent 78%)!important;}
.store-theme-options .color-grid{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));}
.store-theme-options textarea{min-height:78px;resize:vertical;}
@media(max-width:640px){.store-theme-options .color-grid{grid-template-columns:1fr 1fr}.store-theme-options label{font-size:11px}}


/* v361 - fixed store banner, masonry products, dedicated price colors and unified cart buttons */
.standalone-store-public .standalone-store-banner{
  position:fixed!important;
  top:0!important;
  right:0!important;
  left:0!important;
  width:100%!important;
  z-index:2147483000!important;
  margin:0!important;
  border-radius:0 0 clamp(14px,1.8vw,26px) clamp(14px,1.8vw,26px)!important;
}
.standalone-store-public .standalone-store-shell{
  padding-top:clamp(96px,9vw,128px)!important;
}
@media(max-width:640px){
  .standalone-store-public .standalone-store-shell{padding-top:96px!important;}
}
@media(max-width:390px){
  .standalone-store-public .standalone-store-shell{padding-top:104px!important;}
}

/* ألوان السعر وسعر العرض بشكل مستقل */
.enhanced-product-card .store-price-line,
.standalone-store-wrap .store-product .store-price-line,
.product-detail-price{
  color:var(--store-price-color)!important;
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  line-height:1.35!important;
}
.enhanced-product-card .store-price-line.has-sale,
.standalone-store-wrap .store-product .store-price-line.has-sale,
.product-detail-price.has-sale,
.enhanced-product-card .store-current-price,
.product-detail-price .store-current-price{
  color:var(--store-sale-price-color)!important;
}
.enhanced-product-card .store-price-line.regular-price .store-current-price,
.product-detail-price.regular-price .store-current-price{
  color:var(--store-price-color)!important;
}
.store-old-price,
.enhanced-product-card .store-old-price,
.product-detail-price .store-old-price{
  color:var(--store-price-color)!important;
  opacity:.62!important;
  font-weight:800!important;
}

/* جعل زر إضافة للسلة بنفس المظهر في الواجهة الرئيسية والنافذة */
.standalone-store-wrap .store-product .quick-add-store,
.store-modern-product-modal .product-add-confirm{
  background:var(--store-add-btn-bg)!important;
  color:var(--store-add-btn-color)!important;
  border:1px solid color-mix(in srgb,var(--store-add-btn-bg),#fff 24%)!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--store-add-btn-bg),transparent 72%)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  place-items:center!important;
  gap:7px!important;
  line-height:1!important;
  vertical-align:middle!important;
}
.standalone-store-wrap .store-product .quick-add-store svg,
.store-modern-product-modal .product-add-confirm svg,
.product-qty-control button,
.cart-qty-btn,
.qty-btn,
.order-qty button{
  display:grid!important;
  place-items:center!important;
  align-items:center!important;
  justify-content:center!important;
  line-height:1!important;
  margin:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  transform:none!important;
}

/* تخطيط يشبه المتاجر: المنتجات القصيرة ترتفع ولا تترك فراغات كبيرة */
.standalone-store-wrap .store-products-grid{
  display:block!important;
  columns:clamp(170px,20vw,250px)!important;
  column-gap:clamp(8px,1.2vw,16px)!important;
  grid-template-columns:none!important;
  align-items:initial!important;
}
.standalone-store-wrap .store-product{
  display:inline-grid!important;
  width:100%!important;
  margin:0 0 clamp(8px,1.2vw,16px)!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  align-self:auto!important;
}
.standalone-store-wrap .store-infinite-loader,
.standalone-store-wrap .empty-public{
  display:block!important;
  width:100%!important;
  break-inside:avoid!important;
  column-span:all;
}
@media(max-width:560px){
  .standalone-store-wrap .store-products-grid{columns:2!important;column-gap:7px!important;}
  .standalone-store-wrap .store-product{margin-bottom:7px!important;}
}
@media(max-width:360px){
  .standalone-store-wrap .store-products-grid{columns:1!important;}
}

/* v362 - fixed banner spacing, animated offer badge, and full theme variable coverage */
.standalone-store-public .standalone-store-shell{
  --store-banner-height:clamp(100px,10vw,150px);
  padding-top:calc(var(--store-banner-height) + clamp(8px,1.1vw,18px))!important;
}
.standalone-store-public .standalone-store-wrap{
  position:relative!important;
  z-index:1!important;
}
.standalone-store-public .standalone-store-banner{
  z-index:2147483000!important;
}
@media(max-width:640px){
  .standalone-store-public .standalone-store-shell{padding-top:calc(var(--store-banner-height,96px) + 8px)!important;}
}

/* جعل شارة العرض ملفتة للنظر */
.store-offer-ribbon,
.product-detail-badge{
  background:var(--store-offer-bg,#ef4444)!important;
  color:var(--store-offer-color,#fff)!important;
  box-shadow:0 0 0 0 color-mix(in srgb,var(--store-offer-bg,#ef4444),transparent 40%),0 0 22px color-mix(in srgb,var(--store-offer-bg,#ef4444),transparent 35%)!important;
  animation:storeOfferPulse 1.25s ease-in-out infinite!important;
  transform-origin:center!important;
}
@keyframes storeOfferPulse{
  0%,100%{transform:scale(1);filter:brightness(1)}
  50%{transform:scale(1.10);filter:brightness(1.18)}
}

/* تغطية متغيرات المظهر للخيارات والسلة والنافذة وكل العناصر التي أُضيفت مؤخراً */
.standalone-store-public .standalone-store-menu-action,
.standalone-store-menu-action{
  background:var(--store-menu-btn-bg,#16a34a)!important;
  color:var(--store-menu-btn-color,#fff)!important;
  border-color:color-mix(in srgb,var(--store-menu-btn-bg,#16a34a),#fff 22%)!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--store-menu-btn-bg,#16a34a),transparent 72%)!important;
}
.standalone-store-public .standalone-store-cart,
.standalone-store-cart,
.store-cart-btn.standalone-store-cart{
  background:var(--store-cart-bg,#0ea5e9)!important;
  color:var(--store-cart-color,#fff)!important;
  border-color:color-mix(in srgb,var(--store-cart-bg,#0ea5e9),#fff 22%)!important;
  box-shadow:0 12px 30px color-mix(in srgb,var(--store-cart-bg,#0ea5e9),transparent 70%)!important;
}
.standalone-store-cart .cart-badge,
.store-cart-btn .cart-badge{
  background:var(--store-cart-badge-bg,#ef4444)!important;
  color:#fff!important;
}
.standalone-store-public .store-category-panel,
.store-category-panel{
  background:var(--store-category-panel-bg,#0b1220)!important;
  border-color:var(--store-category-border,#334155)!important;
  color:var(--store-category-item-color,#e5f2ff)!important;
}
.standalone-store-public .store-category-choice,
.store-category-choice{
  background:var(--store-category-item-bg,#111827)!important;
  color:var(--store-category-item-color,#e5f2ff)!important;
  border-color:var(--store-category-border,#334155)!important;
}
.standalone-store-public .store-category-choice:hover,
.standalone-store-public .store-category-choice.active,
.store-category-choice:hover,
.store-category-choice.active{
  background:var(--store-category-active-bg,#0ea5e9)!important;
  color:#fff!important;
}
.cart-overlay .cart-box,
.cart-box,
.store-modern-product-modal,
.product-overlay .store-modern-product-modal{
  background:var(--store-modal-bg,#0f172a)!important;
  color:var(--store-modal-color,#e5e7eb)!important;
  border-color:color-mix(in srgb,var(--store-modal-color,#e5e7eb),transparent 82%)!important;
}
.cart-box h3,.cart-box p,.cart-box label,.cart-box span,.cart-box small,
.store-modern-product-modal h3,
.store-modern-product-modal .product-detail-desc,
.store-modern-product-modal .product-detail-desc *,
.store-modern-product-modal .product-detail-info{
  color:var(--store-modal-color,#e5e7eb)!important;
}
.standalone-store-wrap .store-product .quick-add-store,
.store-modern-product-modal .product-add-confirm{
  background:var(--store-add-btn-bg,#22c55e)!important;
  color:var(--store-add-btn-color,#fff)!important;
  border-color:color-mix(in srgb,var(--store-add-btn-bg,#22c55e),#fff 24%)!important;
}
.standalone-store-wrap .store-product .store-price-line.regular-price .store-current-price,
.product-detail-price.regular-price .store-current-price{
  color:var(--store-price-color,#fff)!important;
}
.standalone-store-wrap .store-product .store-price-line.has-sale .store-current-price,
.product-detail-price.has-sale .store-current-price{
  color:var(--store-sale-price-color,#86efac)!important;
}
.store-old-price,
.product-detail-price .store-old-price{
  color:var(--store-price-color,#fff)!important;
}


/* v363 - إصلاح توزيع المنتجات الكبيرة وتغطية ألوان المتجر بالكامل */
.standalone-store-public .standalone-store-shell{
  width:100%!important;
  max-width:1680px!important;
  box-sizing:border-box!important;
}
.standalone-store-public .standalone-store-wrap{
  width:100%!important;
  box-sizing:border-box!important;
}
.standalone-store-wrap .store-products-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fill,minmax(var(--store-card-min,220px),1fr))!important;
  gap:clamp(10px,1.2vw,18px)!important;
  align-items:start!important;
  columns:initial!important;
  column-gap:initial!important;
}
@media(min-width:1200px){
  .standalone-store-wrap .store-products-grid{--store-card-min:210px!important;}
}
@media(min-width:1500px){
  .standalone-store-wrap .store-products-grid{--store-card-min:200px!important;}
}
@media(max-width:700px){
  .standalone-store-wrap .store-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;}
}
@media(max-width:360px){
  .standalone-store-wrap .store-products-grid{grid-template-columns:1fr!important;}
}
.standalone-store-wrap .store-product{
  display:grid!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  align-self:start!important;
  break-inside:auto!important;
  page-break-inside:auto!important;
}
.standalone-store-shell,
.enhanced-store,
body.standalone-store-public{
  --store-page-text:#ffffff;
  --store-wrap-bg:#0f172a;
  --store-wrap-border:#1e293b;
  --store-card-shadow:#000000;
  --store-image-bg:#0b1220;
  --store-image-border:#334155;
  --store-empty-bg:#111827;
  --store-empty-color:#e5e7eb;
  --store-cart-panel-bg:#0f172a;
  --store-cart-panel-color:#e5e7eb;
  --store-cart-item-bg:#111827;
  --store-cart-input-bg:#111827;
  --store-cart-input-color:#ffffff;
  --store-modal-border:#334155;
  --store-modal-overlay:rgba(2,6,23,.72);
  --store-close-bg:#ef4444;
  --store-close-color:#ffffff;
}
body.standalone-store-public{color:var(--store-page-text,#fff)!important;}
.standalone-store-public .standalone-store-wrap,
.standalone-store-wrap{
  background:var(--store-wrap-bg,#0f172a)!important;
  border-color:var(--store-wrap-border,#1e293b)!important;
  box-shadow:0 20px 58px color-mix(in srgb,var(--store-card-shadow,#000),transparent 72%)!important;
}
.enhanced-product-card,
.standalone-store-wrap .store-product{
  box-shadow:0 14px 34px color-mix(in srgb,var(--store-card-shadow,#000),transparent 78%)!important;
}
.standalone-store-wrap .store-product img,
.standalone-store-wrap .store-product .no-img,
.product-detail-img,
.product-detail-media .no-img{
  background:var(--store-image-bg,#0b1220)!important;
  border:1px solid var(--store-image-border,#334155)!important;
}
.empty-public,
.store-infinite-loader{
  background:var(--store-empty-bg,#111827)!important;
  color:var(--store-empty-color,#e5e7eb)!important;
  border:1px solid color-mix(in srgb,var(--store-empty-color,#e5e7eb),transparent 82%)!important;
  border-radius:18px!important;
  padding:14px!important;
}
.cart-overlay,
.product-overlay{
  background:var(--store-modal-overlay,rgba(2,6,23,.72))!important;
}
.cart-overlay .cart-box,
.cart-box{
  background:var(--store-cart-panel-bg,#0f172a)!important;
  color:var(--store-cart-panel-color,#e5e7eb)!important;
  border:1px solid color-mix(in srgb,var(--store-cart-panel-color,#e5e7eb),transparent 82%)!important;
}
.cart-item{
  background:var(--store-cart-item-bg,#111827)!important;
  color:var(--store-cart-panel-color,#e5e7eb)!important;
  border:1px solid color-mix(in srgb,var(--store-cart-panel-color,#e5e7eb),transparent 88%)!important;
}
.cart-checkout input,
.cart-checkout textarea,
.cart-checkout select{
  background:var(--store-cart-input-bg,#111827)!important;
  color:var(--store-cart-input-color,#fff)!important;
  border-color:color-mix(in srgb,var(--store-cart-input-color,#fff),transparent 82%)!important;
}
.store-modern-product-modal{
  border:1px solid var(--store-modal-border,#334155)!important;
}
.smart-popup-close,
.product-overlay .smart-popup-close,
.cart-overlay .smart-popup-close{
  background:var(--store-close-bg,#ef4444)!important;
  color:var(--store-close-color,#fff)!important;
}
.store-offer-ribbon,
.product-detail-badge{
  border:1px solid color-mix(in srgb,var(--store-offer-color,#fff),transparent 72%)!important;
  box-shadow:0 0 0 0 color-mix(in srgb,var(--store-offer-bg,#ef4444),transparent 25%),0 0 28px color-mix(in srgb,var(--store-offer-bg,#ef4444),transparent 30%)!important;
  animation:storeOfferPulse 1.05s ease-in-out infinite!important;
}

/* v364 - إصلاح طبقات النوافذ، حفظ ألوان المتجر، وتخطيط المنتجات المتراص */
body.standalone-store-public .cart-overlay,
body.standalone-store-public .product-overlay,
.cart-overlay,
.product-overlay{
  z-index:2147483600!important;
  position:fixed!important;
  inset:0!important;
}
body.standalone-store-public .cart-overlay .cart-box,
body.standalone-store-public .product-overlay .store-modern-product-modal,
.cart-overlay .cart-box,
.product-overlay .store-modern-product-modal{
  z-index:2147483601!important;
  position:relative!important;
}
body.standalone-store-public .smart-popup-close,
body.standalone-store-public .product-overlay .smart-popup-close,
body.standalone-store-public .cart-overlay .smart-popup-close{
  z-index:2147483602!important;
}
/* Masonry متجاوب: يرفع البطاقات القصيرة إلى أعلى بدل ترك فراغات صفية */
.standalone-store-wrap .store-products-grid{
  display:block!important;
  columns:var(--store-masonry-cols,4) var(--store-card-min,220px)!important;
  column-gap:clamp(8px,1.1vw,16px)!important;
  gap:0!important;
}
.standalone-store-wrap .store-product{
  display:grid!important;
  width:100%!important;
  margin:0 0 clamp(8px,1.1vw,16px)!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  min-height:0!important;
  height:auto!important;
}
.standalone-store-wrap .store-infinite-loader,
.standalone-store-wrap .empty-public{
  display:block!important;
  break-inside:avoid!important;
  column-span:all!important;
  width:100%!important;
  box-sizing:border-box!important;
}
@media(min-width:1500px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:6!important;--store-card-min:190px!important;}}
@media(min-width:1200px) and (max-width:1499px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:5!important;--store-card-min:200px!important;}}
@media(min-width:900px) and (max-width:1199px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:4!important;--store-card-min:200px!important;}}
@media(min-width:641px) and (max-width:899px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:3!important;--store-card-min:185px!important;}}
@media(max-width:640px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:2!important;--store-card-min:150px!important;column-gap:7px!important}.standalone-store-wrap .store-product{margin-bottom:7px!important;}}
@media(max-width:360px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:1!important;}}
/* تطبيق ألوان السعر وسعر العرض بقوة على الواجهة والنافذة */
.standalone-store-wrap .store-price-line,
.standalone-store-wrap .store-price-line.regular-price,
.product-detail-price,
.product-detail-price.regular-price{color:var(--store-price-color,#fff)!important;}
.standalone-store-wrap .store-price-line.has-sale,
.standalone-store-wrap .store-price-line.has-sale .store-current-price,
.product-detail-price.has-sale,
.product-detail-price.has-sale .store-current-price{color:var(--store-sale-price-color,#86efac)!important;}
.standalone-store-wrap .store-price-line del,
.standalone-store-wrap .store-old-price,
.product-detail-price del,
.product-detail-price .store-old-price{color:var(--store-price-color,#fff)!important;opacity:.72!important;}

/* v364 - إصلاح طبقات النوافذ، حفظ ألوان المتجر، وتخطيط المنتجات المتراص */
body.standalone-store-public .cart-overlay,
body.standalone-store-public .product-overlay,
.cart-overlay,
.product-overlay{
  z-index:2147483600!important;
  position:fixed!important;
  inset:0!important;
}
body.standalone-store-public .cart-overlay .cart-box,
body.standalone-store-public .product-overlay .store-modern-product-modal,
.cart-overlay .cart-box,
.product-overlay .store-modern-product-modal{
  z-index:2147483601!important;
  position:relative!important;
}
body.standalone-store-public .smart-popup-close,
body.standalone-store-public .product-overlay .smart-popup-close,
body.standalone-store-public .cart-overlay .smart-popup-close{
  z-index:2147483602!important;
}
.standalone-store-wrap .store-products-grid{
  display:block!important;
  columns:var(--store-masonry-cols,4) var(--store-card-min,220px)!important;
  column-gap:clamp(8px,1.1vw,16px)!important;
  gap:0!important;
}
.standalone-store-wrap .store-product{
  display:grid!important;
  width:100%!important;
  margin:0 0 clamp(8px,1.1vw,16px)!important;
  break-inside:avoid!important;
  page-break-inside:avoid!important;
  min-height:0!important;
  height:auto!important;
}
.standalone-store-wrap .store-infinite-loader,
.standalone-store-wrap .empty-public{
  display:block!important;
  break-inside:avoid!important;
  column-span:all!important;
  width:100%!important;
  box-sizing:border-box!important;
}
@media(min-width:1500px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:6!important;--store-card-min:190px!important;}}
@media(min-width:1200px) and (max-width:1499px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:5!important;--store-card-min:200px!important;}}
@media(min-width:900px) and (max-width:1199px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:4!important;--store-card-min:200px!important;}}
@media(min-width:641px) and (max-width:899px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:3!important;--store-card-min:185px!important;}}
@media(max-width:640px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:2!important;--store-card-min:150px!important;column-gap:7px!important}.standalone-store-wrap .store-product{margin-bottom:7px!important;}}
@media(max-width:360px){.standalone-store-wrap .store-products-grid{--store-masonry-cols:1!important;}}
.standalone-store-wrap .store-price-line,
.standalone-store-wrap .store-price-line.regular-price,
.product-detail-price,
.product-detail-price.regular-price{color:var(--store-price-color,#fff)!important;}
.standalone-store-wrap .store-price-line.has-sale,
.standalone-store-wrap .store-price-line.has-sale .store-current-price,
.product-detail-price.has-sale,
.product-detail-price.has-sale .store-current-price{color:var(--store-sale-price-color,#86efac)!important;}
.standalone-store-wrap .store-price-line del,
.standalone-store-wrap .store-old-price,
.product-detail-price del,
.product-detail-price .store-old-price{color:var(--store-price-color,#fff)!important;opacity:.72!important;}

/* v381: صفحة مسابقة تصويت مستقلة ضمن إدارة الصفحات */
.standalone-vote-public{margin:0!important;background:linear-gradient(135deg,var(--vc-bg1,#f8fafc),var(--vc-bg2,#eef2ff));color:var(--vc-text,#0f172a);font-family:Cairo,Tajawal,Tahoma,Arial,sans-serif}.standalone-vote-page{width:100%!important;max-width:none!important;margin:0!important;background:transparent!important;box-shadow:none!important}.standalone-vote-canvas{position:relative!important;min-height:100vh!important;background:linear-gradient(135deg,var(--vc-bg1,#f8fafc),var(--vc-bg2,#eef2ff))!important}.vote-page-shell{--vc-accent:#2563eb;--vc-bg1:#f8fafc;--vc-bg2:#eef2ff;--vc-card:#fff;--vc-text:#0f172a;--vc-muted:#64748b;--vc-hero:#0f172a;--vc-hero-color:#fff;--vc-btn:#2563eb;--vc-btn-color:#fff;min-height:100vh;background:radial-gradient(circle at 12% 10%,color-mix(in srgb,var(--vc-accent) 22%,transparent),transparent 28%),linear-gradient(135deg,var(--vc-bg1),var(--vc-bg2));color:var(--vc-text);padding:24px 0 70px}.vote-page-wrap{width:min(1180px,94vw);margin:auto}.vote-page-hero{position:relative;overflow:hidden;border-radius:34px;background:linear-gradient(135deg,var(--vc-hero),var(--vc-accent));color:var(--vc-hero-color);padding:30px;box-shadow:0 26px 80px rgba(15,23,42,.22);display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}.vote-page-hero:after{content:"";position:absolute;inset:auto -70px -100px auto;width:260px;height:260px;border-radius:50%;background:rgba(255,255,255,.13)}.vote-page-hero span{display:inline-flex;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.12);border-radius:999px;padding:5px 11px;font-weight:900}.vote-page-hero h1{margin:10px 0 8px;font-size:clamp(28px,5vw,52px)}.vote-page-hero p{margin:0;line-height:2;color:color-mix(in srgb,var(--vc-hero-color) 86%,transparent)}.vote-page-hero aside{position:relative;z-index:1;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);border-radius:24px;padding:18px;min-width:190px;text-align:center;display:grid;gap:5px}.vote-page-hero aside b{font-size:20px}.vote-page-hero aside em{font-style:normal;font-weight:900}.vote-page-tools{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.vote-page-btn{border:0;border-radius:16px;background:var(--vc-btn);color:var(--vc-btn-color);padding:12px 16px;font-weight:900;text-decoration:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit}.vote-page-btn.light{background:var(--vc-card);color:var(--vc-text);border:1px solid color-mix(in srgb,var(--vc-accent) 25%,#cbd5e1)}.vote-page-btn.small{padding:9px 13px;border-radius:13px}.vote-page-btn:disabled{opacity:.55;cursor:not-allowed}.vote-page-alert{border-radius:18px;padding:14px 16px;font-weight:900;margin:12px 0}.vote-page-alert.ok{background:#ecfdf5;color:#047857}.vote-page-alert.bad{background:#fef2f2;color:#b91c1c}.vote-page-grid{columns:4 230px;column-gap:16px}.vote-contest-card{break-inside:avoid;margin:0 0 16px;background:var(--vc-card);border:1px solid color-mix(in srgb,var(--vc-accent) 18%,#e2e8f0);border-radius:26px;box-shadow:0 18px 50px rgba(15,23,42,.08);overflow:hidden}.vote-contest-card img{width:100%;display:block;aspect-ratio:4/3;object-fit:cover;background:#e2e8f0}.vote-contest-avatar{height:190px;display:grid;place-items:center;font-size:58px;font-weight:900;color:var(--vc-hero-color);background:linear-gradient(135deg,var(--vc-accent),var(--vc-hero))}.vote-contest-body{padding:15px}.vote-contest-body h3{margin:0 0 7px;font-size:20px;color:var(--vc-text)}.vote-contest-body p{margin:0 0 12px;color:var(--vc-muted);line-height:1.7}.vote-contest-bar{height:10px;background:color-mix(in srgb,var(--vc-accent) 12%,#e2e8f0);border-radius:999px;overflow:hidden}.vote-contest-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--vc-accent),#06b6d4);border-radius:999px}.vote-contest-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.vote-contest-row strong{font-weight:900;color:var(--vc-accent)}.vote-page-empty{background:var(--vc-card);border:1px solid #e2e8f0;border-radius:24px;padding:24px;text-align:center;color:var(--vc-muted);font-weight:900}.vote-page-settings{grid-column:1/-1;border:1px solid rgba(37,99,235,.18);background:rgba(37,99,235,.07);border-radius:18px;padding:14px;display:grid;gap:12px}.vote-page-settings[hidden]{display:none!important}.vote-page-settings h4{margin:0;color:#dbeafe}@media(max-width:720px){.vote-page-shell{padding-top:12px}.vote-page-hero{grid-template-columns:1fr;padding:22px}.vote-page-grid{columns:1}.vote-page-wrap{width:min(94vw,520px)}.vote-page-hero aside{text-align:right}.vote-contest-row{align-items:stretch;flex-direction:column}}


/* v386: ضريبة السلة وسعرها وزر إضافة موحد */
.store-tax-note,.cart-tax-note{display:block!important;clear:both!important;margin-top:5px!important;color:var(--store-tax-color,#fbbf24)!important;font-weight:900!important;line-height:1.45!important;white-space:normal!important;}
.cart-item .cart-item-title{display:grid!important;gap:3px!important;min-width:0!important;line-height:1.45!important;}
.cart-item .cart-item-title>b{display:block!important;color:inherit!important;white-space:normal!important;overflow-wrap:anywhere!important;}
.cart-item .cart-item-price{align-self:center!important;white-space:nowrap!important;}
.quick-add-store,.store-modern-product-modal .product-add-confirm,.product-add-confirm{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;width:auto!important;max-width:100%!important;min-height:clamp(34px,3.4vw,44px)!important;padding:0 clamp(12px,1.3vw,18px)!important;border-radius:clamp(12px,1.4vw,18px)!important;background:var(--store-add-btn-bg,#22c55e)!important;color:var(--store-add-btn-color,#fff)!important;border:1px solid color-mix(in srgb,var(--store-add-btn-bg,#22c55e),#fff 24%)!important;box-shadow:0 12px 28px color-mix(in srgb,var(--store-add-btn-bg,#22c55e),transparent 72%)!important;line-height:1!important;font-weight:1000!important;}
.quick-add-store svg,.store-modern-product-modal .product-add-confirm svg,.product-add-confirm svg{width:18px!important;height:18px!important;display:block!important;flex:0 0 auto!important;margin:0!important;align-self:center!important;}
.store-modern-product-modal .product-add-confirm{justify-self:center!important;margin-inline:auto!important;}
.standalone-store-wrap .store-product .quick-add-store{justify-self:start!important;margin-inline-start:0!important;margin-inline-end:auto!important;}

/* v387 - store language switch, unified add-to-cart button, cleaner cart item layout */
.standalone-store-cart-slot{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;min-width:max-content!important}
.standalone-store-lang-toggle{width:42px;height:42px;border:0;border-radius:14px;background:var(--store-action-bg,rgba(255,255,255,.13));color:var(--store-action-color,#fff);font-family:Cairo,Arial,sans-serif;font-weight:1000;font-size:17px;line-height:1;display:grid;place-items:center;box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 10px 24px rgba(0,0,0,.16);cursor:pointer}
.standalone-store-lang-toggle:hover{transform:translateY(-1px);filter:brightness(1.06)}
.store-add-to-cart,.quick-add-store,.product-add-confirm{width:auto!important;min-width:max-content!important;max-width:100%!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;align-self:flex-start!important;justify-self:flex-start!important;margin-top:auto!important;border:0!important;border-radius:16px!important;padding:10px 15px!important;background:var(--store-add-btn-bg,linear-gradient(135deg,#22c55e,#0ea5e9))!important;color:var(--store-add-btn-color,#fff)!important;font-family:inherit!important;font-weight:1000!important;line-height:1!important;box-shadow:0 14px 34px color-mix(in srgb,var(--store-add-btn-bg,#22c55e),transparent 72%)!important;cursor:pointer!important}
.store-add-to-cart svg,.quick-add-store svg,.product-add-confirm svg{width:18px!important;height:18px!important;display:block!important;flex:0 0 auto!important;margin:0!important;stroke:currentColor!important;fill:none!important;stroke-width:2.2!important;align-self:center!important}
.store-modern-product-modal .product-add-confirm.store-add-to-cart{grid-column:1/-1!important;justify-self:center!important;align-self:center!important;width:auto!important;min-width:0!important;padding:12px 18px!important;border-radius:18px!important}
.standalone-store-wrap .store-product-body{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;min-height:100%!important}
.cart-item{grid-template-columns:minmax(0,1fr) auto auto!important;align-items:center!important}
.cart-product-main{display:flex!important;align-items:center!important;gap:9px!important;min-width:0!important}
.cart-product-main img,.cart-product-main .cart-item-noimg{width:48px!important;height:48px!important;border-radius:12px!important;object-fit:cover!important;flex:0 0 48px!important;background:rgba(255,255,255,.12)!important}
.cart-item-title{display:grid!important;gap:3px!important;min-width:0!important}
.cart-item-title b{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important}
.cart-item-price{white-space:nowrap!important;justify-self:end!important;text-align:end!important}
.store-en .standalone-store-shell,.store-en .smart-store,.store-en .cart-box{direction:ltr;text-align:left}
.store-en .standalone-store-menu-slot .store-category-panel{right:auto!important;left:0!important}
@media(max-width:560px){.standalone-store-lang-toggle{width:36px;height:36px;border-radius:12px;font-size:15px}.standalone-store-cart-slot{gap:6px}.cart-item{grid-template-columns:1fr auto!important}.cart-item button{grid-column:1/-1;justify-self:end}.store-add-to-cart,.quick-add-store,.product-add-confirm{padding:9px 11px!important;border-radius:13px!important;font-size:11.5px!important}}

/* v388: توحيد زر إضافة للسلة في بطاقة المنتج ونافذة المنتج بنفس البنية والمظهر */
.standalone-store-wrap .store-add-to-cart,
.store-modern-product-modal .store-add-to-cart,
.product-detail-box .store-add-to-cart{
  width:auto!important;
  min-width:0!important;
  max-width:max-content!important;
  margin-inline-start:auto!important;
  margin-inline-end:0!important;
  padding:10px 14px!important;
  border-radius:16px!important;
  background:var(--store-add-btn-bg,#22c55e)!important;
  color:var(--store-add-btn-color,#fff)!important;
  border:1px solid color-mix(in srgb,var(--store-add-btn-bg,#22c55e),#fff 24%)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  line-height:1!important;
  font-weight:900!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--store-add-btn-bg,#22c55e),transparent 72%)!important;
}
.store-modern-product-modal .store-add-to-cart{margin:14px auto 0!important;}
.standalone-store-wrap .store-add-to-cart svg,
.store-modern-product-modal .store-add-to-cart svg,
.product-detail-box .store-add-to-cart svg{
  width:18px!important;height:18px!important;display:block!important;flex:0 0 18px!important;margin:0!important;transform:none!important;
}

/* v389: compact one-line order tracking path */
.track-timeline{position:relative!important;display:grid!important;grid-template-columns:repeat(4,minmax(82px,1fr))!important;gap:8px!important;align-items:start!important;margin:16px 0!important;padding:12px 4px 4px!important;overflow-x:auto!important;scrollbar-width:thin!important}
.track-timeline:before{content:"";position:absolute;top:27px;right:8%;left:8%;height:4px;border-radius:999px;background:linear-gradient(90deg,#22c55e,#38bdf8,#cbd5e1);opacity:.35;pointer-events:none}
.track-step{position:relative!important;z-index:1!important;min-height:0!important;padding:0 4px!important;border:0!important;background:transparent!important;box-shadow:none!important;text-align:center!important;display:grid!important;justify-items:center!important;gap:5px!important;color:#334155!important;min-width:82px!important}
.track-step i{width:34px!important;height:34px!important;margin:0!important;border-radius:50%!important;background:#e2e8f0!important;border:5px solid #fff!important;box-shadow:0 8px 22px rgba(15,23,42,.12)!important;display:block!important}
.track-step.done i{background:#22c55e!important}
.track-step.current i{background:#06b6d4!important;animation:trackGlowPulse 1.15s ease-in-out infinite!important;box-shadow:0 0 0 8px rgba(6,182,212,.14),0 0 26px rgba(6,182,212,.75)!important}
.track-step b{font-size:clamp(10px,1vw,13px)!important;line-height:1.25!important;color:#0f172a!important;white-space:nowrap!important}
.track-step small{font-size:clamp(9px,.85vw,11px)!important;line-height:1.35!important;color:#64748b!important;margin:0!important;max-width:130px!important}
@keyframes trackGlowPulse{50%{transform:scale(1.14);box-shadow:0 0 0 12px rgba(6,182,212,.08),0 0 34px rgba(34,211,238,.9)}}
@media(max-width:760px){.track-timeline{grid-template-columns:repeat(4,minmax(74px,1fr))!important;gap:4px!important}.track-step{min-width:74px!important}.track-step small{font-size:9px!important;max-width:90px!important}.track-step b{font-size:10px!important}.track-step i{width:30px!important;height:30px!important}}

.cart-success-order b{color:#1d4ed8!important;text-shadow:0 0 14px rgba(59,130,246,.18)}

.track-public-card{position:relative}
.track-lang-toggle{position:absolute;top:16px;inset-inline-start:16px;z-index:4;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;text-decoration:none;background:linear-gradient(135deg,#2563eb,#06b6d4);color:#fff;font-weight:1000;box-shadow:0 14px 32px rgba(37,99,235,.25)}
.track-lang-toggle:hover{filter:brightness(1.06);transform:translateY(-1px)}

/* v392 - tracking language button opposite title + rebuilt unified store add-to-cart button */
.track-public-card{position:relative!important;}
.track-lang-toggle{
  inset-inline-start:auto!important;
  inset-inline-end:16px!important;
  top:16px!important;
  z-index:10!important;
}
@media(max-width:560px){
  .track-lang-toggle{top:12px!important;inset-inline-end:12px!important;width:40px!important;height:40px!important;border-radius:13px!important;}
  .track-hero{padding-inline-end:58px!important;}
}
.store-add-to-cart,
.quick-add-store.store-add-to-cart,
.product-add-confirm.store-add-to-cart,
.standalone-store-wrap .store-product .store-add-to-cart,
.store-modern-product-modal .store-add-to-cart,
.product-detail-box .store-add-to-cart{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:auto!important;
  min-width:0!important;
  max-width:max-content!important;
  height:auto!important;
  min-height:42px!important;
  padding:0 16px!important;
  border:1px solid color-mix(in srgb,var(--store-add-btn-bg,#22c55e),#fff 24%)!important;
  border-radius:16px!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  line-height:1!important;
  vertical-align:middle!important;
  text-align:center!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-weight:1000!important;
  white-space:nowrap!important;
  color:var(--store-add-btn-color,#fff)!important;
  background:var(--store-add-btn-bg,linear-gradient(135deg,#22c55e,#0ea5e9))!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--store-add-btn-bg,#22c55e),transparent 72%)!important;
  cursor:pointer!important;
  transform:none!important;
}
.standalone-store-wrap .store-product .store-add-to-cart{
  justify-self:start!important;
  align-self:end!important;
  margin:8px 0 0!important;
}
.store-modern-product-modal .store-add-to-cart,
.product-detail-box .store-add-to-cart{
  justify-self:center!important;
  align-self:center!important;
  margin:14px auto 0!important;
}
.store-add-to-cart svg,
.quick-add-store.store-add-to-cart svg,
.product-add-confirm.store-add-to-cart svg,
.store-modern-product-modal .store-add-to-cart svg,
.product-detail-box .store-add-to-cart svg{
  width:18px!important;
  height:18px!important;
  min-width:18px!important;
  min-height:18px!important;
  display:block!important;
  flex:0 0 18px!important;
  margin:0!important;
  padding:0!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  align-self:center!important;
  stroke:currentColor!important;
  fill:none!important;
  stroke-width:2.2!important;
}
.store-add-to-cart span,
.quick-add-store.store-add-to-cart span,
.product-add-confirm.store-add-to-cart span{
  display:inline-block!important;
  line-height:1!important;
  margin:0!important;
  padding:0!important;
}
@media(max-width:560px){
  .store-add-to-cart,
  .quick-add-store.store-add-to-cart,
  .product-add-confirm.store-add-to-cart,
  .standalone-store-wrap .store-product .store-add-to-cart,
  .store-modern-product-modal .store-add-to-cart,
  .product-detail-box .store-add-to-cart{
    min-height:36px!important;
    padding:0 12px!important;
    border-radius:13px!important;
    font-size:11.5px!important;
    gap:6px!important;
  }
  .store-add-to-cart svg,
  .quick-add-store.store-add-to-cart svg,
  .product-add-confirm.store-add-to-cart svg{
    width:16px!important;height:16px!important;min-width:16px!important;min-height:16px!important;flex-basis:16px!important;
  }
}

/* v393 - translated offer countdown + strict themed add-to-cart below offers */
.standalone-store-wrap .store-product .store-countdown + .store-add-to-cart,
.standalone-store-wrap .store-product .quick-add-store.store-add-to-cart,
.smart-store .store-product .quick-add-store.store-add-to-cart,
.store-modern-product-modal .quick-add-store.store-add-to-cart,
.product-detail-box .quick-add-store.store-add-to-cart{
  background:var(--store-add-btn-bg,#22c55e)!important;
  background-image:none!important;
  color:var(--store-add-btn-color,#fff)!important;
  border-color:color-mix(in srgb,var(--store-add-btn-bg,#22c55e),#fff 24%)!important;
  text-shadow:none!important;
  box-shadow:0 12px 28px color-mix(in srgb,var(--store-add-btn-bg,#22c55e),transparent 72%)!important;
}
.standalone-store-wrap .store-product .store-countdown + .store-add-to-cart *,
.standalone-store-wrap .store-product .quick-add-store.store-add-to-cart *,
.smart-store .store-product .quick-add-store.store-add-to-cart *,
.store-modern-product-modal .quick-add-store.store-add-to-cart *{
  color:inherit!important;
  stroke:currentColor!important;
}

/* v395 - Store call popup must stay above the sticky store banner */
body.standalone-store-public .customer-call-modal,
.customer-call-modal.customer-call-phone{
  z-index:2147483646!important;
  position:fixed!important;
}
body.standalone-store-public .customer-call-phone .ccv-phone-screen,
.customer-call-phone .ccv-phone-screen{
  z-index:2147483647!important;
}
.customer-call-phone.ccv-en{
  direction:ltr!important;
  font-family:Inter,Arial,Tahoma,sans-serif;
}
.customer-call-phone.ccv-en .ccv-phone-screen,
.customer-call-phone.ccv-en .ccv-question,
.customer-call-phone.ccv-en .ccv-state{
  direction:ltr!important;
  text-align:center!important;
}
.customer-call-phone.ccv-en .ccv-x{
  right:20px!important;
  left:auto!important;
}

.track-invoice-download{display:flex;align-items:center;justify-content:center;text-decoration:none;background:linear-gradient(135deg,#16a34a,#22c55e)!important;box-shadow:0 18px 42px rgba(34,197,94,.24)!important}

/* v403: store cart limit and stock warning popups */
.store-limit-overlay{position:fixed;inset:0;z-index:1000000;display:grid;place-items:center;padding:18px;background:rgba(2,6,23,.66);backdrop-filter:blur(12px);animation:storeLimitFade .16s ease both}.store-limit-card{position:relative;width:min(410px,94vw);border-radius:30px;padding:26px 22px 20px;text-align:center;color:#0f172a;background:linear-gradient(180deg,#ffffff,#f8fafc);box-shadow:0 34px 100px rgba(2,6,23,.38);border:1px solid rgba(255,255,255,.75);animation:storeLimitPop .20s cubic-bezier(.2,1.2,.25,1) both}.store-limit-card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:2px;background:linear-gradient(135deg,#f59e0b,#ef4444,#22c55e);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}.store-limit-x{position:absolute;top:12px;left:12px;width:36px;height:36px;border:0;border-radius:14px;background:#f1f5f9;color:#0f172a;font-size:24px;line-height:1;cursor:pointer}.store-limit-icon{width:72px;height:72px;margin:2px auto 14px;border-radius:26px;display:grid;place-items:center;color:#fff;font-size:34px;font-weight:1000;background:linear-gradient(135deg,#f59e0b,#ef4444);box-shadow:0 18px 44px rgba(239,68,68,.25)}.store-limit-card.max .store-limit-icon{background:linear-gradient(135deg,#0ea5e9,#22c55e);box-shadow:0 18px 44px rgba(14,165,233,.25)}.store-limit-card h3{margin:0 0 8px;font-size:23px;line-height:1.4}.store-limit-card p{margin:0;color:#475569;line-height:1.8;font-weight:800}.store-limit-rows{display:grid;grid-template-columns:1fr auto;gap:8px;margin:16px 0 2px;padding:12px;border-radius:18px;background:#f1f5f9;text-align:start}.store-limit-rows span{color:#64748b;font-weight:900}.store-limit-rows b{color:#0f172a;font-size:18px}.store-limit-ok{width:100%;margin-top:16px;border:0;border-radius:18px;min-height:48px;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;font-family:inherit;font-weight:1000;cursor:pointer;box-shadow:0 14px 34px rgba(15,23,42,.22)}@keyframes storeLimitFade{from{opacity:0}to{opacity:1}}@keyframes storeLimitPop{from{opacity:0;transform:translateY(14px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}
