/* X9 — x9-exp styles (design reference port). Loaded after ui/x9.css.
   Reference: scripts 5 (X9Channels), 9 (X9Experience + owner), 11 (X9Gate) and their CSS. Values are the reference's own
   (windows and pages use real px, as the reference does outside the 864-px canvas). */
:root {
    --x9-exp-blue: #8fdce7; --x9-exp-glass: #65897928; --x9-exp-ink: #eef6f0; --x9-exp-lime: #c6f532; --x9-exp-muted: #c0d1c8;
    --x9-exp-red: #ffaaa1; --x9-exp-soft: #93b6a52b; --x9-exp-radius: 16px;
    --x9-channel-muted: #c4d7cd; --x9-icon-ice: #8ddfe9; --x9-icon-lime: #c6f532;
}
/* wp-admin pages are LTR: every window keeps the design's direction */
body.wp-admin .xa-glass, body.wp-admin .xa-glass * { direction: rtl; }
body.wp-admin .xa-glass [dir="ltr"], body.wp-admin .xa-glass [dir="ltr"] * { direction: ltr; }

/* ------------------------------------------------------------ sheet vocabulary (inside the reference windows) */
.x9n-layer .x9-icon, .x9-exp-page .x9-icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--x9-icon-ice); }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row { width: 100%; display: flex; align-items: center; gap: 10px; text-align: right; padding: 12px 4px; background: none; color: var(--x9-exp-ink);
    border: 0; border-bottom: 1px solid #cce4d615 !important; border-radius: 0; min-height: 70px !important; font: inherit; cursor: pointer; box-shadow: none; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row > span { flex: 1; min-width: 0; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row strong { display: block; font-size: 15px; line-height: 1.7; font-weight: 700; overflow-wrap: anywhere; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row small { display: block; font-size: 12px; line-height: 1.8; color: var(--x9-exp-muted); font-weight: 400; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row > .x9-icon:last-child { width: 17px; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row[disabled] { opacity: .45; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row.is-danger strong, .x9n-layer .x9-exp-row.is-danger .x9-icon { color: #ff938b; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row .x9-exp-connection { font-size: 12px; display: flex; align-items: center; gap: 5px; margin-top: 3px; color: var(--x9-exp-muted); }
.x9-exp-connection i { width: 7px; height: 7px; border-radius: 50%; background: #9aaba2; display: inline-block; flex: none; }
.x9-exp-connection.connected i { background: #b8e581; }
.x9-exp-connection.broken i { background: #ff918e; }
.x9-exp-tag { display: inline-flex; align-items: center; min-height: 25px; border-radius: 8px; padding: 3px 8px; background: #728d8240; font-size: 12px; line-height: 1.6; color: var(--x9-exp-muted); font-weight: 500; }
.x9-exp-tag.green { color: #beec9a; background: #6f964c2e; }
.x9-exp-tag.red, .x9-exp-error { color: var(--x9-exp-red); background: #b65a5424; }
.x9-exp-tag.gray { color: var(--x9-exp-muted); }
.x9-exp-error { padding: 10px; border-radius: 10px; font-size: 12px; line-height: 1.8; margin: 8px 0; }
:is(.x9n-layer, .x9-exp-page) .x9-exp-row .x9-exp-tag { margin-top: 4px; }
.x9n-layer .x9-exp-h3, .x9n-layer .x9n-body h3 { font-size: 15px; line-height: 1.6; margin: 18px 0 6px; font-weight: 800; color: var(--x9-exp-ink); }
.x9n-layer .x9-studio-subtle { font-size: 12px !important; color: var(--x9-exp-muted); line-height: 1.8; margin: 6px 0; }
.x9n-layer .x9n-body > p { margin: 8px 0; }
.x9-exp-step { font-size: 12px; color: var(--x9-exp-blue); margin: 0 0 8px; }
/* glass fields (reference .x9-studio-field) */
.x9n-layer .x9-studio-field { display: block; margin: 12px 0; color: var(--x9-exp-muted); }
.x9n-layer .x9-studio-field > span { display: flex; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 7px; line-height: 1.5; }
.x9n-layer .x9-studio-field input, .x9n-layer .x9-studio-field textarea { display: block; box-sizing: border-box; width: 100%; min-height: 48px; resize: vertical; padding: 12px; border: 0; border-radius: 12px;
    font: 14px/1.8 var(--x9-font); background: var(--x9-exp-soft); color: var(--x9-exp-ink); outline: none; transition: background .15s, box-shadow .15s; direction: rtl; text-shadow: none; }
.x9n-layer .x9-studio-field input[type="date"] { min-height: 48px; color-scheme: dark; }
.x9n-layer .x9-studio-field input[dir="ltr"] { direction: ltr; text-align: left; }
.x9n-layer .x9-studio-field textarea { min-height: 76px; }
.x9n-layer .x9-studio-field :is(input, textarea):focus { background: #81a7974a; box-shadow: 0 0 0 1px #c6f53280, 0 0 12px #b2ec3914; }
.x9n-layer .x9-studio-field ::placeholder { color: var(--x9-exp-muted); opacity: 1; }
.x9n-layer .x9-studio-field input[readonly] { opacity: .8; }
.x9n-layer .x9-studio-field select { width: 100%; min-height: 48px; max-width: 100%; border: 0; border-radius: 12px; background: #476b5f; color: var(--x9-exp-ink); font: 14px var(--x9-font); padding: 10px; outline: none; }
.x9n-layer .x9-studio-field select option { background: #274b3f; color: #f0f5ef; }
.x9n-layer .x9-studio-field.is-invalid :is(input, textarea, select) { background: #b64c4b42; }
.x9n-layer .x9-studio-field .x9-field-error { display: block; color: var(--x9-red); font-size: 12px; padding-top: 5px; }
/* check options (reference .x9-studio-option + .x9-studio-choice) */
.x9n-layer .x9-studio-option { position: relative; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 10px; margin: 4px 0; border-radius: 11px; background: var(--x9-exp-glass); font-size: 14px; cursor: pointer; color: var(--x9-exp-ink); }
.x9n-layer .x9-studio-option > span { flex: 1; min-width: 0; }
.x9n-layer .x9-studio-option > span small { display: block; font-size: 12px; color: var(--x9-exp-muted); line-height: 1.6; }
.x9n-layer .x9-studio-option input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; z-index: 1; }
.x9n-layer .x9-studio-option:has(input:focus-visible) { outline: 1px solid var(--x9-exp-lime); }
.x9n-layer .x9-studio-choice { width: 22px; height: 22px; flex: none; border-radius: 7px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px #d6eade55; background: #182f2733; pointer-events: none; }
.x9n-layer .x9-studio-choice .x9-icon { width: 18px; height: 18px; color: var(--x9-exp-lime); }
.x9n-layer .x9-studio-option:has(input:disabled) { opacity: .5; }
/* chips (reference .x9-tools-chips) */
.x9n-layer .x9-tools-chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.x9n-layer .x9-tools-chips button { background: var(--x9-exp-glass); color: var(--x9-exp-ink); border: 0; border-radius: 12px; padding: 8px 10px; font-size: 12px; min-height: 44px; box-shadow: none; }
.x9n-layer .x9-tools-chips [aria-pressed="true"] { background: #b8ed4229; box-shadow: inset 0 0 0 1px #b8e77b55; color: var(--x9-exp-lime); }
.x9n-layer .x9-tools-keywords { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.x9n-layer .x9-tools-keywords > span { display: flex; align-items: center; gap: 5px; background: var(--x9-exp-glass); border-radius: 12px; padding-inline-start: 8px; font-size: 14px; }
.x9n-layer .x9-tools-keywords button { background: none; color: var(--x9-exp-blue); padding: 0; border: 0; }
.x9-tools-green { color: #b6ed8e; } .x9-tools-red { color: var(--x9-exp-red); }
/* switch (reference .x9-switch) */
.x9-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-size: 14px; cursor: pointer; margin: 8px 0 0; }
.x9-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.x9-switch .x9-toggle { width: 39px; height: 23px; flex: none; border-radius: 20px; background: #82988a4d; padding: 3px; transition: background 180ms; box-sizing: border-box; }
.x9-switch .x9-toggle::before { content: ''; display: block; width: 17px; height: 17px; background: #c2d0c6; border-radius: 50%; transition: transform 180ms; }
.x9-switch input:checked + .x9-toggle { background: #b9ec42; }
.x9-switch input:checked + .x9-toggle::before { transform: translateX(-16px); background: #25451b; }
.x9-switch input:focus-visible + .x9-toggle { outline: 2px solid var(--x9-line-cyan); }
/* saved / done mark (reference .x9-studio-saved) */
.x9n-layer .x9-studio-saved { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.x9n-layer .x9-studio-saved > .x9-icon { width: 30px; height: 30px; color: var(--x9-exp-lime); }
.x9n-layer .x9-studio-saved p { font-size: 14px; margin: 0 !important; }
.x9n-layer .x9-exp-feature-symbol { text-align: center; padding: 15px; }
.x9n-layer .x9-exp-feature-symbol .x9-icon { width: 60px; height: 60px; }
.x9n-layer .x9-exp-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 16px; }
.x9n-layer .x9-exp-actions .x9-link { justify-content: flex-start; }
.x9n-layer .x9-exp-pending { display: flex; justify-content: center; padding: 24px 0; }
.x9n-layer .x9-exp-pending::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #c6f53233; border-top-color: var(--x9-exp-lime); animation: x9-exp-spin .9s linear infinite; }
@keyframes x9-exp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .x9n-layer .x9-exp-pending::before { animation: none; } }
.x9n-layer .x9-exp-note { font-size: 12px; line-height: 1.8; color: var(--x9-exp-muted); }

/* ------------------------------------------------------------ owner panel pieces (reference script 9) */
.x9n-layer .x9-exp-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x9n-layer .x9-exp-metrics > div { display: flex; flex-direction: column; padding: 16px 10px; border-radius: 16px; background: var(--x9-exp-glass); gap: 4px; }
.x9n-layer .x9-exp-metrics strong { font-size: 30px; line-height: 1.3; color: var(--x9-exp-lime); font-weight: 800; }
.x9n-layer .x9-exp-metrics span { font-size: 12px; line-height: 1.7; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-consumption { padding: 12px 0; color: var(--x9-exp-muted); font-size: 14px; }
.x9n-layer .x9-exp-consumption > div { height: 7px; background: #536f6255; border-radius: 8px; overflow: hidden; margin-top: 8px; }
.x9n-layer .x9-exp-consumption i { display: block; height: 100%; background: var(--x9-exp-lime); }
.x9n-layer .x9-exp-consumption.danger i { background: #f3897f; }
.x9n-layer .x9-exp-consumption.danger strong { color: var(--x9-exp-red); }
.x9n-layer .x9-exp-engines article, .x9n-layer .x9-exp-banner-row { padding: 8px 10px; margin: 10px 0; background: var(--x9-exp-glass); border-radius: 16px; }
.x9n-layer .x9-exp-engines article > div, .x9n-layer .x9-exp-banner-row > div { display: flex; justify-content: flex-end; }
.x9n-layer .x9-exp-engines article .x9-exp-row, .x9n-layer .x9-exp-banner-row .x9-exp-row { border-bottom: 0 !important; min-height: 60px !important; }
.x9n-layer .x9-exp-engines .x9-link .x9-icon, .x9n-layer .x9-exp-banner-row .x9-link .x9-icon { width: 20px; height: 20px; }
.x9n-layer .x9-exp-site { display: flex; align-items: center; gap: 8px; padding: 12px 0; border-bottom: 1px solid #dce8df17; }
.x9n-layer .x9-exp-site > div { flex: 1; min-width: 0; }
.x9n-layer .x9-exp-site strong { font-size: 15px; display: block; overflow-wrap: anywhere; }
.x9n-layer .x9-exp-site small { display: block; font-size: 12px; line-height: 1.8; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-site .x9-exp-tag { margin: 5px 0; }
.x9n-layer .x9-exp-log { border-radius: 14px; padding: 12px; background: var(--x9-exp-glass); margin: 10px 0; }
.x9n-layer .x9-exp-log.failure { background: #a9575126; }
.x9n-layer .x9-exp-log > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.x9n-layer .x9-exp-log time, .x9n-layer .x9-exp-log > span { font-size: 12px; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-log strong { font-size: 14px; }
.x9n-layer .x9-exp-log p { font-size: 12px; line-height: 1.8; margin: 8px 0 0 !important; }
.x9n-layer .x9-exp-banner { display: flex; gap: 8px; align-items: center; padding: 12px; border-radius: 14px; background: #527c704d; }
.x9n-layer .x9-exp-banner > div { flex: 1; min-width: 0; }
.x9n-layer .x9-exp-banner strong { font-size: 14px; display: block; color: #76d8e0; line-height: 1.7; }
.x9n-layer .x9-exp-banner small { font-size: 12px; display: block; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-banner > span { font-size: 12px; max-width: 50px; }
.x9n-layer .x9-exp-activity.child { margin-inline-start: 18px; border-inline-start: 1px solid #88bca23b; padding-inline-start: 8px; }
.x9n-layer .x9-exp-size-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.x9n-layer .x9-exp-size-head .x9-studio-field { margin: 6px 0; }
.x9n-layer .x9-exp-size-rows > div { display: grid; grid-template-columns: repeat(var(--x9-exp-cols, 4), minmax(0, 1fr)); gap: 5px; margin: 10px 0; padding: 10px 0; border-bottom: 1px solid #b9d0c325; }
.x9n-layer .x9-exp-size-rows label { min-width: 0; }
.x9n-layer .x9-exp-size-rows span { display: block; font-size: 12px; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-size-rows input { width: 100%; min-width: 0; height: 44px; border: 0; border-radius: 9px; background: #71908138; color: var(--x9-exp-ink); font: 14px var(--x9-font); text-align: center; outline: none; }
.x9n-layer .x9-exp-interest { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-bottom: 1px solid #b9d0c325; }
.x9n-layer .x9-exp-interest strong { font-size: 15px; }
.x9n-layer .x9-exp-interest > span { margin-inline-start: auto; font-size: 12px; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-danger-zone { padding: 12px; border-radius: 14px; background: #b8585726; color: var(--x9-exp-red); }
.x9n-layer .x9-exp-danger-zone .x9-studio-option { background: transparent; padding: 6px 0; color: var(--x9-exp-red); }
.x9n-layer .x9-exp-danger-zone .x9-studio-subtle { color: var(--x9-exp-red); opacity: .85; }
.x9n-layer .x9-exp-more { margin-top: 14px; }
.x9n-layer .x9-exp-more summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; color: var(--x9-line-cyan); font-size: 14px; }
.x9n-layer .x9-exp-more summary::-webkit-details-marker { display: none; }
.x9n-layer .x9-exp-plain { font-size: 13px; line-height: 1.8; color: var(--x9-exp-muted); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--x9-exp-glass); border-radius: 12px; padding: 10px; direction: ltr; text-align: left; }

/* ------------------------------------------------------------ add methods: file import (reference script 9 fileMarkup) */
.x9n-layer .x9-exp-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-height: 170px !important; gap: 12px; border: 0; border-radius: 18px; background: var(--x9-exp-soft); color: var(--x9-exp-ink); margin: 12px 0; cursor: pointer; font: inherit; }
.x9n-layer .x9-exp-drop .x9-icon { width: 40px; height: 40px; }
.x9n-layer .x9-exp-drop strong { font-size: 18px; }
.x9n-layer .x9-exp-drop span { font-size: 12px; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-preview-table { font-size: 12px; margin: 12px 0; background: var(--x9-exp-glass); border-radius: 12px; overflow: hidden; }
.x9n-layer .x9-exp-preview-table > div { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr); gap: 8px; padding: 10px; border-bottom: 1px solid #c5decd1c; overflow-wrap: anywhere; }
.x9n-layer .x9-exp-preview-table .table-head { background: #83a69722; color: var(--x9-exp-muted); }
.x9n-layer .x9-exp-preview-table .invalid { background: #b65d532b; color: var(--x9-exp-red); }
.x9n-layer .x9-exp-preview-table small { grid-column: 1 / -1; font-size: 12px; }
.x9n-layer .x9-exp-link-start { justify-content: flex-start; padding-inline: 0; }

/* ------------------------------------------------------------ entry: login + welcome (reference script 11, X9Gate) */
/* the light trails glow through the glass like the reference (lines over the screen, under the 7px glass; glow paths 22/.8) */
.x9-entry .x9-bg { opacity: 1; filter: blur(7px); }
.x9-entry .x9-bg path[filter] { stroke-width: 22; opacity: .8; }
.x9-entry:focus { outline: none; }
.x9-entry-brand.shine-done::after, .x9-entry-primary.shine-done::before { animation: none; display: none; }
.x9-login-card { transition: opacity .24s, transform .24s; }
.x9-login-card.is-leaving { opacity: 0; transform: translateY(-8px); }
.x9-login-error[hidden] { display: none; }
.x9-entry button.x9-entry-secondary { font: inherit; cursor: pointer; width: 100%; }
/* the card of scene 3 and of «خطوتك الأولى»: a block, title 18px, the line right under it */
.x9-entry .x9-extension-card { display: block; }
.x9-entry .x9-extension-card h2, .x9-entry-window .x9n-title { font-size: 18px; }
.x9-entry .x9-extension-card h2 { margin: 0 0 9px; line-height: 1.6; }
.x9-entry .x9-extension-card .x9-extension-footer { margin-top: 12px; }
/* the gallery shows each product whole inside its frame (reference: contain, light backing) */
.x9-entry .x9-welcome-deck .x9-deck-photo { background: #f1f2f0; padding: 8%; box-sizing: border-box; }
.x9-entry .x9-welcome-deck .x9-deck-photo img { object-fit: contain; border-radius: 12px; }
/* motion: reduced = still trails at .92; a hidden page pauses every trail */
body.x9-motion-reduced .x9-line { animation: none !important; transform: none !important; opacity: .92; }
@media (prefers-reduced-motion: reduce) { .x9-bg .x9-line { animation: none !important; transform: none !important; opacity: .92; } }
body.x9-page-away .x9-line { animation-play-state: paused !important; }
/* right after a successful sign-in the reload paints the entry backdrop first (no flash of the bare page) */
html.x9-entry-pending body { background: #04140f url('img/entry-backdrop.webp') center top / cover no-repeat; }
html.x9-entry-pending #xa-root, html.x9-entry-pending body > .x9-bg { visibility: hidden; }
/* the extension inside a reference window (from «طرق الإضافة»): the same content and the gate's buttons */
.x9-entry-window .x9-extension-content { font-size: 14px; }
.x9-entry-window .x9-extension-content > p { color: var(--x9-ext-ink); margin: 0 0 14px; font-size: 14px; }
.x9-entry-window .x9-extension-content small { font-size: 12px; line-height: 1.8; color: var(--x9-entry-soft); }
.x9-entry-window .x9-extension-steps li { font-size: 14px; }
.x9-entry-window :is(.x9-entry-primary, .x9-entry-secondary, .x9-entry-quiet) { font-family: var(--x9-font); cursor: pointer; text-decoration: none; box-sizing: border-box; }
.x9-entry-window .x9-entry-primary { position: relative; overflow: hidden; min-height: 52px; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 10px 14px;
    border: 1px solid var(--x9-go-edge); border-radius: 12px; color: var(--x9-go-ink) !important; font-size: 17px; font-weight: 800; line-height: 1.6; text-shadow: none;
    background: linear-gradient(112deg, var(--x9-go-1) 3%, var(--x9-go-2) 24%, var(--x9-go-3) 47%, var(--x9-go-4) 66%, var(--x9-go-5) 82%, var(--x9-go-1) 100%) 0 0 / 250% 160%;
    box-shadow: inset 0 1px 2px var(--x9-go-in-a), inset 0 -2px 3px var(--x9-go-in-b), 0 0 16px var(--x9-go-glow), 0 5px 9px var(--x9-go-drop); }
.x9-entry-window .x9-entry-secondary { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--x9-alt-edge); border-radius: 12px;
    color: var(--x9-alt-ink); line-height: 1.6; font-size: 12px; white-space: nowrap; background: linear-gradient(125deg, var(--x9-alt-a), var(--x9-alt-b)); box-shadow: inset 0 1px 3px var(--x9-alt-in), 0 4px 6px var(--x9-alt-drop); }
.x9-entry-window .x9-entry-secondary .x9-icon { width: 20px; height: 20px; }
.x9-entry-window .x9-entry-quiet { background: none; border: 0; color: var(--x9-quiet-ink); min-height: 44px; padding: 7px 12px; font-size: 14px; }
.x9-entry-window .x9-extension-footer { margin-top: 16px; }
.x9-entry-window .x9-extension-installed .x9-icon { width: 22px; height: 22px; color: var(--x9-installed-ink); }
.x9-entry .x9-login-card { padding: 16px; gap: 12px; }
.x9-entry .x9-login-card form { gap: 13px; }
.x9-entry .x9-extension-content small { font-size: 12px; line-height: 1.8; text-shadow: 0 1px 2px #00190e80; }
.x9-entry-window .x9-extension-footer { display: inline-flex; flex-direction: column; align-items: stretch; gap: 8px; }
.x9-entry-window .x9-extension-footer .x9-entry-primary { padding: 10px 26px; }

/* ------------------------------------------------------------ owner chrome: the design has no «عرض كمالك / كتاجر» in the app header
   (those were the prototype's preview controls); the header keeps its normal height */
.x9-role-switch { display: none !important; }
.x9-owner-chrome .x9-top { height: calc(151 * var(--u) + env(safe-area-inset-top, 0px)); }
.x9-owner-chrome .x9-frame { padding-top: calc(151 * var(--u) + env(safe-area-inset-top, 0px)); }
/* the owner panel inside wp-admin: the same rows on the page */
.x9-exp-page { direction: rtl; max-width: 430px; margin: 0 auto; padding: 8px 16px 24px; color: var(--x9-exp-ink, #eef6f0); font: 500 14px/1.65 var(--x9-font); }
.x9-exp-page-title { font-size: 24px; line-height: 1.5; margin: 0 0 12px; font-weight: 800; }
.x9n-layer .x9-studio-field input[dir="ltr"]:placeholder-shown { direction: rtl; text-align: right; }
/* a window whose footer holds one secondary button: the button spans the footer (reference .x9-footer>.x9-secondary:only-child) */
.x9n-foot > .x9-secondary:only-child { flex: 1; width: 100%; background: #799b8840; }
.x9n-layer .x9-exp-link-start { display: flex; width: max-content; max-width: 100%; }
.x9n-layer button.x9-exp-interest { width: 100%; background: none; border: 0; border-bottom: 1px solid #b9d0c325; border-radius: 0; color: var(--x9-exp-ink); font: inherit; text-align: right; cursor: pointer; box-shadow: none; }

/* ------------------------------------------------------------ the first-run guide (reference .x9-first-guide / .x9-first-bubble) */
.x9-first-guide { position: fixed; inset: 0; z-index: 190; background: #04191170; pointer-events: auto; }
.x9-first-guide[hidden] { display: none; }
.x9-first-guide::before { content: ''; position: absolute; left: var(--guide-x); top: var(--guide-y); width: var(--guide-w); height: var(--guide-h); border-radius: 14px; box-shadow: 0 0 0 3px #d1fa6f, 0 0 26px #bbef7780; background: #acd85010; }
.x9-first-bubble { position: absolute; left: 20px; right: 20px; max-width: 350px; margin: auto; padding: 16px; border-radius: 20px; background: #30594ddd; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #ecf7ec; text-align: center; direction: rtl; font-family: var(--x9-font); box-sizing: border-box; }
.x9-first-bubble p { font-size: 15px; margin: 0 0 12px; line-height: 1.7; }
.x9-first-bubble button { min-height: 44px; min-width: 80px; border: 0; border-radius: 12px; background: #c6f532; color: #153822; font: 14px var(--x9-font); padding: 8px 20px; cursor: pointer; }

/* ------------------------------------------------------------ «القنوات» page (reference script 5 CSS, final values) */
.x9-channels { direction: rtl; text-align: right; color: var(--x9-text, #f5f8f5); padding: 20px 18px 24px; font: 500 14px/1.6 var(--x9-font); }
.x9-channels-content { width: 100%; max-width: 430px; margin: 0 auto; }
.x9-channels h1 { font-size: 24px; line-height: 1.5; margin: 0 0 16px; font-weight: 800; }
.x9-channel-section { margin: 0 0 24px; scroll-margin-top: 16px; }
.x9-channel-section h2 { font-size: 18px; line-height: 1.5; margin: 0 0 12px; color: var(--x9-text, #f5f8f5); font-weight: 800; }
.x9-channel-store { padding: 16px; background: #426b5b59; border-radius: 22px; box-shadow: none; border: 0; }
.x9-channel-store-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.x9-channel-store-head > div:nth-child(2) { flex: 1; min-width: 0; }
.x9-channel-store-head h2 { margin: 0; font-size: 19px; }
.x9-channel-store-head small, .x9-channels small { font-size: 12px; line-height: 1.6; color: var(--x9-channel-muted); display: block; }
.x9-channel-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; flex: none; background: linear-gradient(135deg, #7aa99850, #1c3c3155); box-shadow: inset 0 1px 2px #d7f5e32b; color: #c6f532; overflow: hidden; }
.x9-channel-logo .x9-icon { width: 30px; height: 30px; }
.x9-channel-logo.is-store { font: 900 italic 23px Arial, sans-serif; color: #eaf7ea; }
.x9-channel-logo.is-store img { width: 100%; height: 100%; object-fit: cover; }
.x9-channel-store-status { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.x9-channel-status-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; display: inline-block; }
.x9-channel-store-status.connected { color: #b1de82; }
.x9-channel-store-status.broken { color: #ff9c92; }
.x9-channel-store-status.unlinked { color: #c5d0ca; }
.x9-channels p { font-size: 14px; line-height: 1.7; margin: 8px 0 12px; color: var(--x9-channel-muted); }
.x9-channel-store .x9-channel-last-check, .x9-channel-store .x9-channel-reason { font-size: 12px; margin: 4px 16px 8px; }
.x9-channels .x9-channel-reason { color: #ffafa5; }
.x9-channels .x9-icon, .x9n-layer .x9-channel-outcome .x9-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; color: var(--x9-icon-ice); }
.x9-channels button { min-width: 44px; min-height: 44px; border: 0; cursor: pointer; font-family: var(--x9-font); font-size: 14px; line-height: 1.5; box-shadow: none; }
.x9-channels .x9-channel-check { width: 100%; margin-top: 4px; background: #82a99a29; color: #f5f8f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; }
.x9-channels .x9-channel-check[disabled] { opacity: .6; }
.x9-channel-more { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #708c8030; color: #d8e7df; }
.x9-channel-connect { margin-top: 20px; padding-top: 18px; border-top: 1px solid #bdd6c31a; }
.x9n-layer .x9-channel-connect { margin: 0; padding: 0; border: 0; }
.x9-channel-connect .x9-primary { width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 17px; min-height: 52px; }
.x9-channel-soon { font-size: 12px; font-weight: 600; line-height: 1.5; display: inline-block; padding: 2px 8px; border-radius: 20px; background: #65827d3b; color: #c8d5d1; white-space: nowrap; }
.x9-primary .x9-channel-soon { color: #304429; background: #17342418; }
.x9-channel-connect .x9-link { display: flex; align-items: center; gap: 6px; color: #9ddae3; padding: 4px 0; min-height: 44px; background: none; }
.x9-channel-connect .x9-link .x9-icon { width: 18px; height: 18px; color: #9ddae3; }
#x9-channel-settings [role="radiogroup"] { overflow: hidden; border-radius: 18px; background: #36594b3b; }
.x9-channel-choice { width: 100%; display: flex; gap: 12px; align-items: center; text-align: right; padding: 10px 12px; border-radius: 0; background: #65867920; color: var(--x9-text, #f5f8f5); margin: 0; min-height: 76px; }
.x9-channel-choice + .x9-channel-choice { border-top: 1px solid #c7e3d112; }
.x9-channel-choice > span:first-child { flex: 1; min-width: 0; }
.x9-channel-choice strong { display: block; font-size: 15px; line-height: 1.6; }
.x9-channel-choice small { display: block; font-weight: 400; margin-top: 2px; line-height: 1.6; }
.x9-channel-choice[aria-checked="true"] { background: #74924d28; box-shadow: none; }
.x9-choice-mark { width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid #c5d6cc80; box-sizing: border-box; }
.x9-channel-choice[aria-checked="true"] .x9-choice-mark { background: var(--x9-exp-lime); color: #173524; border: 0; }
.x9-channel-choice[aria-checked="true"] .x9-choice-mark .x9-icon { color: #173524; width: 18px; height: 18px; stroke-width: 2.4; }
.x9-channel-info { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; align-items: center; padding: 10px 0 0; gap: 8px; font-size: 12px; line-height: 1.7; color: #bfcfc6; }
.x9-channel-info .x9-icon { width: 16px; height: 16px; margin: 0; color: #b4d571; }
.x9-channel-info .x9-link { display: inline-flex; align-items: center; min-height: 44px; color: #8fd8e2; padding: 0 6px; background: none; font-size: 14px; }
.x9-channel-filters { display: flex; gap: 6px; margin-bottom: 4px; }
.x9-channel-filter { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; background: #36544957; color: #cbded2; padding: 8px; }
.x9-channel-filter b { font-size: 12px; font-weight: 600; color: inherit; }
.x9-channel-filter[aria-pressed="true"] { background: #c6f532; color: #193227; }
.x9-channel-record { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #bad0c019; text-align: right; }
.x9-channel-record img, .x9-channel-noimage { width: 58px; height: 68px; object-fit: contain; background: #e2e6e3; border-radius: 12px; display: grid; place-items: center; }
.x9-channel-noimage .x9-icon { color: #7d918a; }
.x9-channel-record-main { min-width: 0; }
.x9-channel-record h3 { font-size: 15px; font-weight: 700; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin: 0; text-align: start; unicode-bidi: plaintext; }
.x9-channel-record time { display: block; font-size: 12px; color: #b2c6bc; line-height: 1.8; }
.x9-channel-record-bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.x9-channel-badge { font-size: 12px; line-height: 1.6; padding: 3px 7px; border-radius: 10px; white-space: nowrap; background: #554e253f; color: #e6cf76; }
.x9-channel-badge.published { color: #8bcaa0; background: #2e694742; }
.x9-channel-badge.failed { color: #ffaba3; background: #a74a4238; }
.x9-channel-record button { font-size: 12px; padding: 7px 9px; color: #b7e4e9; background: #456a5e40; border-radius: 10px; }
.x9-channel-record button[disabled] { opacity: .45; }
.x9-channel-record .x9-channel-reason { font-size: 12px; line-height: 1.7; color: #ffafa5; margin: 3px 0; }
.x9-channel-more-log { width: 100%; margin: 6px 0 0; color: #a6dbe0; background: #6884781c; border-radius: 12px; }
.x9-channel-empty { text-align: center; padding: 26px 8px; color: #c4d4c9; font-size: 14px; line-height: 1.8; }
.x9-channel-future-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.x9-channel-future { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: right; padding: 14px 12px; background: #52736327; border-radius: 18px; color: #b9c9bf; min-width: 0 !important; }
.x9-channel-future .x9-icon { color: #96c7cf; width: 26px; height: 26px; }
.x9-channel-future .x9-channel-soon { position: absolute; top: 14px; left: 9px; font-size: 12px; padding: 1px 6px; }
.x9-channel-future strong { font-size: 15px; color: #e8f2ec; }
.x9-channel-future small { font-size: 12px; line-height: 1.7; }
/* channel windows */
.x9n-layer .x9-channel-steps { counter-reset: step; list-style: none; margin: 12px 0; padding: 0; }
.x9n-layer .x9-channel-steps > li { position: relative; padding: 0 28px 16px 0; line-height: 1.8; font-size: 14px; }
.x9n-layer .x9-channel-steps > li::before { counter-increment: step; content: counter(step); position: absolute; right: 0; top: 0; color: #b6e280; font: 700 14px/25px Arial, sans-serif; }
.x9n-layer .x9-channel-scopes { display: block; padding: 0; margin: 8px 0 0; list-style: none; color: #d8e6db; }
.x9n-layer .x9-channel-scopes li { padding: 2px 0; font-size: 13px; }
.x9n-layer .x9-channel-callback { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; min-width: 0; }
.x9n-layer .x9-channel-callback input { width: 100%; min-width: 0; min-height: 44px; font-size: 12px; padding: 8px; border: 0; border-radius: 10px; background: #52766a50; color: #e3eee7; direction: ltr; }
.x9n-layer .x9-channel-callback button { flex: none; padding: 6px 9px; font-size: 12px !important; }
.x9n-layer .x9-channel-callback .x9-icon { width: 20px; height: 20px; }
.x9n-layer .x9-channel-notice { font-size: 12px !important; line-height: 1.8; color: #ffc17b !important; }
.x9n-layer .x9-channel-progress-label { font-size: 12px; color: #bcd4c7; margin: 0 0 8px; }
.x9n-layer .x9-channel-progress { height: 4px; background: #80948933; border-radius: 8px; margin-bottom: 18px; overflow: hidden; }
.x9n-layer .x9-channel-progress i { display: block; height: 100%; background: linear-gradient(90deg, #86d2dc, #c6f532); border-radius: 8px; }
.x9n-layer .x9-channel-field input { direction: ltr; text-align: left; background: #62877842; border-radius: 13px; font-size: 15px; }
.x9n-layer .x9-channel-field input::placeholder { font-size: 13px; direction: rtl; text-align: right; }
.x9n-layer .x9-channel-field input:placeholder-shown { direction: rtl; text-align: right; }
.x9n-layer .x9-channel-outcome { text-align: center; padding: 8px 0; }
.x9n-layer .x9-channel-outcome > .x9-icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; color: var(--x9-icon-lime); }
.x9n-layer .x9-channel-outcome.is-error > .x9-icon { color: #f3a09a; }
.x9n-layer .x9-channel-outcome h3 { font-size: 20px; margin: 10px 0 12px; }
.x9n-layer .x9-channel-outcome .x9-channel-logo { margin: 16px auto 8px; }
.x9n-layer .x9-channel-outcome p { font-size: 14px; line-height: 1.8; margin: 8px 0 12px; }
.x9-channel-spin { animation: x9-channel-spin 1.4s linear infinite; }
@keyframes x9-channel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .x9-channel-spin { animation: none; } }
.x9n-layer .x9-work-list-item .x9-icon { width: 22px; height: 22px; }
/* the channels context is the reference's opaque context (radial glow on #09251e): no trails behind the page */
html.x9-channels-on .x9-bg { background: radial-gradient(ellipse at 40% 22%, #28544577, transparent 70%), #09251e; }
html.x9-channels-on .x9-bg svg { display: none; }

/* ------------------------------------------------------------ the app's working extras (owner settings groups, «زر X9», settings help) keep their
   own content but wear the design's sheet vocabulary: glass fields, soft cards, small muted notes, tags (owner decision 2). Scoped to
   windows opened with kind "owner-extra" / "exp-extra" only. */
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-input { background: var(--x9-exp-soft); border: 0; border-radius: 12px; min-height: 48px; color: var(--x9-exp-ink); font: 14px/1.8 var(--x9-font); box-shadow: none; padding: 10px 12px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-input:focus { background: #81a7974a; box-shadow: 0 0 0 1px #c6f53280, 0 0 12px #b2ec3914; border: 0; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-input::placeholder { color: var(--x9-exp-muted); }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) select.xa-input { background: #476b5f; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-lbl { display: block; font-size: 12px; font-weight: 500; color: var(--x9-exp-muted); margin: 12px 0 7px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) :is(.xa-hint, .xa-sub) { font-size: 12px; line-height: 1.8; color: var(--x9-exp-muted); }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xp-card { background: var(--x9-exp-glass); border: 0; border-radius: 16px; box-shadow: none; backdrop-filter: none; padding: 12px; margin: 10px 0; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xp-h2 { font-size: 15px; font-weight: 800; margin: 0 0 6px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xp-row { border-bottom: 1px solid #cce4d615; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-note { background: var(--x9-exp-glass); border: 0; border-radius: 10px; font-size: 12px; line-height: 1.8; color: var(--x9-exp-muted); padding: 10px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-note.err { background: #b65a5424; color: var(--x9-exp-red); }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-note.ok { background: #6f964c2e; color: #beec9a; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-badge { border-radius: 8px; padding: 3px 8px; background: #728d8240; font-size: 12px; font-weight: 500; color: var(--x9-exp-muted); }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-badge.ok { color: #beec9a; background: #6f964c2e; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-badge.err { color: var(--x9-exp-red); background: #b65a5424; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-badge.warn { color: #ffc17b; background: #8a6a2a33; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .x9n-body .xa-btn.ghost { background: #799b8840; color: var(--x9-exp-ink); border: 0; box-shadow: none; border-radius: 12px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) .xa-check { background: var(--x9-exp-glass); border: 0; border-radius: 11px; min-height: 46px; }
.x9n-window:is([data-kind="owner-extra"], [data-kind="exp-extra"]) :is(code, .xp-copy, pre) { background: var(--x9-exp-soft); border-radius: 10px; color: #e3eee7; }

/* the welcome (signed in): the real work screen behind the reference glass (rgb(4 24 19 / .32), blur 7px, saturate .88) instead of the
   still picture; while the glass fades (x9-entry-revealing) the work screen comes out of the blur */
.x9-entry.x9-entry-welcome { background: rgb(4 24 19 / .32); -webkit-backdrop-filter: blur(7px) saturate(.88); backdrop-filter: blur(7px) saturate(.88); }
.x9-entry.x9-entry-welcome.is-leaving { transition: opacity .44s, -webkit-backdrop-filter .44s, backdrop-filter .44s; opacity: 0; -webkit-backdrop-filter: blur(0); backdrop-filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .x9-entry.x9-entry-welcome.is-leaving { transition: none; } }
/* owner lists that keep their order (activities, ready templates, size tables, upcoming channels): the row, then the reference's
   small up / down links on its end — the same links as the banner and engine lists, without their glass box */
.x9n-layer .x9-exp-ordered { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid #cce4d615; }
.x9n-layer .x9-exp-ordered > .x9-exp-row, .x9n-layer .x9-exp-ordered > .x9-exp-interest { flex: 1 1 auto; min-width: 0; border-bottom: 0 !important; }
.x9n-layer .x9-exp-ordered > div { display: flex; flex-direction: column; flex: none; }
.x9n-layer .x9-exp-ordered > div .x9-link { min-width: 34px; min-height: 30px; padding: 0; justify-content: center; }
.x9n-layer .x9-exp-ordered > div .x9-link .x9-icon { width: 18px; height: 18px; }
.x9n-layer .x9-exp-ordered > div .x9-link:disabled { opacity: .3; }

/* owner reference image 2026-10-10: Channels page order and layout */
.x9-channels .x9-channels-content { display: flex; flex-direction: column; gap: 12px; }
.x9-channels .x9-channel-store-head { display: flex; align-items: center; gap: 12px; }
.x9-channels .x9-channel-store-title { flex: 1 1 auto; min-width: 0; }
.x9-channels .x9-channel-store-title h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 20px; }
.x9-channels .x9-channel-store-title small { display: block; margin-top: 2px; color: #c9d3cf; font-size: 14px; }
.x9-channels .x9-channel-soon { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: var(--x9-lime, #c6f432); background: rgba(198,244,50,.16); }
.x9-channels .x9-channel-store-status { margin: 0 !important; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 14px; }
.x9-channels .x9-channel-connect { display: grid; gap: 10px; margin-top: 14px; }
.x9-channels .x9-channel-connect .x9-primary { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 800; border-radius: 16px; }
.x9-channels .x9-channel-connect p { margin: 0; text-align: center; font-size: 13px; color: #c9d3cf; }
.x9-channels .x9-channel-rule { border: 0; border-top: 1px solid rgba(255,255,255,.12); margin: 2px 0; width: 100%; }
.x9-channels .x9-channel-connect .x9-link { justify-self: start; display: inline-flex; align-items: center; gap: 6px; flex-direction: row-reverse; }
.x9-channels .x9-channel-modes { display: grid; gap: 12px; }
.x9-channels .x9-channel-modes .x9-channel-choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 76px; padding: 14px 18px; border-radius: 22px; text-align: right; color: inherit; }
.x9-channels .x9-channel-choice-icon { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; }
.x9-channels .x9-channel-choice-icon svg { width: 30px; height: 30px; }
.x9-channels .x9-channel-modes .x9-channel-choice > span:nth-child(2) { flex: 1 1 auto; display: grid; gap: 4px; }
.x9-channels .x9-channel-modes .x9-channel-choice strong { font-size: 17px; }
.x9-channels .x9-channel-modes .x9-channel-choice small { font-size: 13px; color: #c9d3cf; }
.x9-channels .x9-channel-modes .x9-choice-mark { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); display: grid; place-items: center; }
.x9-channels .x9-channel-modes .x9-channel-choice[aria-checked="true"] .x9-choice-mark { border-color: var(--x9-lime, #c6f432); background: var(--x9-lime, #c6f432); color: #10200a; }
.x9-channels .x9-channel-log-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.x9-channels .x9-channel-log-head h2 { margin: 0; font-size: 20px; }
.x9-channels .x9-channel-log-head svg { width: 30px; height: 30px; }
.x9-channels .x9-channel-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.x9-channels .x9-channel-filter { min-height: 48px; border-radius: 14px; font-size: 16px; }
.x9-channels .x9-channel-filter[aria-pressed="true"] { background: var(--x9-lime, #c6f432) !important; color: #10200a !important; font-weight: 800; }
.x9-channels .x9-channel-empty { text-align: center; margin-top: 12px; font-size: 14px; color: #c9d3cf; }
.x9-channels .x9-channel-future-wrap { display: grid; gap: 10px; }
.x9-channels .x9-channel-future-title { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 17px; }
.x9-channels .x9-channel-future-title svg { width: 24px; height: 24px; }
.x9-channels .x9-channel-future-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.x9-channels .x9-channel-future { position: relative; display: grid; gap: 4px; justify-items: start; text-align: right; padding: 14px 16px 16px; min-height: 120px; border-radius: 20px; color: inherit; }
.x9-channels .x9-channel-future-top { display: flex; width: 100%; align-items: center; justify-content: space-between; }
.x9-channels .x9-channel-future-top svg { width: 30px; height: 30px; }
.x9-channels .x9-channel-future strong { font-size: 17px; }
.x9-channels .x9-channel-future small { font-size: 13px; color: #c9d3cf; padding-inline-end: 22px; }
.x9-channels .x9-channel-future-go { position: absolute; left: 14px; bottom: 26px; width: 18px; height: 18px; opacity: .8; }
.x9-channels .x9-channel-future-go svg { width: 18px; height: 18px; }
.x9-channels .x9-channel-info { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c9d3cf; padding: 4px 2px 8px; }
.x9-channels .x9-channel-info span { flex: 1 1 auto; }
.x9-channels #x9-channel-log, .x9-channels #x9-channel-store { padding: 16px 18px 18px !important; border-radius: 24px !important; margin: 0 !important; }
/* one card for both send modes, a hairline between them; «ربط متقدم» bottom-left under «اربط الآن» */
.x9-channels .x9-channel-modes { gap: 0 !important; padding: 4px 0 !important; border-radius: 24px !important; }
.x9-channels .x9-channel-modes .x9-channel-choice { background: transparent !important; border: 0 !important; box-shadow: none !important; animation: none !important; border-radius: 0 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.x9-channels .x9-channel-modes .x9-channel-choice::before, .x9-channels .x9-channel-modes .x9-channel-choice::after { display: none !important; }
.x9-channels .x9-channel-modes .x9-channel-choice + .x9-channel-choice { border-top: 1px solid rgba(255,255,255,.12) !important; }
.x9-channels .x9-channel-connect { gap: 6px; }
.x9-channels .x9-channel-connect .x9-link { justify-self: end; }
