/* =====================================================================================================================
   Polish layer (2026-10-17): خط أوضح، ألوان أدفأ، حواف وظلال موحّدة، إيقاع أقسام بتناوب خلفية ناعمة. يُحمَّل آخر شيء.
   ===================================================================================================================== */
html:not(.dark) body { background: #fff; }
html[lang^="ar"] body, html[lang="ur"] body { font-weight: 500; }
html:not(.dark) main > section:nth-of-type(even):not(.hx):not(.x-marquee-sec) { background: linear-gradient(180deg, #f5faf8 0%, #fff 90%); }

/* عناوين الأقسام */
.x-sec-head h2 { font-weight: 800; letter-spacing: -.02em; line-height: 1.2; font-size: clamp(1.95rem, 3.9vw, 2.9rem); color: var(--x-text, #0b1220); text-wrap: balance; }
html[lang^="ar"] .x-sec-head h2, html[lang="ur"] .x-sec-head h2 { line-height: 1.34; letter-spacing: 0; }
.x-sec-head p { color: #4d5a6d; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.85; font-weight: 500; }
.x-sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.x-sec-head .badge, .badge.badge-cyan { background: #e6f6f1; color: #066f5a; border: 1px solid #cfeae1; font-weight: 700; border-radius: 999px; padding: 6px 15px; }

/* بطاقات */
.x-fcard, .x-tile { border-radius: 22px; border: 1px solid #e0ebe7; background: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 18px 40px -34px rgb(11 18 32 / .35); transition: transform .22s, box-shadow .22s, border-color .22s; }
.x-fcard:hover, .x-tile:hover { transform: translateY(-4px); border-color: #9fd6c6; box-shadow: 0 26px 50px -30px rgb(10 127 105 / .45); }
.x-fcard h3, .x-tile h3 { font-weight: 800; font-size: 1.08rem; letter-spacing: -.005em; }
.x-fcard p, .x-tile p { color: #4d5a6d; line-height: 1.75; }
.x-tile-ic { background: linear-gradient(135deg, #e0f5ee, #e6effd) !important; color: #0a7f69 !important; border-radius: 14px !important; }

/* الشريط المتحرك والتيكر */
.x-marquee-sec { padding-block: 28px; }
.x-marquee-cap { font-weight: 700; color: #4d5a6d; }

/* روابط وأزرار عامة */
.btn { border-radius: 14px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .x-fcard, .x-tile { transition: none; } .x-fcard:hover, .x-tile:hover { transform: none; } }

/* كل عناوين الأقسام بنفس الوزن والجودة (القسم الواحد كان يشذّ بوزن خفيف) */
main h2:not(.x-no-polish) { font-weight: 800; letter-spacing: -.02em; color: var(--x-text, #0b1220); text-wrap: balance; }
html[lang^="ar"] main h2, html[lang="ur"] main h2 { letter-spacing: 0; line-height: 1.34; }

/* بطاقات الباقات: ارتفاع موحّد وحواف موحّدة، والباقة المميزة بإطار متدرّج بدل صورة القالب */

/* إيقاع رأسي أضيق (طلب المالك: بلا مساحات فاضية) */
html main > section:not(.hx):not(.x-marquee-sec):not(.x-phero) { padding-block: clamp(44px, 5.2vw, 72px) !important; }
/* the floating header sits over the top of the page: the first section of every inner page must start below it (owner 2026-10-21: top block was stuck to the header) */
html main > section:first-child:not(.hx):not(.x-marquee-sec):not(.x-phero) { padding-top: clamp(150px, 14vw, 172px) !important; }
html main > section[class*="my-"] { margin-block: clamp(28px, 4vw, 52px) !important; }
html main .x-sec-head, html main .d-sec-head { margin-bottom: clamp(26px, 3.6vw, 44px) !important; }
html main .mb-10.md\:mb-\[70px\] { margin-bottom: clamp(26px, 3.6vw, 44px) !important; }

/* ---- القائمة العلوية: زجاج شفاف (Glassmorphism) ---- */
html .header-one { background: rgb(255 255 255 / .42) !important; -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgb(255 255 255 / .78); box-shadow: 0 14px 44px -20px rgb(11 18 32 / .32), inset 0 1px 0 rgb(255 255 255 / .9), inset 0 -1px 0 rgb(11 18 32 / .04); }
html.dark .header-one { background: rgb(31 37 47 / .46) !important; border-color: rgb(255 255 255 / .14); box-shadow: 0 14px 44px -20px rgb(0 0 0 / .6), inset 0 1px 0 rgb(255 255 255 / .12); }

/* ---- الفوتر (ez-foot): مضغوط ومحترم ---- */
html footer.ez-foot { position: relative; background: linear-gradient(180deg, #f7fbfa 0%, #eaf5f1 100%) !important; border-top: 0 !important; padding: clamp(36px, 4.4vw, 56px) 0 18px; color: #3d4a5c; }
html footer.ez-foot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, #0a7f69, #1fbf9b 55%, #1769e0); }
.ez-foot-top { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .ez-foot-top { grid-template-columns: minmax(250px, 1fr) minmax(0, 3.4fr); gap: 56px; } }
.ez-foot-brand p { max-width: 330px; margin: 14px 0 18px; color: #4d5a6d !important; line-height: 1.8; font-size: .94rem; }
.ez-foot-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.ez-foot-cta .hx-btn { min-height: 44px; padding: 0 18px; border-radius: 12px; font-size: .9rem; }
html footer.ez-foot .hx-btn-main, html footer.ez-foot .hx-btn-main * { color: #fff !important; }
.ez-socs { display: flex; gap: 10px; margin-top: 16px; } .ez-soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid #dcebe5; }
.ez-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 26px 22px; align-content: start; }
.ez-col-h { margin: 0 0 12px; font-weight: 800; font-size: .96rem; color: #0b1220 !important; }
.ez-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ez-col a { color: #4d5a6d !important; text-decoration: none; font-size: .9rem; line-height: 1.5; transition: color .15s; } .ez-col a:hover { color: #066f5a !important; }
.ez-foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; margin-top: 30px; padding-top: 18px; border-top: 1px solid #d6e8e1; font-size: .84rem; }
.ez-foot-bar p { margin: 0; color: #5b6779 !important; }
.ez-foot-bar ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; } .ez-foot-bar a { color: #4d5a6d !important; text-decoration: none; } .ez-foot-bar a:hover { color: #066f5a !important; }
.ez-foot-note { margin: 12px 0 0; font-size: .76rem; color: #7a8696 !important; line-height: 1.7; }

.cc-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 14px; background: var(--surface-2, #eef3f8); }
.cc-tab { height: 38px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-weight: 700; color: #4d5a6d; cursor: pointer; }
.cc-tab[aria-selected="true"] { background: #fff; color: #066f5a; box-shadow: 0 6px 16px -10px rgb(11 18 32 / .4); }
.cc-curbadge { min-width: 52px; text-align: center; padding: 3px 8px; border-radius: 8px; background: #e6f6f1; color: #066f5a; font-weight: 800; font-size: .8rem; }

/* checkout */
.x-pay { margin-top: 28px; padding: 24px; border: 1px solid #e0ebe7; border-radius: 22px; background: #fff; display: grid; gap: 12px; max-width: 640px; margin-inline: auto; text-align: center; justify-items: center; }
.x-pay h3 { margin: 0; font-weight: 800; } .x-pay-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.x-pay-btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.x-coupon-hint { text-align: center; margin-top: 10px; }

/* plugins page */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.pl-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid #e0ebe7; border-radius: 22px; background: #fff; box-shadow: 0 18px 40px -34px rgb(11 18 32 / .35); }
.pl-card header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pl-card h3 { margin: 4px 0 0; font-weight: 800; } .pl-card p { margin: 0; color: #4d5a6d; line-height: 1.8; font-size: .94rem; } .pl-kind { font-weight: 700; color: #066f5a !important; font-size: .86rem !important; }
.pl-status { padding: 3px 11px; border-radius: 999px; background: #fff4de; color: #8a5a00; font-size: .76rem; font-weight: 800; }
.pl-card footer { margin-top: auto; padding-top: 6px; background: none; border: 0; }

/* Section backdrops: faint real brand marks (WhatsApp, Meta, stores, CRMs) — decorative, behind the content */
.x-sec, .d-sec, section[aria-label] { position: relative; }
.x-bd { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.x-bd img { position: absolute; inset-inline-start: var(--x); top: var(--y); width: var(--s); height: var(--s); object-fit: contain; opacity: .09; transform: rotate(var(--r)); filter: saturate(.9); }
.dark .x-bd img { opacity: .12; }
.x-bd ~ * { position: relative; z-index: 1; }
@media (max-width: 900px) { .x-bd img { opacity: .06; } .x-bd img:nth-child(n+4) { display: none; } }
@media (prefers-reduced-motion: no-preference) { .x-bd img { animation: x-bd-float 14s ease-in-out infinite alternate; } .x-bd img:nth-child(even) { animation-duration: 18s; animation-delay: -6s; } }
@keyframes x-bd-float { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* ---- Round: section rhythm, separators, tighter spacing, FAQ boxes ---- */
html main .x-sec, html main .d-sec { padding-block: clamp(44px, 5.4vw, 72px) !important; }
html main > section + section, html main > div > section + section { border-top: 1px solid #dcebe5; }
html main .x-sec.alt, html main .d-sec.alt { background: linear-gradient(180deg, #eef8f4 0%, #f6fbf9 100%) !important; }
html main .x-sec:not(.alt), html main .d-sec:not(.alt) { background: #fff; }
html.dark main > section + section { border-top-color: rgb(255 255 255 / .09); }
html.dark main .x-sec.alt, html.dark main .d-sec.alt { background: linear-gradient(180deg, #172029, #131a22) !important; }
html.dark main .x-sec:not(.alt), html.dark main .d-sec:not(.alt) { background: transparent; }
/* a short green accent rule centred on every section boundary */
html main .x-sec::after, html main .d-sec::after { content: ""; position: absolute; top: -1px; inset-inline: 0; margin-inline: auto; width: 84px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, #0a8f72, #34e3be); opacity: .85; pointer-events: none; }
html main .x-sec:first-child::after, html main .d-sec:first-child::after { display: none; }

/* FAQ: every question is a bordered card, the answer opens inside a tinted box */
html .accordion .accordion-item { background: #fff !important; border: 1px solid #d9e8e2; box-shadow: 0 1px 2px rgb(11 18 32 / .04); transition: border-color .2s, box-shadow .2s; }
html .accordion .accordion-item.active-accordion { border-color: #67c3a8; box-shadow: 0 14px 34px -22px rgb(10 143 114 / .55); }
html .accordion .accordion-item .accordion-content > div { border-top: 0 !important; padding-top: 0 !important; padding-bottom: 22px !important; }
html .accordion .accordion-item .accordion-content > div p { background: #effaf6; border: 1px solid #cfeadf; border-radius: 14px; padding: 16px 18px; margin: 0; line-height: 1.85; color: #34475a; }
html.dark .accordion .accordion-item { background: #1b232d !important; border-color: rgb(255 255 255 / .1); }
html.dark .accordion .accordion-item .accordion-content > div p { background: rgb(52 227 190 / .08); border-color: rgb(52 227 190 / .22); color: #c9d6e2; }

/* Developer strip on the home page (cards only; no sample code) */
.x-dev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.x-dev-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 22px; border: 1px solid #d9e8e2; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgb(11 18 32 / .04); }
.x-dev-card h3 { font-size: 1.05rem; font-weight: 700; margin: 8px 0 0; }
.x-dev-card p { margin: 0; color: #4d5a6d; font-size: .93rem; line-height: 1.75; }
.x-dev-link { text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.x-dev-link:hover { transform: translateY(-3px); border-color: #67c3a8; box-shadow: 0 18px 36px -24px rgb(10 143 114 / .6); }
.x-dev-link .x-more { margin-top: auto; padding-top: 10px; }
html.dark .x-dev-card { background: #1b232d; border-color: rgb(255 255 255 / .1); } html.dark .x-dev-card p { color: #b3c0cf; }

/* Message types: what's new + template formats */
.x-mt-new { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 0; padding: 11px 14px; border-radius: 12px; background: #fff7e6; border: 1px solid #f3dca6; color: #6b4e0a; font-size: .9rem; line-height: 1.7; }
.x-mt-new b { flex: none; background: #f5b82e; color: #3d2a00; border-radius: 99px; padding: 1px 10px; font-size: .78rem; font-weight: 800; }
html.dark .x-mt-new { background: rgb(245 184 46 / .1); border-color: rgb(245 184 46 / .3); color: #f1d38f; }
.x-mt-fmt { margin-top: 28px; padding: 22px 24px; border: 1px solid #d9e8e2; border-radius: 20px; background: #fff; }
.x-mt-fmt h3 { margin: 0 0 14px; font-size: 1.05rem; font-weight: 700; }
.x-mt-fmt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.x-mt-fmt li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; background: #effaf6; border: 1px solid #cfeadf; font-size: .88rem; font-weight: 600; color: #0b5d4b; }
.x-mt-fmt .x-fine { margin: 14px 0 0; }
html.dark .x-mt-fmt { background: #1b232d; border-color: rgb(255 255 255 / .1); } html.dark .x-mt-fmt li { background: rgb(52 227 190 / .09); border-color: rgb(52 227 190 / .25); color: #9ee8d4; }

/* Shared-inbox demo: looks like a real desktop inbox (window bar, conversation list on the start side, search + filters) */
.d-demo[data-inbox] { padding: 0 !important; overflow: hidden; }
.d-win-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: #f2f5f7; border-bottom: 1px solid #e1e8ee; font-size: .82rem; color: #51606f; font-weight: 600; }
.d-win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff6058; } .d-win-bar i:nth-child(2) { background: #ffbd2e; } .d-win-bar i:nth-child(3) { background: #28c93f; }
.d-win-bar span { margin-inline-start: 10px; }
.d-demo[data-inbox] .d-inbox { padding: 14px; }
.d-demo[data-inbox] .d-inbox { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); }
.d-demo[data-inbox] .d-list { order: 1; } .d-demo[data-inbox] .d-chat { order: 2; }
.d-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 12px; background: #f1f5f7; color: #7a8896; font-size: .86rem; }
.d-ftabs { display: flex; gap: 6px; } .d-ftabs b, .d-ftabs span { padding: 5px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: #f1f5f7; color: #5b6978; }
.d-ftabs b { background: #0a8f72; color: #fff; }
.d-demo[data-inbox] .d-sample { margin: 0 14px 12px; }
html.dark .d-win-bar { background: #222b36; border-color: rgb(255 255 255 / .08); color: #aab6c3; } html.dark .d-search, html.dark .d-ftabs b, html.dark .d-ftabs span { background: #263140; color: #aab6c3; } html.dark .d-ftabs b { background: #0a8f72; color: #fff; }

/* Final call-to-action: one confident green panel */
.x-cta-sec { position: relative; padding-block: clamp(44px, 5.4vw, 72px); background: #fff; }
.x-cta { position: relative; overflow: hidden; gap: 28px; padding: clamp(28px, 4.5vw, 56px); border-radius: 28px; background: radial-gradient(70% 120% at 100% 0%, rgb(52 227 190 / .35), transparent 60%), linear-gradient(135deg, #064e3f 0%, #0a7a62 55%, #0d9a7b 100%); color: #fff; box-shadow: 0 30px 60px -34px rgb(6 78 63 / .75); }
.x-cta h2, .x-cta p, .x-cta .text-secondary { color: #fff !important; }
.x-cta p { opacity: .88; }
.x-cta .badge { background: rgb(255 255 255 / .16) !important; border-color: rgb(255 255 255 / .3) !important; color: #fff !important; }
.x-cta input[type="email"] { background: #fff; color: #0b1220; border-color: transparent; }
.x-cta .btn-primary { background: #0b1220 !important; color: #fff !important; } .x-cta .btn-primary:hover { background: #fff !important; color: #064e3f !important; }
.x-cta li p { opacity: .95; } .x-cta li span.rounded-full { background: rgb(255 255 255 / .22) !important; }
html.dark .x-cta-sec { background: transparent; }
.x-cta .x-bd, .x-cta-sec > .x-bd { z-index: 0; } .x-cta-sec > .x-bd img { opacity: .08; }

/* Hero scene tabs: show the whole label (wrap to two lines instead of cutting it with "…") */
html .hx .x-tab { height: auto; min-height: 42px; padding: 6px 8px; line-height: 1.25; white-space: normal; text-align: center; }
html .hx .x-tab-tx { overflow: visible; text-overflow: clip; }

/* Page heroes sit below the glass header + promo bar */
html main > .x-phero { padding-top: 188px !important; padding-bottom: 44px !important; }
@media (max-width: 1000px) { html main > .x-phero { padding-top: 150px !important; padding-bottom: 32px !important; } }

/* Tablet range: the demo cards (phone + panel) need the full width, so the text sits above them until the screen is truly wide */
@media (max-width: 1180px) {
  .d-split, .d-split.flip { grid-template-columns: minmax(0, 1fr) !important; gap: 30px; }
  .d-split.flip .d-txt { order: 0; }
  .d-split > .d-txt { max-width: 760px; }
  .d-split > .d-demo { width: 100%; max-width: 940px; margin-inline: auto; }
}

/* Flow demo: shrink the canvas on tablets instead of cutting nodes off; on phones it scrolls sideways */
@media (max-width: 1180px) { .d-canvas { zoom: .86; } }
@media (max-width: 900px) { .d-canvas { zoom: .7; } }
@media (max-width: 640px) { .d-canvas { zoom: .62; } .d-canvas-wrap { scrollbar-width: thin; } }

/* Inbox demo on narrow screens: conversation list on top, chat below (never two cramped columns) */
@media (max-width: 860px) {
  .d-demo[data-inbox] .d-inbox { grid-template-columns: minmax(0, 1fr); }
  .d-demo[data-inbox] .d-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-demo[data-inbox] .d-list > .d-list-h, .d-demo[data-inbox] .d-search, .d-demo[data-inbox] .d-ftabs { grid-column: 1 / -1; }
  .d-demo[data-inbox] .d-chat-b { height: 320px; }
}
@media (max-width: 460px) { .d-demo[data-inbox] .d-list { grid-template-columns: minmax(0, 1fr); } }

/* Phones (mobile): tables wrap instead of being cut at the edge; the phone mock is a bit shorter so it is not mostly empty wallpaper */
@media (max-width: 640px) {
  .x-tbl:not(:has(th:nth-child(4), td:nth-child(4))) { min-width: 0; font-size: .88rem; }
  .x-tbl:not(:has(th:nth-child(4), td:nth-child(4))) th, .x-tbl:not(:has(th:nth-child(4), td:nth-child(4))) td { padding: 11px 12px; overflow-wrap: anywhere; }
  .wa-phone { aspect-ratio: 9 / 17.4; }
  .x-tbl-wrap { -webkit-overflow-scrolling: touch; }
}
