/* Arabic Viewer website - "screenshot-style" mock pictures of the viewer, drawn in HTML/CSS.
   Shared by features-a.html, features-b.html and guide.html. The viewer itself is laid out
   left-to-right with Arabic lines right-to-left, so mocks keep direction:ltr on every page. */

.ico { width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }

/* ---------- theme colours (approximations of the real Nixa themes) ---------- */
.t-night    { --bg:#12203a; --bg2:#0b1426; --panel:#0f1a2f; --line:rgba(238,242,249,.13); --ink:#eef2f9; --mut:#a3b0c6; --acc:#ffb454; --acc2:#d68c34; --acc-ink:#1a1206; --link:#8fc2ff; }
.t-emerald  { --bg:#11302b; --bg2:#0a201c; --panel:#0d2723; --line:rgba(234,246,242,.13); --ink:#eaf6f2; --mut:#9dbdb4; --acc:#5fe0b0; --acc2:#2fb487; --acc-ink:#04221a; --link:#8fe6ff; }
.t-rose     { --bg:#2a1630; --bg2:#1b0d20; --panel:#221228; --line:rgba(246,236,246,.13); --ink:#f6ecf6; --mut:#c4abc6; --acc:#ff7fb0; --acc2:#d9548a; --acc-ink:#2a0716; --link:#ffb3d1; }
.t-dune     { --bg:#33271b; --bg2:#221a11; --panel:#2b2117; --line:rgba(247,239,229,.13); --ink:#f7efe5; --mut:#c8b8a2; --acc:#ff9d4d; --acc2:#d9752a; --acc-ink:#2a1404; --link:#ffd29a; }
.t-graphite { --bg:#23262b; --bg2:#17191d; --panel:#1d2024; --line:rgba(238,240,243,.13); --ink:#eef0f3; --mut:#a8aeb7; --acc:#4fb8f0; --acc2:#2a8fcc; --acc-ink:#04182a; --link:#8fd2ff; }
.t-steel    { --bg:#3d5272; --bg2:#2e405c; --panel:#344866; --line:rgba(242,245,250,.18); --ink:#f4f7fb; --mut:#ccd6e4; --acc:#ffb454; --acc2:#d68c34; --acc-ink:#1a1206; --link:#cfe4ff; }
.t-sage     { --bg:#4b5f56; --bg2:#3b4c44; --panel:#43564d; --line:rgba(243,247,244,.18); --ink:#f5f8f6; --mut:#d0dbd4; --acc:#ffa286; --acc2:#e07a5a; --acc-ink:#2a0d04; --link:#ffe0c9; }
.t-rosegold { --bg:#fbeef4; --bg2:#f2dbe6; --panel:#ffffff; --line:rgba(58,24,48,.14); --ink:#3a1830; --mut:#6e4c62; --acc:#b52a75; --acc2:#c99434; --acc-ink:#ffffff; --link:#8a1f5c; }
.t-eid      { --bg:#12203a; --bg2:#0b1426; --panel:#0f1a2f; --line:rgba(238,242,249,.13); --ink:#eef2f9; --mut:#a3b0c6; --acc:#ff7ac4; --acc2:#3fc9b4; --acc-ink:#2a0718; --link:#ffd27a; }
.t-ocean    { --bg:#eaf6f7; --bg2:#d2ebee; --panel:#ffffff; --line:rgba(16,48,58,.14); --ink:#10303a; --mut:#456770; --acc:#0b7f86; --acc2:#2a9d7a; --acc-ink:#ffffff; --link:#0a5f8a; }
.t-royal    { --bg:#1d1a3c; --bg2:#120f29; --panel:#181533; --line:rgba(240,238,252,.13); --ink:#f0eefc; --mut:#b2acd6; --acc:#a493ff; --acc2:#ff7ab8; --acc-ink:#120a3a; --link:#ffd27a; }
.t-peacock  { --bg:#0f2d3a; --bg2:#081e28; --panel:#0c2531; --line:rgba(234,246,250,.13); --ink:#eaf6fa; --mut:#9bbcc8; --acc:#35d6b0; --acc2:#8f7dff; --acc-ink:#04221a; --link:#ffd27a; }

/* ---------- a viewer window ---------- */
.vw {
  direction: ltr; text-align: start;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 12px;
  font: 13px/1.5 "Segoe UI", Tahoma, Arial, sans-serif; overflow: hidden;
  box-shadow: 0 22px 50px rgba(3,8,20,.45), 0 0 0 1px rgba(0,0,0,.08);
}
.vw-h {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--bg2);
  border-bottom: 1px solid var(--line); font-weight: 600; font-size: 12.5px; letter-spacing: .01em;
}
.vw-h .ar { font-weight: 600; }
.vw-h .wb { margin-inline-start: auto; display: flex; gap: 6px; }
.vw-h .wb i { width: 10px; height: 10px; border-radius: 3px; border: 1px solid var(--mut); opacity: .7; }
.vw-b { padding: 12px; }
.ar { direction: rtl; unicode-bidi: isolate; font-family: "Noto Sans Arabic", "IBM Plex Sans Arabic", Tahoma, "Segoe UI", sans-serif; }
.mut { color: var(--mut); }
.acc { color: var(--acc); }

/* broken Arabic as other viewers show it: letters cut apart, left to right */
.broken { direction: ltr; unicode-bidi: bidi-override; font-family: Tahoma, "Segoe UI", sans-serif; letter-spacing: .06em; }

/* ---------- chat ---------- */
.m-chat .vw-b { display: flex; flex-direction: column; gap: 7px; min-height: 150px; }
.m-chat .ln { margin: 0; padding: 2px 0; }
.m-chat .ln b { color: var(--link); font-weight: 600; }
.m-chat .ln.ar { text-align: start; }
.m-chat .ln.me b { color: var(--acc); }
.m-chat .sys { color: var(--mut); font-style: italic; font-size: 12px; }

.m-chatbar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg2); }
.m-chatbar .in {
  flex: 1; min-height: 32px; box-sizing: border-box; border-radius: 8px; background: var(--panel); border: 2px solid var(--acc);
  display: flex; align-items: center; justify-content: flex-end; padding: 4px 10px; font-size: 14px; gap: 1px;
}
.m-chatbar .in .caret { width: 2px; height: 18px; background: var(--acc); }
.m-chatbar .tog {
  height: 32px; min-width: 40px; padding: 0 8px; border-radius: 8px; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--mut); font-weight: 700; font-size: 13px; font-family: Tahoma, sans-serif;
}
.m-chatbar .tog.on { background: var(--acc); color: var(--acc-ink); border-color: transparent; }
.m-chatbar .say { height: 32px; padding: 0 12px; border-radius: 8px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-size: 12px; }

/* ---------- bottom toolbar ---------- */
.m-toolbar { display: flex; gap: 6px; padding: 8px; background: var(--bg2); border-radius: 12px; border: 1px solid var(--line); direction: ltr; color: var(--ink); font: 11px/1.2 "Segoe UI", Tahoma, sans-serif; box-shadow: 0 14px 30px rgba(3,8,20,.35); }
.m-toolbar .tb { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 56px; padding: 7px 6px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); }
.m-toolbar .tb .ico { width: 20px; height: 20px; }
.m-toolbar .tb.ain { background: linear-gradient(180deg, var(--acc), var(--acc2)); color: var(--acc-ink); border-color: transparent; font-weight: 700; }
.m-toolbar .tb.ain .glyph { font: 700 19px/20px Tahoma, sans-serif; height: 20px; }
.m-toolbar .tb.lit { outline: 2px solid var(--acc); outline-offset: 1px; }
.m-toolbar .tb .sub { color: var(--acc); font-weight: 700; }

/* ---------- preferences ---------- */
.m-prefs .vw-b { display: grid; grid-template-columns: 128px 1fr; gap: 0; padding: 0; min-height: 210px; }
.m-prefs .tabs { background: var(--bg2); border-inline-end: 1px solid var(--line); padding: 8px 0; display: flex; flex-direction: column; }
.m-prefs .tabs span { padding: 6px 12px; color: var(--mut); font-size: 12.5px; }
.m-prefs .tabs span.on { color: var(--acc-ink); background: var(--acc); font-weight: 700; }
.m-prefs .pane { padding: 12px 14px; display: flex; flex-direction: column; gap: 9px; }
.m-prefs .pane h5, .m-prefs .pane .ph { margin: 0 0 2px; font-size: 12.5px; color: var(--mut); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.cb { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.4; }
.cb i { width: 15px; height: 15px; flex: none; border-radius: 4px; border: 1.5px solid var(--mut); margin-top: 1px; display: grid; place-items: center; }
.cb.on i { background: var(--acc); border-color: var(--acc); }
.cb.on i::after { content: ""; width: 7px; height: 4px; border: solid var(--acc-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px,-1px); }
.btn-m { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 12px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; color: var(--ink); }
.btn-m.pri { background: var(--acc); color: var(--acc-ink); border-color: transparent; font-weight: 700; }
.slider { height: 5px; border-radius: 9px; background: var(--panel); position: relative; border: 1px solid var(--line); }
.slider b { position: absolute; inset: 0 auto 0 0; border-radius: 9px; background: var(--acc); }
.slider u { position: absolute; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); transform: translate(-50%,-50%); }

/* ---------- theme tiles ---------- */
.m-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.m-tile { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 11.5px/1.3 "Segoe UI", Tahoma, sans-serif; direction: ltr; }
.m-tile .bar { height: 12px; background: var(--bg2); border-bottom: 1px solid var(--line); }
.m-tile .body { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.m-tile .l1 { height: 5px; border-radius: 4px; background: var(--mut); opacity: .55; width: 80%; }
.m-tile .l2 { height: 5px; border-radius: 4px; background: var(--mut); opacity: .35; width: 55%; }
.m-tile .bt { height: 10px; border-radius: 4px; width: 46%; background: linear-gradient(90deg, var(--acc), var(--acc2)); }
.m-tile .nm { padding: 6px 8px 7px; border-top: 1px solid var(--line); font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.m-tile .nm .ar { font-weight: 500; color: var(--mut); }
.m-tile.sel { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ---------- Nearby strip ---------- */
.m-strip {
  direction: ltr; width: 270px; border-radius: 10px; color: var(--ink);
  background: color-mix(in srgb, var(--bg2) 72%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 12.5px/1.3 "Segoe UI", Tahoma, sans-serif; box-shadow: 0 16px 36px rgba(3,8,20,.4); overflow: hidden;
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
}
.m-strip .sh { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-weight: 600; }
.m-strip .sh .cnt { color: var(--mut); font-weight: 500; }
.m-strip .sh .dot { margin-inline-start: auto; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.08); }
.dot.g { background: #3ddc84; } .dot.y { background: #ffd23f; } .dot.r { background: #ff5a5a; }
.m-strip .row { display: flex; align-items: center; gap: 7px; padding: 4px 10px; height: 25px; position: relative; }
.m-strip .row + .row { border-top: 1px solid rgba(255,255,255,.05); }
.m-strip .row .ico { width: 14px; height: 14px; color: var(--mut); }
.m-strip .row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-strip .row .ds { color: var(--mut); font-variant-numeric: tabular-nums; min-width: 30px; text-align: end; direction: ltr; unicode-bidi: isolate; }
.m-strip .row.toward .ico { color: var(--acc); }
.m-strip .row.fly .ico { color: #8fd2ff; }
.m-strip .row.lag .ico { color: #ff8a5a; }
.m-strip .row.friend .nm { color: #9fe0a8; font-weight: 600; }
.m-strip .row.marked { background: rgba(255,122,196,.16); }
.m-strip .row.marked::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: #ff7ac4; }
.m-strip .row.marked .nm, .m-strip .row.marked .ico { color: #ff9ad2; font-weight: 700; }
.m-strip .toast { margin: 6px 8px 8px; padding: 7px 9px; border-radius: 8px; background: rgba(255,122,196,.18); border: 1px solid rgba(255,122,196,.5); display: flex; gap: 7px; align-items: center; font-size: 12px; }
.m-strip .toast .ico { color: #ff9ad2; }

/* ---------- Lag Fix report ---------- */
.m-lag .tabs { display: flex; gap: 2px; padding: 8px 10px 0; background: var(--bg2); border-bottom: 1px solid var(--line); }
.m-lag .tabs span { padding: 6px 11px; border-radius: 7px 7px 0 0; color: var(--mut); font-size: 12px; }
.m-lag .tabs span.on { background: var(--bg); color: var(--ink); font-weight: 700; box-shadow: inset 0 2px 0 var(--acc); }
.m-lag .verdict { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,90,90,.12); border: 1px solid rgba(255,90,90,.45); }
.m-lag .verdict .big { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #ff5a5a; color: #fff; flex: none; }
.m-lag .verdict .big .ico { width: 17px; height: 17px; }
.m-lag .verdict b { display: block; font-size: 13.5px; }
.m-lag .verdict span { color: var(--mut); font-size: 12px; }
.m-lag .bars { display: grid; grid-template-columns: 92px 1fr 38px; gap: 6px 10px; align-items: center; margin-top: 12px; font-size: 12px; }
.m-lag .bars .track { height: 7px; border-radius: 9px; background: var(--panel); overflow: hidden; border: 1px solid var(--line); }
.m-lag .bars .track b { display: block; height: 100%; border-radius: 9px; }
.m-lag .bars .v { color: var(--mut); text-align: end; font-variant-numeric: tabular-nums; }
.m-lag .sus { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.m-lag .sus .r { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
.m-lag .sus .r.pick { border-color: var(--acc); }
.m-lag .sus .r small { display: block; color: var(--mut); font-size: 11.5px; }
.m-lag .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------- Mode window ---------- */
.m-mode .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; border: 1px solid transparent; }
.m-mode .opt + .opt { margin-top: 4px; }
.m-mode .opt i { width: 15px; height: 15px; border-radius: 50%; border: 1.5px solid var(--mut); flex: none; }
.m-mode .opt.on { background: var(--panel); border-color: var(--acc); }
.m-mode .opt.on i { border: 4.5px solid var(--acc); }
.m-mode .opt b { font-weight: 600; min-width: 92px; }
.m-mode .opt span { color: var(--mut); font-size: 12px; }
.m-mode .sep { height: 1px; background: var(--line); margin: 10px 0; }

/* ---------- welcome card + installer + SmartScreen ---------- */
.m-welcome { direction: rtl; background: #0f1a2f; color: #e9eef7; border: 1px solid rgba(255,180,84,.35); border-radius: 16px; padding: 18px 20px; font: 14px/1.7 "Noto Sans Arabic", Tahoma, "Segoe UI", sans-serif; box-shadow: 0 22px 50px rgba(3,8,20,.45); }
.m-welcome .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.m-welcome h6 { margin: 0; font-size: 18px; }
.m-welcome .dots { display: flex; gap: 6px; } .m-welcome .dots i { width: 22px; height: 5px; border-radius: 9px; background: #26365a; } .m-welcome .dots i.on { background: #ffb454; }
.m-welcome .tryin { margin-top: 10px; height: 38px; border-radius: 10px; border: 2px solid #ffb454; background: #fff; color: #10192c; display: flex; align-items: center; padding: 0 12px; font-size: 16px; }
.m-welcome .nav { display: flex; justify-content: flex-start; gap: 10px; margin-top: 12px; }
.m-welcome .nav b { background: #ffb454; color: #1a1206; border-radius: 9px; padding: 5px 16px; }

.m-setup { direction: ltr; text-align: start; background: #f3f3f3; color: #1b1b1b; border-radius: 8px; overflow: hidden; font: 12.5px/1.45 "Segoe UI", Tahoma, sans-serif; box-shadow: 0 22px 50px rgba(3,8,20,.35); border: 1px solid #cfcfcf; }
.m-setup .ttl { background: #fff; padding: 7px 12px; border-bottom: 1px solid #ddd; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.m-setup .ttl .logo { width: 16px; height: 16px; border-radius: 4px; background: #0b1426; color: #ffb454; display: grid; place-items: center; font: 700 11px/1 Tahoma; }
.m-setup .bd { padding: 16px 16px 12px; }
.m-setup .bd b { display: block; font-size: 14px; margin-bottom: 4px; }
.m-setup .prog { height: 14px; border: 1px solid #b9b9b9; background: #e6e6e6; margin: 12px 0 4px; }
.m-setup .prog i { display: block; height: 100%; width: 62%; background: #06b025; }
.m-setup .ft { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid #ddd; background: #f0f0f0; }
.m-setup .ft span { min-width: 72px; text-align: center; padding: 3px 10px; border: 1px solid #adadad; background: #e1e1e1; border-radius: 3px; }
.m-setup .ft span.def { border-color: #0078d7; box-shadow: inset 0 0 0 1px #0078d7; }

.m-smart { direction: ltr; text-align: start; background: #0b5cad; color: #fff; padding: 22px 24px 18px; font: 13px/1.5 "Segoe UI", Tahoma, sans-serif; border-radius: 4px; box-shadow: 0 22px 50px rgba(3,8,20,.45); position: relative; min-height: 230px; display: flex; flex-direction: column; }
.m-smart[dir="rtl"] { direction: rtl; text-align: start; font-family: "Segoe UI", Tahoma, sans-serif; }
.m-smart h6 { margin: 0 0 12px; font-size: 22px; font-weight: 300; }
.m-smart p { margin: 0 0 10px; max-width: 34em; color: #fff; }
.m-smart .more { align-self: flex-start; text-decoration: underline; font-weight: 600; display: inline-block; padding: 2px 4px; border-radius: 3px; }
.m-smart .kv { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: 12.5px; }
.m-smart .btns { margin-top: auto; padding-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.m-smart .btns span { min-width: 104px; text-align: center; padding: 6px 14px; border: 2px solid #fff; color: #fff; }
.m-smart .btns span.solid { background: #fff; color: #0b5cad; }
.m-smart .hl { outline: 3px solid #ffb454; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(255,180,84,.28); }
.m-smart .x { position: absolute; top: 8px; inset-inline-end: 12px; opacity: .8; }
.m-smart[dir="rtl"] .btns { justify-content: flex-start; }

/* a numbered marker drawn on top of a mock ("click here") */
.pin-n { position: absolute; width: 26px; height: 26px; border-radius: 50%; background: #ffb454; color: #1a1206; font: 700 13px/26px "Segoe UI", sans-serif; text-align: center; box-shadow: 0 0 0 4px rgba(255,180,84,.3), 0 6px 14px rgba(0,0,0,.35); z-index: 3; }

/* In the Arabic page the Nearby strip follows the reading direction: marker bar, lag dot and
   distances all flip to the mirrored side (logical properties above). */
html[dir="rtl"] .m-strip { direction: rtl; }

/* ---------- Emoji (Choose Emoji window, smiley button, ":" suggestions) ---------- */
.emo { font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif; font-style: normal; }
.m-chatbar .emobtn { height: 32px; display: flex; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); overflow: hidden; flex: none; }
.m-chatbar .emobtn span { display: grid; place-items: center; width: 30px; }
.m-chatbar .emobtn span + span { width: 14px; border-inline-start: 1px solid var(--line); color: var(--mut); }
.m-chatbar .emobtn .ico { width: 18px; height: 18px; }
.m-chatbar .emobtn.lit { outline: 2px solid var(--acc); outline-offset: 1px; }
.m-ecomplete { display: inline-flex; gap: 2px; padding: 4px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line); box-shadow: 0 12px 26px rgba(3,8,20,.45); direction: ltr; }
.m-ecomplete i { width: 32px; height: 30px; display: grid; place-items: center; border-radius: 7px; font-size: 19px; }
.m-ecomplete i.on { background: var(--panel); box-shadow: inset 0 0 0 2px var(--acc); }
.m-picker { width: 304px; }
.m-picker .groups { display: flex; gap: 0; padding: 0 6px; border-bottom: 1px solid var(--line); background: var(--bg2); }
.m-picker .groups i { width: 28px; height: 28px; display: grid; place-items: center; font-size: 15px; position: relative; opacity: .8; }
.m-picker .groups i.on { opacity: 1; }
.m-picker .groups i.on::after { content: ""; position: absolute; inset: auto 4px 0 4px; height: 2px; background: #3ddc84; }
.m-picker .grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px; font-size: 20px; }
.m-picker .grid i { height: 32px; display: grid; place-items: center; border-radius: 6px; }
.m-picker .grid i.on { background: var(--panel); box-shadow: inset 0 0 0 1px var(--acc); }
.m-picker .grid .cat { grid-column: 1 / -1; font: 600 11.5px/1.2 "Segoe UI", sans-serif; color: var(--mut); height: auto; place-items: start; padding: 4px 2px 2px; }
.m-picker .prev { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--bg2); }
.m-picker .prev .big { font-size: 28px; }
.m-picker .prev code { font: 12px/1.3 Consolas, "Segoe UI", monospace; color: var(--mut); }

/* windows that carry a numbered "click here" marker must not clip it */
.vw:has(> .pin-n) { overflow: visible; }
.vw:has(> .pin-n) > :first-child { border-radius: 11px 11px 0 0; }
.vw:has(> .pin-n) > .m-chatbar:first-child { border-radius: 11px; }
.vw:has(> .pin-n) .tabs { border-end-start-radius: 11px; }
