.loading, .no-results { color: var(--text-muted); text-align: center; padding: 40px 0; font-size: 14px; }
.cmd-search { position: relative; max-width: 560px; margin: 26px auto 0; }
.cmd-search .icon { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--text-muted); }
.cmd-search input { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; color: var(--text-primary); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 15px 50px; outline: none; transition: border-color .15s, box-shadow .15s; }
.cmd-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.cmd-search kbd { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font: 700 12px monospace; color: var(--text-muted); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }
.cmd-total { margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.cmd-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; margin-top: 36px; align-items: start; }
.cmd-side { position: sticky; top: 90px; display: grid; gap: 4px; max-height: calc(100vh - 110px); overflow-y: auto; }
.chip { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--text-muted); font-size: 14px; font-weight: 700; border: 1px solid transparent; transition: all .15s; }
.chip .icon { width: 18px; height: 18px; flex: 0 0 18px; }
.chip span { flex: 1; }
.chip em { font-style: normal; font-size: 12px; background: var(--surface-2); border-radius: 999px; padding: 1px 9px; }
.chip:hover { color: var(--text-primary); background: var(--surface); }
.chip.is-on { color: var(--accent); background: var(--accent-soft); border-color: rgba(4,157,234,.35); }
.cmd-how { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; border-radius: 16px; border: 1px dashed rgba(4,157,234,.4); background: var(--accent-soft); margin-bottom: 20px; font-size: 14px; line-height: 1.9; }
.cmd-how span { color: var(--text-muted); }
.categories-list { display: grid; gap: 18px; }
.category-card { border: 1px solid var(--border); border-radius: 20px; background: var(--surface); padding: 22px; scroll-margin-top: 90px; }
.category-head { display: flex; align-items: center; gap: 12px; }
.category-head h2 { margin: 0; font-size: 19px; font-weight: 800; flex: 1; }
.category-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.category-icon .icon { width: 20px; height: 20px; }
.category-count { font-size: 12.5px; font-weight: 800; color: var(--text-muted); background: var(--surface-2); border-radius: 999px; padding: 3px 12px; }
.category-hint { margin: 10px 0 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.9; }
.command-list { display: grid; gap: 8px; margin-top: 16px; }
.command-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.command-name, .command-slash { font: inherit; cursor: pointer; border: 1px solid var(--border); border-radius: 9px; padding: 5px 12px; color: var(--text-primary); background: var(--surface); display: inline-flex; align-items: center; gap: 8px; transition: all .15s; }
.command-name { font-weight: 800; font-size: 14px; }
.command-name .icon { width: 14px; height: 14px; opacity: 0; transition: opacity .15s; color: var(--text-muted); }
.command-name:hover .icon { opacity: 1; }
.command-slash { font-family: monospace; font-size: 13px; color: var(--text-muted); direction: ltr; }
.command-name:hover, .command-slash:hover { border-color: var(--accent); }
.command-name.copied, .command-slash.copied { border-color: #2ecc71; background: rgba(46,204,113,.14); }
.command-name.copied::after, .command-slash.copied::after { content: "تم النسخ"; font: 700 11px inherit; color: #2ecc71; }
.command-note { flex-basis: 100%; font-size: 12.5px; color: var(--text-muted); line-height: 1.8; }
mark { background: rgba(241,196,15,.3); color: inherit; border-radius: 3px; padding: 0 2px; }
@media (max-width: 860px) {
  .cmd-layout { grid-template-columns: 1fr; }
  .cmd-side { position: static; display: flex; overflow-x: auto; max-height: none; margin-inline: -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .chip { flex: 0 0 auto; white-space: nowrap; border: 1px solid var(--border); }
}
@media (max-width: 600px) { .cmd-search kbd { display: none; } }
