body{font-family:"IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;background:#f4f6fb;font-size:15px}
.auth-bg{background:linear-gradient(135deg,#eef2ff,#f8fafc)}
.app-logo{width:52px;height:52px;border-radius:14px;background:linear-gradient(135deg,#2563eb,#7c3aed);color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;font-size:18px}
.app-logo.sm{width:34px;height:34px;font-size:13px;border-radius:10px}
.side{width:250px;min-height:100vh;flex:none}
@media (min-width:992px){.side{position:sticky;top:0;height:100vh;overflow-y:auto}}
.side .nav-link{color:#cbd5e1;border-radius:8px;padding:.45rem .75rem}
.side .nav-link:hover{background:#1f2937;color:#fff}
.side .nav-link.active{background:#2563eb;color:#fff}
.main-area{min-width:0}
.kpi{background:#fff;border-radius:14px;padding:16px;box-shadow:0 1px 3px rgba(0,0,0,.05);height:100%}
.kpi .lbl{color:#64748b;font-size:13px}
.kpi .val{font-size:26px;font-weight:700;direction:ltr;text-align:start;unicode-bidi:plaintext}
.kpi .delta{font-size:12px}
.kpi .delta.up{color:#15803d}.kpi .delta.down{color:#b91c1c}
.est{font-size:11px;background:#fef3c7;color:#92400e;border-radius:6px;padding:1px 6px;cursor:help}
.card{border:0;box-shadow:0 1px 3px rgba(0,0,0,.05);border-radius:14px}
.card-header{background:#fff;border-bottom:1px solid #eef2f7;font-weight:600;border-radius:14px 14px 0 0!important}
.table{font-size:14px}
.table td,.table th{vertical-align:middle}
.ltr{direction:ltr;unicode-bidi:embed;display:inline-block}
.code{font-family:ui-monospace,Menlo,Consolas,monospace;direction:ltr;display:inline-block}
.filters .form-select,.filters .form-control{min-width:130px}
.page-title{font-weight:700;font-size:22px;margin-bottom:0}
.funnel-bar{background:linear-gradient(90deg,#2563eb,#60a5fa);height:28px;border-radius:6px;color:#fff;font-size:13px;display:flex;align-items:center;padding:0 8px;min-width:36px}
.heat td{width:3.5%;height:22px;font-size:10px;text-align:center;padding:0!important}
.locked{position:relative}
.locked .blur{filter:blur(4px);pointer-events:none;opacity:.6}
.locked .lock-msg{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column}
.phone-frame{width:320px;height:600px;border:12px solid #111;border-radius:36px;overflow:hidden;margin:auto;background:#fff}
.phone-frame iframe{width:100%;height:100%;border:0}
.new-row{animation:hl 3s ease-out}
@keyframes hl{from{background:#fde68a}to{background:transparent}}
.wa-chat{background:#e5ddd5;border-radius:12px;padding:12px;height:460px;overflow-y:auto}
.wa-msg{max-width:80%;padding:8px 12px;border-radius:10px;margin:6px 0;white-space:pre-wrap;word-break:break-word;font-size:14px}
.wa-in{background:#dcf8c6;margin-inline-start:auto}
.wa-out{background:#fff}
.wa-msg small{display:block;color:#64748b;font-size:11px}
.sugg{border-inline-start:4px solid #2563eb}
