/* Viola Live website — shared styles (no frameworks, no trackers).
   Colors match the app: ink #0C0A18, purple #8B5CF6, pink #FF5C9D. One stylesheet serves RTL (Arabic) and LTR (English)
   through logical properties (margin-inline, padding-inline, inset-inline). */

:root {
  --ink: #0C0A18;
  --panel: #181327;
  --panel-2: #221B36;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .18);
  --purple: #8B5CF6;
  --pink: #FF5C9D;
  --gold: #FFC857;
  --sky: #62C8FF;
  --mint: #52D6B2;
  --text: #F8F4FF;
  --text-body: #E7DFF6;
  --text-soft: #C8BEDD;
  --text-mute: #ADA2C6;
  --link: #CDBBFF;
  /* Button gradient: darker than the brand pair so white text keeps a 4.5:1 contrast. */
  --btn-a: #7C3AED;
  --btn-b: #C2185B;
  --radius: 20px;
  --maxw: 1120px;
  --readw: 780px;
  --font: "Tajawal", "Segoe UI", Tahoma, system-ui, -apple-system, Roboto, "Noto Sans Arabic", "Noto Sans", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
body:lang(en) { line-height: 1.68; }
/* App-style glow behind everything (decorative). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(620px 420px at 88% -8%, rgba(139, 92, 246, .30), transparent 70%),
    radial-gradient(520px 400px at 6% 108%, rgba(255, 92, 157, .20), transparent 70%);
}

img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
h1, h2, h3 { line-height: 1.35; font-weight: 800; color: var(--text); }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 600px) { .wrap { padding-inline: 24px; } }

.icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
[dir="rtl"] .icon.flip { transform: scaleX(-1); }

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--gold);
  color: #1B1300;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: #1B1300; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 10, 24, .88);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-height: 64px; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 18px; }
.brand:hover { color: var(--text); }
.logo {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 6px 18px rgba(139, 92, 246, .40);
}
.logo svg { width: 20px; height: 20px; }
.site-nav { margin-inline-start: auto; min-width: 0; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-nav a {
  display: block; padding: 7px 12px; border-radius: 999px;
  color: var(--text-soft); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.site-nav a[aria-current="page"] { color: var(--text); background: rgba(139, 92, 246, .22); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .5); }
.lang-switch {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap;
}
.lang-switch:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-switch .icon { width: 18px; height: 18px; }
.brand + .lang-switch { margin-inline-start: auto; } /* pages without a nav (404) */
@media (max-width: 900px) {
  .site-nav { order: 3; flex: 1 0 100%; margin-inline: 0; }
  .site-nav ul { flex-wrap: wrap; row-gap: 4px; padding-bottom: 4px; }
  .lang-switch { margin-inline-start: auto; }
}
@media (max-width: 600px) {
  /* Every nav link stays visible (it wraps to a second row), so the header is no longer sticky on phones. */
  .site-header { position: static; }
  .site-nav a { padding: 6px 10px; font-size: 15px; }
}

/* In-page jumps (table of contents, help topics, #deletion): keep the target below the sticky header. */
[id] { scroll-margin-top: 84px; }
@media (max-width: 900px) { [id] { scroll-margin-top: 128px; } }
@media (max-width: 600px) { [id] { scroll-margin-top: 16px; } }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: 16.5px; line-height: 1.2; text-decoration: none;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); box-shadow: 0 10px 26px rgba(194, 24, 91, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 32px rgba(194, 24, 91, .4); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.get-app { display: inline-flex; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px; min-height: 54px; padding: 8px 20px 8px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1.5px dashed rgba(255, 200, 87, .6); color: var(--text);
}
.store-badge .play-mark { width: 26px; height: 26px; color: var(--gold); fill: rgba(255, 200, 87, .18); }
.store-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-text small { font-size: 13px; color: var(--gold); font-weight: 700; }
.store-text strong { font-size: 18px; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 5px 13px; border-radius: 999px;
  background: rgba(139, 92, 246, .14); border: 1px solid rgba(139, 92, 246, .42); color: #DCCFFF; font-weight: 700; font-size: 14px;
}
.eyebrow .icon { width: 18px; height: 18px; }
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: rgba(255, 255, 255, .07); color: var(--text-soft); }

/* ---------- Home ---------- */
.hero { padding: 48px 0 32px; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.2fr .8fr; } .hero { padding: 72px 0 48px; } }
.hero h1 { font-size: clamp(31px, 5.4vw, 54px); margin: 18px 0 14px; }
.grad { background: linear-gradient(90deg, #BBA2FF, #FF86B6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17.5px, 2.2vw, 20.5px); color: var(--text-soft); max-width: 62ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.hero-note { margin-top: 14px; color: var(--text-mute); font-size: 15px; }

.mock {
  position: relative; max-width: 380px; margin-inline: auto; width: 100%; padding: 22px 20px 20px; border-radius: 28px;
  background: linear-gradient(180deg, rgba(34, 27, 54, .95), rgba(24, 19, 39, .98));
  border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.mock-live { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b)); }
.mock-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.mock-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.seats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; margin-bottom: 18px; }
.seat { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; background: var(--panel-2); color: var(--text-mute); }
.seat::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 180deg, var(--purple), var(--pink), var(--gold), var(--purple));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.seat.idle::before { background: rgba(255, 255, 255, .12); }
.seat .icon { width: 20px; height: 20px; }
.seat.on { color: #fff; }
.mock-chat { display: grid; gap: 8px; }
.mock-chat span { display: block; height: 30px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.mock-chat span:nth-child(1) { width: 82%; }
.mock-chat span:nth-child(2) { width: 64%; }
.mock-chat span:nth-child(3) { width: 74%; background: rgba(255, 200, 87, .08); border-color: rgba(255, 200, 87, .3); }

.section { padding: 48px 0; }
@media (min-width: 920px) { .section { padding: 64px 0; } }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(25px, 3.4vw, 36px); margin: 12px 0 10px; }
.section-head p { color: var(--text-soft); font-size: 18px; margin: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.cards.cards-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(34, 27, 54, .78), rgba(24, 19, 39, .92));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { font-size: 19.5px; margin: 14px 0 6px; }
.card p { color: var(--text-soft); margin: 0; }
.card p + p { margin-top: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease; }
a.card:hover { border-color: rgba(139, 92, 246, .55); transform: translateY(-2px); }
a.card h3 { color: var(--text); }
.icon-tile {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(139, 92, 246, .16); color: #D2C2FF; border: 1px solid rgba(139, 92, 246, .38);
}
.icon-tile .icon { width: 24px; height: 24px; }
.t-pink { background: rgba(255, 92, 157, .13); color: #FFB3D0; border-color: rgba(255, 92, 157, .38); }
.t-gold { background: rgba(255, 200, 87, .12); color: #FFDB91; border-color: rgba(255, 200, 87, .36); }
.t-sky { background: rgba(98, 200, 255, .12); color: #A9E1FF; border-color: rgba(98, 200, 255, .36); }
.t-mint { background: rgba(82, 214, 178, .12); color: #9DEBD5; border-color: rgba(82, 214, 178, .36); }
.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 920px) { .split { grid-template-columns: 1fr 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel h3 { margin-top: 0; font-size: 20px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-body); }
.checklist .icon { color: var(--mint); margin-top: 4px; }
.checklist.warn .icon { color: var(--gold); }
.app-cta { display: grid; gap: 22px; align-items: center; padding: 30px 24px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(194, 24, 91, .16)); border: 1px solid rgba(139, 92, 246, .38); }
@media (min-width: 820px) { .app-cta { grid-template-columns: 1fr auto; padding: 36px; } }
.app-cta h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.app-cta p { margin: 0; color: var(--text-soft); }

details.faq { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); margin-bottom: 10px; }
details.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold); font-weight: 800; font-size: 20px; line-height: 1; }
details.faq[open] summary::after { content: "−"; }
details.faq > div { padding: 0 18px 16px; color: var(--text-soft); }

/* ---------- Documents (policies, help) ---------- */
.doc-hero { padding: 44px 0 18px; }
.doc-hero h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 16px 0 8px; }
.doc-meta { color: var(--text-mute); font-size: 15px; }
.doc-hero .lead { margin-top: 8px; }
.doc-layout { display: grid; gap: 28px; padding-bottom: 56px; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 270px minmax(0, 1fr); align-items: start; } }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 15.5px; }
@media (min-width: 1000px) { .toc { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; } }
.toc h2 { font-size: 15px; margin: 0 0 8px; color: var(--text-mute); }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li { margin: 5px 0; }
.toc a { color: var(--text-soft); text-decoration: none; }
.toc a:hover { color: var(--text); text-decoration: underline; }
.prose { max-width: var(--readw); min-width: 0; }
.prose > section + section { margin-top: 8px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 27px); margin: 36px 0 12px; }
.prose > section:first-child h2, .prose > .callout:first-child + section h2 { margin-top: 4px; }
.prose h3 { font-size: 19px; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--text-body); }
:where(.prose) ul, :where(.prose) ol { padding-inline-start: 24px; margin: 0 0 14px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--text); }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); direction: ltr; unicode-bidi: isolate; }
/* Settings path pill. inline-flex + wrap: the pill always keeps a closed border, and long paths wrap at the arrows
   (a single label only breaks inside itself if it is wider than the whole line). */
.uipath { display: inline-flex; flex-wrap: wrap; align-items: baseline; max-width: 100%; vertical-align: baseline; padding: 1px 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); font-weight: 700; color: var(--text); line-height: 1.5; }
.uipath .sep { margin-inline: 6px; color: var(--gold); }
.callout { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; padding: 16px 18px; border-radius: 16px; border: 1px solid; }
.callout > .icon { margin-top: 4px; }
.callout > div > :last-child { margin-bottom: 0; }
.callout-info { background: rgba(98, 200, 255, .07); border-color: rgba(98, 200, 255, .36); }
.callout-info > .icon { color: var(--sky); }
.callout-warn { background: rgba(255, 200, 87, .07); border-color: rgba(255, 200, 87, .42); }
.callout-warn > .icon { color: var(--gold); }
.callout-danger { background: rgba(255, 92, 157, .08); border-color: rgba(255, 92, 157, .46); }
.callout-danger > .icon { color: var(--pink); }
.callout-ok { background: rgba(82, 214, 178, .07); border-color: rgba(82, 214, 178, .4); }
.callout-ok > .icon { color: var(--mint); }
.table-wrap { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(24, 19, 39, .6); }
.table-wrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; line-height: 1.65; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap th { background: rgba(255, 255, 255, .045); color: var(--text); font-weight: 700; }
.table-wrap td { color: var(--text-body); }
.table-wrap tr:last-child td { border-bottom: 0; }
/* Phones: stack each row so every column stays readable (cells carry data-label with their column name). */
@media (max-width: 600px) {
  .table-wrap table { min-width: 0; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .table-wrap tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--line); }
  .table-wrap tbody tr:last-child { border-bottom: 0; }
  .table-wrap td { display: block; padding: 6px 14px; border-bottom: 0; }
  .table-wrap td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; font-weight: 700; color: var(--text); font-size: 14px; }
}
.steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 16px 0; }
.steps li { counter-increment: step; position: relative; padding-inline-start: 52px; margin: 14px 0; min-height: 38px; }
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--btn-a), var(--btn-b));
}

/* Help center */
.help-index { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin: 6px 0 12px; padding: 0; list-style: none; }
.help-index a {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 12px 14px; border-radius: 14px; text-decoration: none;
  color: var(--text); background: var(--panel); border: 1px solid var(--line); font-weight: 700; font-size: 15.5px; line-height: 1.45;
}
.help-index a:hover { border-color: rgba(139, 92, 246, .55); }
.help-index .icon { color: #CDBBFF; }
.article { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.article h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px !important; }
.article h2 .icon-tile { width: 40px; height: 40px; border-radius: 12px; }
.article h2 .icon-tile .icon { width: 21px; height: 21px; }
.back-top { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-mute); text-decoration: none; margin-top: 4px; }
.back-top .icon { width: 16px; height: 16px; }
.back-top:hover { color: var(--text); }

.contact-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin: 18px 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; padding: 40px 0 28px; border-top: 1px solid var(--line); background: rgba(9, 7, 18, .7); font-size: 15.5px; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.footer-brand p { color: var(--text-mute); margin-top: 12px; max-width: 36ch; }
.footer-title { font-size: 14.5px; margin: 0 0 10px; color: var(--text-mute); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-footer ul a { color: var(--text-soft); text-decoration: none; }
.site-footer ul a:hover { color: var(--text); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-mute); font-size: 14.5px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; padding-block: 48px; text-align: center; }
.footer-bottom.flush { margin-top: 0; border-top: 0; padding-top: 0; }
.notfound .code { font-size: clamp(56px, 12vw, 96px); font-weight: 800; line-height: 1; margin: 0 0 8px; background: linear-gradient(135deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 8px; }
.notfound p { color: var(--text-soft); }
.notfound .cta-row { justify-content: center; }
.notfound .en { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  body::before, .site-header, .site-footer, .toc, .skip-link { display: none !important; }
  .prose p, .prose li, .table-wrap td, h1, h2, h3, .doc-meta { color: #000 !important; }
  a { color: #000; }
  .doc-layout { display: block; }
}

/* (v1.317) قائمة اللغات في الصفحات الرئيسية (hosting/tools/gen_lang_pages.py) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; cursor: pointer; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none;
  min-width: 190px; max-height: 70vh; overflow: auto; border-radius: 14px; border: 1px solid var(--line-2);
  background: #15122a; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.lang-list a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.lang-list a:hover, .lang-list a[aria-current="page"] { background: rgba(255, 255, 255, .07); }
.lang-list a[aria-current="page"] { color: #c4b5fd; }
@media (max-width: 900px) { .lang-menu { margin-inline-start: auto; } }
/* (v1.317) نص التدرّج (background-clip:text) يُسقط علامات الحروف المركّبة في الهندية والبنغالية والتايلندية: لون صلب بدلًا منه. */
html[lang="hi"] .grad, html[lang="bn"] .grad, html[lang="th"] .grad { background: none; -webkit-text-fill-color: #d8b4fe; color: #d8b4fe; }

/* ===== (v1.317.1) الثيم النهاري: يختاره الزائر من زر الشمس/القمر في الرأس (assets/theme.js)، والليلي هو الافتراضي ===== */
:root[data-theme="light"] {
  --ink: #F6F3FC;
  --panel: #FFFFFF;
  --panel-2: #F1ECFA;
  --line: rgba(30, 16, 70, .10);
  --line-2: rgba(30, 16, 70, .20);
  --gold: #A86B00;
  --text: #1A1430;
  --text-body: #2A2342;
  --text-soft: #4A4166;
  --text-mute: #625A80;
  --link: #6D28D9;
  color-scheme: light;
}
[data-theme="light"] body::before {
  background:
    radial-gradient(620px 420px at 88% -8%, rgba(139, 92, 246, .18), transparent 70%),
    radial-gradient(520px 400px at 6% 108%, rgba(255, 92, 157, .12), transparent 70%);
}
[data-theme="light"] a:hover { color: #4C1D95; }
[data-theme="light"] .site-header { background: rgba(255, 255, 255, .86); }
[data-theme="light"] .site-nav a:hover, [data-theme="light"] .lang-switch:hover,
[data-theme="light"] .btn-ghost, [data-theme="light"] .chip, [data-theme="light"] .mock-bar,
[data-theme="light"] .seat.idle::before, [data-theme="light"] .mock-chat span,
[data-theme="light"] .prose code, [data-theme="light"] .uipath, [data-theme="light"] .table-wrap th { background: rgba(30, 16, 70, .06); }
[data-theme="light"] .btn-ghost:hover { background: rgba(30, 16, 70, .10); }
[data-theme="light"] .store-badge { background: #FFFFFF; border-color: rgba(168, 107, 0, .55); }
[data-theme="light"] .eyebrow { color: #5B21B6; }
[data-theme="light"] .grad { background: linear-gradient(90deg, #7C3AED, #DB2777); -webkit-background-clip: text; background-clip: text; }
[data-theme="light"] .mock, [data-theme="light"] .card { background: linear-gradient(180deg, #FFFFFF, #FAF7FF); box-shadow: 0 14px 34px rgba(60, 30, 120, .08); }
[data-theme="light"] .icon-tile { color: #6D28D9; }
[data-theme="light"] .t-pink { color: #BE185D; }
[data-theme="light"] .t-gold { color: #9A5B00; }
[data-theme="light"] .t-sky { color: #0369A1; }
[data-theme="light"] .t-mint { color: #047857; }
[data-theme="light"] .table-wrap { background: #FFFFFF; }
[data-theme="light"] .help-index .icon { color: #6D28D9; }
[data-theme="light"] .site-footer { background: rgba(255, 255, 255, .7); }
[data-theme="light"] .lang-list { background: #FFFFFF; box-shadow: 0 18px 40px rgba(60, 30, 120, .16); }
[data-theme="light"] .lang-list a:hover, [data-theme="light"] .lang-list a[aria-current="page"] { background: rgba(30, 16, 70, .06); }
[data-theme="light"] .lang-list a[aria-current="page"] { color: #6D28D9; }
html[data-theme="light"][lang="hi"] .grad, html[data-theme="light"][lang="bn"] .grad, html[data-theme="light"][lang="th"] .grad { -webkit-text-fill-color: #6D28D9; color: #6D28D9; }

/* زر الثيم */
.theme-toggle {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer;
  color: var(--text-soft); background: transparent; border: 1px solid var(--line-2); transition: background .15s, color .15s, transform .25s;
}
.theme-toggle:hover { background: rgba(139, 92, 246, .12); color: var(--text); }
.theme-toggle:active { transform: rotate(-25deg) scale(.94); }
.theme-toggle:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="light"] .theme-toggle .sun { display: block; color: #C2410C; }
[data-theme="light"] .theme-toggle .moon { display: none; }
.brand + .theme-toggle { margin-inline-start: auto; } /* header without a language control */

/* شارة آيفون بجانب أندرويد */
.store-row { display: inline-flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ios-badge .apple-mark { width: 24px; height: 24px; color: var(--text); flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .store-badge { transition: transform .2s ease; }
  .store-badge:hover { transform: translateY(-2px); }
}
