/*
 * CHAT LIVE 2.0 — Unified design foundation
 * Scope: chat, landing, SEO directory, accounts, admin and editorial/legal.
 * A single semantic vocabulary instead of independent cyan/navy/purple themes.
 *
 * Status colors are meaningful: purple = action/selection, cyan = link/info,
 * green = presence/success, amber = warning, red = destructive action.
 * This stylesheet owns presentation only; no data or privilege logic.
 */
:root{
 color-scheme:dark;
 --cl2-bg:#111218;
 --cl2-canvas:#14151d;
 --cl2-surface:#1a1b25;
 --cl2-surface-raised:#21222f;
 --cl2-surface-hover:#2b2b3b;
 --cl2-surface-selected:#342c4b;
 --cl2-border:#37394c;
 --cl2-border-strong:#51506a;
 --cl2-text:#f3f1fa;
 --cl2-text-secondary:#c4c3d4;
 --cl2-text-muted:#a2a2b8;
 --cl2-accent:#927cda;
 --cl2-accent-hover:#a18be8;
 --cl2-accent-subtle:rgba(146,124,218,.15);
 --cl2-info:#79bedb;
 --cl2-success:#48d7ad;
 --cl2-warning:#e3ae65;
 --cl2-danger:#e78c97;
 --cl2-focus:#b3a3f7;
 --cl2-radius-xs:7px;
 --cl2-radius-sm:10px;
 --cl2-radius-md:14px;
 --cl2-radius-lg:18px;
 --cl2-radius-xl:24px;
 --cl2-space-1:4px;
 --cl2-space-2:8px;
 --cl2-space-3:12px;
 --cl2-space-4:16px;
 --cl2-space-5:20px;
 --cl2-space-6:24px;
 --cl2-space-8:32px;
 --cl2-font:'CairoLocal','Chat Alexandria','Cairo',system-ui,-apple-system,'Segoe UI',sans-serif;
 --cl2-shadow-raised:0 9px 26px rgba(0,0,0,.23);
 --cl2-shadow-popover:0 16px 45px rgba(0,0,0,.42);
 --cl2-motion-fast:125ms;
 --cl2-motion-normal:180ms;
 --cl2-motion-long:240ms;
 --cl2-ease:cubic-bezier(.21,.77,.34,1);
 --navy:var(--cl2-bg);
 --surface:var(--cl2-surface);
 --muted:var(--cl2-text-muted);
 --ink:var(--cl2-text);
 --text:var(--cl2-text);
 --line:var(--cl2-border);
 --bg:var(--cl2-bg);
 --panel:var(--cl2-surface);
 --purple:var(--cl2-accent);
 --violet:var(--cl2-accent);
 --aqua:var(--cl2-info);
}
html{
 scroll-padding-top:80px;
 accent-color:var(--cl2-accent);
}
html[lang=ar] body{
 font-family:var(--cl2-font);
}
body{
 color:var(--cl2-text);
 -webkit-font-smoothing:antialiased;
}
:where(body) :where(a,button,input,select,textarea,[role=button],[tabindex]):focus-visible{
 outline:2px solid var(--cl2-focus);
 outline-offset:2px;
}
:where(body) :where(button,input,select,textarea){
 font-family:inherit;
}
:where(body) :where(input,textarea,select){
 accent-color:var(--cl2-accent);
}
:where(body) ::selection{
 background:rgba(146,124,218,.37);
 color:#fff;
}
:where(body) :where(button,a,[role=button]){
 -webkit-tap-highlight-color:transparent;
}
:where(body) :where([hidden]){
 display:none!important;
}
:where(body) :where(.muted,.subtle,.hint,.meta){
 color:var(--cl2-text-muted);
}
:where(body) :where(.cl2-surface){
 background:var(--cl2-surface);
 border:1px solid var(--cl2-border);
 border-radius:var(--cl2-radius-md);
}
:where(body) :where(.cl2-surface-raised){
 background:var(--cl2-surface-raised);
 border:1px solid var(--cl2-border-strong);
 border-radius:var(--cl2-radius-lg);
 box-shadow:var(--cl2-shadow-raised);
}
:where(body) :where(.cl2-action){
 min-height:40px;
 padding:9px 15px;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:8px;
 background:var(--cl2-accent);
 color:#fff;
 border:1px solid var(--cl2-accent-hover);
 border-radius:var(--cl2-radius-sm);
 font-weight:750;
 cursor:pointer;
 transition:background var(--cl2-motion-normal) var(--cl2-ease),border-color var(--cl2-motion-normal) var(--cl2-ease);
}
:where(body) :where(.cl2-action):hover{
 background:var(--cl2-accent-hover);
}
:where(body) :where(.cl2-action-secondary){
 background:var(--cl2-surface-raised);
 color:var(--cl2-text);
 border-color:var(--cl2-border);
}
:where(body) :where(.cl2-action-secondary):hover{
 background:var(--cl2-surface-hover);
}
:where(body) :where(.cl2-field){
 background:var(--cl2-canvas);
 color:var(--cl2-text);
 border:1px solid var(--cl2-border-strong);
 border-radius:var(--cl2-radius-sm);
 min-height:40px;
 padding:9px 12px;
 min-width:0;
 max-width:100%;
}
:where(body) :where(.cl2-field):focus{
 outline:2px solid rgba(179,163,247,.26);
 border-color:var(--cl2-accent);
}
:where(body) :where(.cl2-badge){
 display:inline-flex;
 align-items:center;
 gap:5px;
 border:1px solid var(--cl2-border);
 border-radius:999px;
 background:var(--cl2-surface-raised);
 color:var(--cl2-text-secondary);
 padding:3px 8px;
 font-size:11px;
 font-weight:700;
 font-variant-numeric:tabular-nums;
}
:where(body) :where(.cl2-divider){
 border:0;
 height:1px;
 background:var(--cl2-border);
 margin:var(--cl2-space-4) 0;
}
:where(body) :where(.cl2-skeleton){
 background:linear-gradient(90deg,var(--cl2-surface) 15%,var(--cl2-surface-hover) 47%,var(--cl2-surface) 78%);
 background-size:180% 100%;
 animation:cl2-shimmer 1.35s ease-in-out infinite;
 border-radius:var(--cl2-radius-sm);
}
@keyframes cl2-shimmer{
 from{background-position:160% 0}
 to{background-position:-100% 0}
}
:where(body) :where(.cl2-modal,.cl2-popover){
 background:var(--cl2-surface-raised);
 color:var(--cl2-text);
 border:1px solid var(--cl2-border-strong);
 border-radius:var(--cl2-radius-lg);
 box-shadow:var(--cl2-shadow-popover);
}
:where(body) :where(.cl2-ellipsis){
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
 min-width:0;
}
:where(body) :where(.cl2-card-grid){
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(min(250px,100%),1fr));
 gap:var(--cl2-space-4);
}
@media(prefers-reduced-motion:reduce){
 :root{
  --cl2-motion-fast:0ms;
  --cl2-motion-normal:0ms;
  --cl2-motion-long:0ms;
 }
 :where(body) :where(.cl2-skeleton){animation:none!important}
}
