/* صفحات بوت Aynoo — /aynoo
   هوية التصميم القديم (BLK: مربعات وردي→بنفسجي عائمة، شعار بحلقة متوهجة، أزرار دائرية) بصياغة حديثة */
:root {
    --ay-bg: #0D0C16;
    --ay-bg2: #15132A;
    --ay-surface: rgba(255, 255, 255, .045);
    --ay-surface-2: rgba(255, 255, 255, .08);
    --ay-line: rgba(255, 255, 255, .09);
    --ay-text: #F2EFFA;
    --ay-muted: #A49FBE;
    --ay-pink: #E14ECA;
    --ay-purple: #BA54F5;
    --ay-violet: #7C5CFF;
    --ay-grad: linear-gradient(135deg, var(--ay-pink) 0%, var(--ay-purple) 55%, var(--ay-violet) 100%);
    --ay-ok: #3DDC97;
    --ay-warn: #FFC857;
    --ay-err: #FF6B81;
    --ay-radius: 18px;
    --ay-font: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif;
    --ay-display: 'Poppins', 'Reem Kufi', 'IBM Plex Sans Arabic', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.ay {
    margin: 0; min-height: 100vh; display: flex; flex-direction: column;
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(225, 78, 202, .18), transparent 60%),
        radial-gradient(800px 500px at 0% 20%, rgba(124, 92, 255, .16), transparent 60%),
        var(--ay-bg);
    color: var(--ay-text); font-family: var(--ay-font); line-height: 1.65;
    overflow-x: hidden;
}
.ay main { flex: 1; position: relative; }
.ay a { color: inherit; }
.ay img { max-width: 100%; }
.ay-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ay-page { padding-block: 40px 72px; position: relative; z-index: 1; }
.ay-h1 { font-family: var(--ay-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.25; margin: 0 0 10px; }
.ay-h2 { font-family: var(--ay-display); font-weight: 700; font-size: 1.35rem; margin: 34px 0 14px; }
.ay-h2 small { color: var(--ay-muted); font-size: .85rem; font-weight: 500; margin-inline-start: 6px; }
.ay-muted { color: var(--ay-muted); margin: 0 0 16px; }
.ay-grad-text { background: var(--ay-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* المربعات العائمة (من التصميم القديم) */
.ay-squares { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ay-sq { position: absolute; border-radius: 22%; background: var(--ay-grad); opacity: .85; animation: ay-float 14s ease-in-out infinite alternate; }
.ay-sq.soft { background: linear-gradient(135deg, rgba(225, 78, 202, .25), rgba(124, 92, 255, .12)); opacity: 1; backdrop-filter: blur(2px); }
.ay-sq.blur { filter: blur(28px); opacity: .45; }
.ay-sq-1 { width: 74px; height: 74px; top: 12%; inset-inline-start: 47%; animation-delay: -2s; }
.ay-sq-2 { width: 260px; height: 220px; top: -60px; inset-inline-end: 4%; animation-delay: -6s; }
.ay-sq-3 { width: 180px; height: 180px; bottom: 6%; inset-inline-start: 28%; animation-delay: -4s; }
.ay-sq-4 { width: 58px; height: 58px; bottom: 10%; inset-inline-start: 50%; animation-delay: -9s; }
.ay-sq-5 { width: 240px; height: 240px; bottom: -90px; inset-inline-end: -40px; animation-delay: -1s; }
.ay-sq-6 { width: 140px; height: 120px; top: -40px; inset-inline-start: 2%; animation-delay: -11s; }
@keyframes ay-float {
    from { transform: translate3d(0, 0, 0) rotate(0deg); }
    to { transform: translate3d(0, -26px, 0) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) { .ay-sq, .ay-ring::before { animation: none !important; } }

/* شريط التنقل */
.ay-nav { position: sticky; top: 0; z-index: 40; background: rgba(13, 12, 22, .72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--ay-line); }
.ay-nav-row { display: flex; align-items: center; gap: 18px; height: 66px; }
.ay-logo { display: flex; align-items: center; gap: 10px; font-family: var(--ay-display); font-weight: 800; font-size: 1.2rem; letter-spacing: .02em; text-decoration: none; }
.ay-logo img { border-radius: 50%; box-shadow: 0 0 0 2px rgba(225, 78, 202, .6); }
.ay-links { display: flex; gap: 4px; }
.ay-links a { text-decoration: none; padding: 8px 14px; border-radius: 999px; color: var(--ay-muted); transition: background .2s, color .2s; }
.ay-links a:hover, .ay-links a[aria-current] { color: var(--ay-text); background: var(--ay-surface-2); }
.ay-nav-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.ay-lang { text-decoration: none; color: var(--ay-muted); padding: 6px 10px; font-weight: 600; }
.ay-avatar { border-radius: 50%; vertical-align: middle; }

/* الأزرار — حبوب متدرجة مثل التصميم القديم */
.ay-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--ay-grad); color: #fff; border: 0; padding: 10px 20px; border-radius: 999px;
    font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
    box-shadow: 0 8px 24px -10px rgba(225, 78, 202, .8); transition: transform .15s, box-shadow .2s, filter .2s;
}
.ay-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(225, 78, 202, .95); filter: brightness(1.06); }
.ay-btn:disabled { opacity: .6; cursor: default; transform: none; }
.ay-btn-ghost { background: var(--ay-surface); border: 1px solid var(--ay-line); box-shadow: none; color: var(--ay-text); }
.ay-btn-ghost:hover { background: var(--ay-surface-2); box-shadow: none; }
.ay-btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.ay-btn-sm { padding: 6px 12px; font-size: .9rem; }

/* الحقول */
.ay-input {
    width: 100%; background: rgba(0, 0, 0, .28); color: var(--ay-text); border: 1px solid var(--ay-line);
    border-radius: 12px; padding: 10px 14px; font: inherit; transition: border-color .15s, box-shadow .15s;
}
.ay-input:focus { outline: none; border-color: var(--ay-purple); box-shadow: 0 0 0 3px rgba(186, 84, 245, .25); }
.ay-input option { background: var(--ay-bg2); }
.ay-input-sm { width: auto; padding: 6px 12px; }
.ay-textarea { resize: vertical; min-height: 100px; }
.ay-color { width: 64px; height: 42px; padding: 4px; }
.ay-search { margin: 8px 0 4px; max-width: 460px; border-radius: 999px; padding-inline: 20px; }
.ay-notice { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 14px; padding: 14px 16px; margin: 12px 0; }
.ay-warn { border-color: rgba(255, 200, 87, .45); background: rgba(255, 200, 87, .07); color: var(--ay-warn); }
.ay-loading { color: var(--ay-muted); padding: 60px 0; text-align: center; }

/* البطل */
.ay-hero { position: relative; overflow: hidden; }
.ay-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; min-height: min(78vh, 680px); padding-block: 60px; }
.ay-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ay-surface); border: 1px solid var(--ay-line); color: var(--ay-muted); font-size: .9rem; }
.ay-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--ay-ok); box-shadow: 0 0 12px var(--ay-ok); }
.ay-wordmark { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(3.4rem, 9vw, 6.4rem); letter-spacing: .04em; line-height: 1; margin: 18px 0 14px; }
.ay-lead { color: #D6D1EA; font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; margin: 0 0 30px; max-width: 560px; }
.ay-cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.ay-hero-art { display: grid; place-items: center; }
.ay-ring { position: relative; width: min(320px, 70vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; }
.ay-ring::before {
    content: ''; position: absolute; inset: -6px; border-radius: 50%;
    background: conic-gradient(from 0deg, var(--ay-pink), var(--ay-purple), var(--ay-violet), #22D3EE, var(--ay-pink));
    animation: ay-spin 10s linear infinite; filter: drop-shadow(0 0 28px rgba(225, 78, 202, .55));
}
.ay-ring::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #0A0912; }
.ay-ring img { position: relative; z-index: 1; width: 82%; height: 82%; border-radius: 50%; object-fit: cover; }
@keyframes ay-spin { to { transform: rotate(360deg); } }

/* الأرقام */
.ay-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; position: relative; z-index: 1; }
.ay-stat { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 20px; text-align: center; backdrop-filter: blur(8px); }
.ay-stat b { display: block; font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 800; background: var(--ay-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ay-stat span { color: var(--ay-muted); }
.ay-stats-big .ay-stat b { font-size: 2.5rem; }

/* عرض الميزات بصور البوت الحقيقية (صف متناوب) */
.ay-section { position: relative; padding-block: 64px; }
.ay-section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.ay-show { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; margin-bottom: 72px; }
.ay-show:nth-child(even) .ay-show-media { order: 2; }
.ay-show-media {
    position: relative; border-radius: 20px; padding: 10px; background: linear-gradient(135deg, rgba(225, 78, 202, .35), rgba(124, 92, 255, .25));
    box-shadow: 0 30px 80px -30px rgba(186, 84, 245, .55);
}
.sim [hidden] { display: none !important; }
.ay-show-media > img, .ay-show-media > video { display: block; width: 100%; border-radius: 14px; background: #2B2D31; }
.ay-chip-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ay-pink); font-weight: 700; margin-bottom: 8px; }
.ay-show h3 { font-family: var(--ay-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 0 0 10px; }
.ay-show p { color: var(--ay-muted); margin: 0 0 14px; font-size: 1.05rem; }
.ay-show ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ay-show li { display: flex; gap: 10px; align-items: baseline; }
.ay-show li::before { content: ''; width: 8px; height: 8px; border-radius: 3px; background: var(--ay-grad); flex: none; transform: translateY(-2px); }
.ay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ay-card { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 20px; transition: transform .2s, border-color .2s; }
.ay-card:hover { transform: translateY(-3px); border-color: rgba(225, 78, 202, .4); }
.ay-card h3 { margin: 10px 0 4px; font-size: 1.05rem; }
.ay-card p { margin: 0; color: var(--ay-muted); }
.ay-card-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; background: linear-gradient(135deg, rgba(225, 78, 202, .25), rgba(124, 92, 255, .2)); }
.ay-cta-band { text-align: center; border-radius: 28px; padding: 48px 24px; background: var(--ay-grad); position: relative; overflow: hidden; }
.ay-cta-band h2 { font-family: var(--ay-display); margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.ay-cta-band p { margin: 0 0 22px; opacity: .9; }
.ay-cta-band .ay-btn { background: #fff; color: #5B2A8A; box-shadow: none; }

/* الأوامر */
.ay-cmd-list { display: grid; gap: 10px; }
.ay-cmd { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 14px; padding: 14px 16px; }
.ay-cmd p { margin: 6px 0 0; color: var(--ay-muted); }
.ay-cmd-head { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-cmd code { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: isolate; padding: 3px 10px; border-radius: 8px; font-size: .9rem; }
.ay-slash { background: rgba(225, 78, 202, .16); color: #F6B8EC; }
.ay-prefix { background: rgba(0, 0, 0, .3); color: var(--ay-muted); }

/* صفحة الأوامر بأسلوب ProBot: تبويبات + بحث + بطاقات قابلة للفتح */
.ay-cmd-hero { margin-bottom: 26px; }
.ay-cmd-toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 22px; }
.ay-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--ay-line); flex: 1; min-width: 0; }
.ay-tabs::-webkit-scrollbar { display: none; }
.ay-tab { background: none; border: 0; color: var(--ay-muted); font: inherit; font-weight: 600; padding: 12px 18px; cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.ay-tab:hover { color: var(--ay-text); }
.ay-tab[aria-selected="true"] { color: var(--ay-text); border-bottom-color: var(--ay-purple); }
.ay-cmd-search { display: flex; align-items: center; gap: 10px; background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 12px; padding: 0 14px; width: min(420px, 100%); }
.ay-cmd-search:focus-within { border-color: var(--ay-purple); }
.ay-cmd-search input { flex: 1; background: none; border: 0; color: var(--ay-text); font: inherit; padding: 12px 0; outline: none; min-width: 0; }
.ay-cmd-section { font-size: .95rem; color: var(--ay-muted); font-weight: 700; margin: 0 0 14px; }
.ay-cmd-section small { font-weight: 500; opacity: .8; }
.ay-cmd-list { display: grid; gap: 12px; }
.ay-cmdc { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 14px; transition: border-color .15s; }
.ay-cmdc:hover, .ay-cmdc[open] { border-color: rgba(186, 84, 245, .45); }
.ay-cmdc summary { list-style: none; display: flex; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; }
.ay-cmdc summary::-webkit-details-marker { display: none; }
.ay-cmdc-icon { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; background: linear-gradient(135deg, rgba(225, 78, 202, .22), rgba(124, 92, 255, .18)); font-size: 1.05rem; }
.ay-cmdc-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ay-cmdc-main b { font-size: 1.1rem; unicode-bidi: isolate; }
.ay-cmdc-main span { color: var(--ay-muted); font-size: .95rem; }
.ay-cmdc-chev { color: var(--ay-muted); font-size: 1.2rem; transition: transform .2s; }
.ay-cmdc[open] .ay-cmdc-chev { transform: rotate(180deg); }
.ay-cmdc-body { padding: 0 22px 18px; display: grid; gap: 10px; border-top: 1px solid var(--ay-line); padding-top: 14px; margin-inline: 0; }
.ay-cmdc-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.ay-cmdc-row > span:first-child { color: var(--ay-muted); font-size: .9rem; }
.ay-cmdc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ay-cmdc code, .ay-cmdc-tags code { font-family: ui-monospace, Consolas, monospace; direction: ltr; unicode-bidi: isolate; padding: 3px 10px; border-radius: 8px; font-size: .88rem; background: rgba(0, 0, 0, .3); justify-self: start; }
.ay-cmdc-tags em { font-style: normal; font-size: .85rem; padding: 3px 10px; border-radius: 999px; background: rgba(255, 200, 87, .12); color: var(--ay-warn); }
@media (max-width: 640px) { .ay-cmdc-row { grid-template-columns: 1fr; gap: 4px; } .ay-cmdc summary { padding: 14px 16px; } }

/* ===================== الداشبورد (هيكل BankBot) ===================== */
.ay-login-card { position: relative; z-index: 1; max-width: 460px; margin: 70px auto; text-align: center; background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 24px; padding: 36px; backdrop-filter: blur(10px); }
.ay-login-card img { border-radius: 50%; box-shadow: 0 0 0 3px rgba(225, 78, 202, .6), 0 0 40px rgba(225, 78, 202, .4); }

.ay-dash { display: grid; grid-template-columns: 84px auto minmax(0, 1fr); min-height: calc(100vh - 66px); }
.ay-dash.no-menu { grid-template-columns: 84px minmax(0, 1fr); }

/* شريط السيرفرات */
.ay-rail {
    position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; scrollbar-width: none;
    background: #09080F; border-inline-end: 1px solid var(--ay-line);
    display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 0 20px;
}
.ay-rail::-webkit-scrollbar { display: none; }
.ay-rail-sep { width: 36px; height: 2px; border-radius: 2px; background: var(--ay-line); flex: none; }
.ay-rail-label { font-size: .68rem; color: var(--ay-muted); letter-spacing: .04em; text-align: center; line-height: 1.3; padding: 0 6px; }
.ay-ico {
    position: relative; flex: none; width: 52px; height: 52px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--ay-bg2); color: var(--ay-text); display: grid; place-items: center; text-decoration: none; font: inherit;
    transition: border-radius .2s, box-shadow .2s;
}
.ay-ico > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; display: block; }
.ay-ico .ay-ini { font-family: var(--ay-display); font-weight: 700; font-size: .95rem; }
.ay-ico:hover { border-radius: 16px; }
.ay-ico[aria-current="true"] { border-radius: 16px; box-shadow: 0 0 0 2px #09080F, 0 0 0 4px var(--ay-pink); }
.ay-ico::before {
    content: ''; position: absolute; inset-inline-start: -16px; width: 5px; height: 0; border-radius: 0 4px 4px 0;
    background: var(--ay-text); transition: height .2s;
}
[dir="rtl"] .ay-ico::before { border-radius: 4px 0 0 4px; }
.ay-ico:hover::before { height: 18px; }
.ay-ico[aria-current="true"]::before { height: 38px; background: var(--ay-pink); }
.ay-ico-me { width: 56px; height: 56px; box-shadow: 0 0 0 2px var(--ay-purple); }
.ay-ico.nobot > img, .ay-ico.nobot > .ay-ini { filter: grayscale(1); opacity: .5; }
.ay-ico.nobot::after {
    content: '+'; position: absolute; bottom: -2px; inset-inline-end: -2px; width: 20px; height: 20px; border-radius: 50%;
    background: var(--ay-ok); color: #052e1f; font-weight: 800; font-size: 14px; line-height: 20px; text-align: center; border: 2px solid #09080F;
}
.ay-crown { position: absolute; top: -7px; inset-inline-end: -4px; font-size: 14px; filter: drop-shadow(0 1px 1px #000); }
.ay-ico-tool { width: 44px; height: 44px; font-size: 1.05rem; color: var(--ay-muted); background: transparent; border: 1px dashed var(--ay-line); }
.ay-ico-tool:hover { color: var(--ay-text); border-color: var(--ay-muted); }
.ay-tip {
    position: fixed; z-index: 90; pointer-events: none; transform: translateY(-50%) scale(.96); opacity: 0;
    background: #050409; color: var(--ay-text); font-size: .88rem; font-weight: 600; padding: 8px 12px; border-radius: 10px;
    border: 1px solid var(--ay-line); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); transition: opacity .12s, transform .12s; max-width: 260px;
}
.ay-tip.on { opacity: 1; transform: translateY(-50%); }
.ay-tip small { display: block; color: var(--ay-muted); font-weight: 400; font-size: .76rem; }

/* قائمة الأقسام */
.ay-menu {
    position: sticky; top: 66px; height: calc(100vh - 66px); overflow-y: auto; width: 250px;
    background: rgba(255, 255, 255, .02); border-inline-end: 1px solid var(--ay-line); padding: 16px 12px;
}
.ay-menu-head { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--ay-line); margin-bottom: 10px; }
.ay-menu-head > img, .ay-menu-head > .ay-ini { width: 42px; height: 42px; border-radius: 14px; flex: none; background: var(--ay-bg2); display: grid; place-items: center; font-family: var(--ay-display); font-weight: 700; }
.ay-menu-head b { display: block; font-size: .98rem; line-height: 1.3; overflow-wrap: anywhere; }
.ay-menu-head small { color: var(--ay-muted); font-size: .78rem; }
.ay-side-cat { margin-top: 10px; }
.ay-side-cat-title { margin: 10px 8px 6px; font-size: .72rem; color: var(--ay-muted); letter-spacing: .06em; font-weight: 600; }
.ay-side-item {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: start; background: none; border: 0;
    color: var(--ay-muted); font: inherit; font-size: .94rem; padding: 9px 10px; border-radius: 10px; cursor: pointer;
}
.ay-side-item:hover { background: var(--ay-surface-2); color: var(--ay-text); }
.ay-side-item.active { background: linear-gradient(135deg, rgba(225, 78, 202, .22), rgba(124, 92, 255, .16)); color: var(--ay-text); }
.ay-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .18); flex: none; }
.ay-dot.on { background: var(--ay-ok); box-shadow: 0 0 8px rgba(61, 220, 151, .6); }
.ay-dirty { color: var(--ay-warn); margin-inline-start: auto; font-size: 1.2rem; line-height: 1; }

/* المحتوى */
.ay-pane { padding: 28px clamp(16px, 3vw, 40px) 120px; min-width: 0; }
.ay-pane-head { margin-bottom: 8px; }
.ay-gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.ay-gcard {
    display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none;
    background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 20px 14px; transition: transform .2s, border-color .2s;
}
.ay-gcard:hover { transform: translateY(-3px); border-color: rgba(225, 78, 202, .45); }
.ay-gcard-icon { width: 64px; height: 64px; border-radius: 20px; overflow: hidden; background: var(--ay-bg2); display: grid; place-items: center; }
.ay-gcard-icon img { width: 100%; height: 100%; object-fit: cover; }
.ay-gcard-icon .ay-ini { font-family: var(--ay-display); font-weight: 700; font-size: 1.2rem; }
.ay-gcard.nobot .ay-gcard-icon { filter: grayscale(1); opacity: .6; }
.ay-gcard-name { font-weight: 600; overflow-wrap: anywhere; }
.ay-gcard-act { font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--ay-grad); color: #fff; font-weight: 600; }
.ay-gcard.nobot .ay-gcard-act { background: var(--ay-surface-2); color: var(--ay-text); }

.ay-panel { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 20px; padding: 24px; }
.ay-panel-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; border-bottom: 1px solid var(--ay-line); padding-bottom: 16px; margin-bottom: 8px; }
.ay-fields { display: grid; gap: 20px; margin-top: 18px; }
.ay-fields-off { opacity: .45; pointer-events: none; user-select: none; filter: grayscale(.4); }
.ay-off-note { margin: 14px 0 4px; }
.ay-field { display: grid; gap: 6px; max-width: 680px; }
.ay-label { font-weight: 600; }
.ay-hint { color: var(--ay-muted); font-size: .88rem; }
.ay-field-error { color: var(--ay-err); font-size: .9rem; }
.ay-field.has-error .ay-input { border-color: var(--ay-err); }
.ay-vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; color: var(--ay-muted); font-size: .88rem; }
.ay-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .3); border: 1px solid var(--ay-line); border-radius: 999px; padding: 3px 12px; font-size: .9rem; }
.ay-chip button { background: none; border: 0; color: var(--ay-muted); cursor: pointer; font-size: 1rem; padding: 0; }
.ay-chip-btn { cursor: pointer; color: var(--ay-text); font: inherit; font-size: .85rem; direction: ltr; }
.ay-chip-btn:hover { border-color: var(--ay-pink); }
.ay-multi { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ay-list { display: grid; gap: 8px; }
.ay-list-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; background: rgba(0, 0, 0, .22); border: 1px solid var(--ay-line); border-radius: 14px; padding: 14px; }
.ay-list-row > .ay-btn { justify-self: start; }
.ay-list-cell { display: grid; gap: 4px; min-width: 0; }
.ay-list-cell.wide { grid-column: 1 / -1; }
.ay-list .ay-list .ay-list-row { background: rgba(255, 255, 255, .03); padding: 10px; }
.ay-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.ay-switch input { position: absolute; opacity: 0; }
.ay-switch-track { width: 46px; height: 26px; border-radius: 999px; background: rgba(255, 255, 255, .15); position: relative; transition: background .15s; }
.ay-switch-track::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: inset-inline-start .15s; }
.ay-switch input:checked + .ay-switch-track { background: var(--ay-grad); }
.ay-switch input:checked + .ay-switch-track::after { inset-inline-start: 23px; }
.ay-switch input:focus-visible + .ay-switch-track { outline: 2px solid var(--ay-purple); outline-offset: 2px; }
.ay-savebar {
    position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60;
    display: flex; gap: 10px; align-items: center; background: #100E1C; border: 1px solid rgba(225, 78, 202, .6);
    border-radius: 16px; padding: 10px 12px 10px 18px; box-shadow: 0 14px 44px rgba(0, 0, 0, .6); width: min(640px, calc(100% - 24px));
}
.ay-savebar span { flex: 1; }
.ay-toast { position: fixed; top: 82px; left: 50%; transform: translateX(-50%); background: var(--ay-ok); color: #052e1f; padding: 10px 20px; border-radius: 999px; font-weight: 700; z-index: 95; }

.ay-footer { border-top: 1px solid var(--ay-line); padding: 22px 0; color: var(--ay-muted); position: relative; z-index: 1; }
.ay-footer-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.ay-footer a { text-decoration: none; }
.ay-footer a:hover { color: var(--ay-text); }

@media (max-width: 960px) {
    .ay-hero-grid { grid-template-columns: 1fr; text-align: center; min-height: 0; padding-block: 48px 32px; }
    .ay-hero-grid .ay-cta-row { justify-content: center; }
    .ay-lead { margin-inline: auto; }
    .ay-hero-art { order: -1; }
    .ay-sq-1, .ay-sq-4 { display: none; }
    .ay-show { grid-template-columns: 1fr; gap: 22px; margin-bottom: 52px; }
    .ay-show:nth-child(even) .ay-show-media { order: 0; }
}
@media (max-width: 860px) {
    .ay-links { display: none; }
    .ay-dash, .ay-dash.no-menu { grid-template-columns: minmax(0, 1fr); }
    .ay-rail { position: sticky; top: 66px; z-index: 30; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px 12px; border-inline-end: 0; border-bottom: 1px solid var(--ay-line); }
    .ay-rail-sep { width: 2px; height: 36px; }
    .ay-rail-label { display: none; }
    .ay-ico::before { display: none; }
    .ay-menu { position: static; height: auto; width: auto; border-inline-end: 0; border-bottom: 1px solid var(--ay-line); display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; }
    .ay-menu-head { flex-basis: 100%; margin-bottom: 4px; }
    .ay-side-cat { display: contents; }
    .ay-side-cat-title { display: none; }
    .ay-side-item { width: auto; padding: 7px 12px; border-radius: 999px; background: var(--ay-surface); font-size: .88rem; }
    .ay-panel-head { flex-direction: column; }
}
@media (max-width: 480px) {
    .ay-nav-actions .ay-btn-ghost { display: none; }
    .ay-sq-2, .ay-sq-5 { opacity: .35; }
}

/* ===== محرر بطاقة الترحيب ===== */
.ay-wc { display: grid; gap: 12px; }
.ay-wc-enable { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.ay-wc-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ay-wc-inline { flex-direction: row !important; align-items: center; gap: 8px !important; }
.ay-wc-stage { position: relative; width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--ay-line);
    background: repeating-conic-gradient(#1b1930 0% 25%, #15132a 0% 50%) 0 0 / 24px 24px; direction: ltr; touch-action: none; user-select: none; }
.ay-wc-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; background: var(--ay-grad) center / cover no-repeat; overflow: hidden; }
.ay-wc-overlay { position: absolute; inset: 0; pointer-events: none; }
.ay-wc-item { position: absolute; cursor: grab; outline: calc(2px * var(--ay-wc-inv, 1)) dashed transparent; outline-offset: calc(3px * var(--ay-wc-inv, 1)); }
.ay-wc-item:hover { outline-color: rgba(255, 255, 255, .35); }
.ay-wc-item.on { outline-color: var(--ay-pink); cursor: move; z-index: 2; }
.ay-wc-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; pointer-events: none; }
.ay-wc-text { white-space: pre; line-height: 1; paint-order: stroke fill; }
.ay-wc-handle { position: absolute; right: calc(-11px * var(--ay-wc-inv, 1)); bottom: calc(-11px * var(--ay-wc-inv, 1)); transform-origin: center; width: 22px; height: 22px; border-radius: 6px; background: var(--ay-pink);
    border: 3px solid #fff; cursor: nwse-resize; box-shadow: 0 2px 8px rgba(0, 0, 0, .5); transform: scale(var(--ay-wc-inv, 1)); }
.ay-wc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.ay-chip-btn.on { border-color: var(--ay-pink); background: rgba(225, 78, 202, .15); }
.ay-wc-panel { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--ay-line); border-radius: 12px; background: var(--ay-surface); }
.ay-wc-props { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.ay-wc-prop { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--ay-muted); min-width: 0; }
.ay-wc-prop input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ay-pink); }
.ay-wc-wide { grid-column: 1 / -1; }
.ay-seg { display: inline-flex; border: 1px solid var(--ay-line); border-radius: 10px; overflow: hidden; }
.ay-seg-btn { background: none; border: 0; color: var(--ay-text); padding: 6px 10px; cursor: pointer; font: inherit; font-size: .82rem; }
.ay-seg-btn.on { background: var(--ay-grad); color: #fff; }
.ay-wc-previewbox img { width: 100%; border-radius: 12px; border: 1px solid var(--ay-line); display: block; }
.ay-wc-bar { overflow: visible; }
.ay-wc-bar-fill { height: 100%; border-radius: inherit; pointer-events: none; }

/* ===== قائمة مفاتيح مجمّعة (أحداث اللوقات) ===== */
.ay-checklist { display: grid; gap: 12px; }
.ay-checklist-group { border: 1px solid var(--ay-line); border-radius: 12px; padding: 12px 14px; background: var(--ay-surface); }
.ay-checklist-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ay-checklist-head b { font-size: .95rem; }
.ay-checklist-head .ay-hint { margin-inline-end: auto; }
.ay-checklist-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px 16px; }

/* ===== مربع لكل لوق ===== */
.ay-logs { display: grid; gap: 14px; }
.ay-logs-group { border: 1px solid var(--ay-line); border-radius: 14px; padding: 14px; background: var(--ay-surface); display: grid; gap: 12px; }
.ay-logs-gchan { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ay-logs-gchan select { max-width: 320px; }
.ay-logs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.ay-logc { border: 1px solid var(--ay-line); border-radius: 12px; padding: 10px 12px; background: rgba(0, 0, 0, .15); transition: opacity .15s; min-width: 0; }
.ay-logc.off { opacity: .55; }
.ay-logc-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ay-logc-head .ay-switch { flex: 1; min-width: 0; }
.ay-logc-head .ay-chip { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; }
.ay-logc-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.ay-logc-gear { padding: 4px 8px; }
.ay-logc-gear[aria-expanded="true"] { border-color: var(--ay-pink); }
.ay-logc-body { display: grid; gap: 10px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--ay-line); }
.ay-logc-color { display: flex; align-items: center; gap: 8px; }
.ay-chip-new { border-color: var(--ay-pink); color: var(--ay-pink); }

/* ===== تحسينات اللوحة: عرض كامل، مفاتيح أوضح، قائمة اختيار منسّقة ===== */
.ay-field.wide { max-width: none; }

/* المفتاح: مطفأ رمادي واضح، مفعّل بتدرّج وتوهج */
.ay-switch-track { background: #2E2B40; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ay-switch-track::after { background: #8E8AA6; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.ay-switch input:checked + .ay-switch-track { background: linear-gradient(135deg, #E14ECA, #7C5CFF); box-shadow: 0 0 0 1px rgba(225, 78, 202, .45), 0 0 14px rgba(225, 78, 202, .35); }
.ay-switch input:checked + .ay-switch-track::after { background: #fff; }

/* رأس صندوق المجموعة: العنوان، روم المجموعة، الأزرار في سطر واحد */
.ay-logs-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.ay-logs-title { display: flex; align-items: baseline; gap: 10px; min-width: 120px; }
.ay-logs-title b { font-size: 1rem; }
.ay-logs-count { font-size: .8rem; color: var(--ay-muted); background: rgba(255, 255, 255, .06); padding: 2px 8px; border-radius: 999px; }
.ay-logs-gchan { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 220px; }
.ay-logs-gchan .ay-pick { flex: 1; max-width: 340px; }
.ay-logs-actions { display: flex; gap: 6px; margin-inline-start: auto; }
.ay-logs-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ay-logc-body .ay-pick { width: 100%; }

/* قائمة الاختيار */
.ay-pick { position: relative; min-width: 0; }
.ay-pick-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: rgba(0, 0, 0, .28); border: 1px solid var(--ay-line); border-radius: 12px; color: var(--ay-text); font: inherit; cursor: pointer; text-align: start; }
.ay-pick.sm .ay-pick-btn { min-height: 36px; padding: 6px 12px; font-size: .88rem; }
.ay-pick-btn:hover, .ay-pick-btn[aria-expanded="true"] { border-color: var(--ay-pink); }
.ay-pick-btn.empty .ay-pick-text { color: var(--ay-muted); }
.ay-pick-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-pick-chev { color: var(--ay-muted); font-size: .8rem; transition: transform .15s; }
.ay-pick-btn[aria-expanded="true"] .ay-pick-chev { transform: rotate(180deg); }
.ay-pick-pop { position: absolute; inset-inline: 0; top: calc(100% + 6px); z-index: 60; min-width: 240px; background: #1B1930; border: 1px solid rgba(225, 78, 202, .35);
    border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .55); padding: 8px; display: grid; gap: 6px; }
.ay-pick-search { width: 100%; }
.ay-pick-list { max-height: 280px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; overscroll-behavior: contain; }
.ay-pick-list > * { flex-shrink: 0; }
.ay-pick-item { text-align: start; background: none; border: 0; color: var(--ay-text); font: inherit; font-size: .9rem; padding: 8px 10px; border-radius: 9px; cursor: pointer;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ay-pick-item:hover:not([disabled]) { background: rgba(255, 255, 255, .07); }
.ay-pick-item.on { background: rgba(225, 78, 202, .16); color: #fff; box-shadow: inset 3px 0 0 var(--ay-pink); }
.ay-pick-item.none { color: var(--ay-muted); }
.ay-pick-item[disabled] { opacity: .4; cursor: not-allowed; }
.ay-pick-group { font-size: .72rem; color: var(--ay-muted); padding: 8px 10px 2px; text-transform: uppercase; letter-spacing: .04em; }
.ay-pick-empty { color: var(--ay-muted); padding: 10px; font-size: .85rem; }
.ay-multi .ay-pick { min-width: 160px; }
.ay-logc-head .ay-switch-label { white-space: normal; line-height: 1.35; overflow-wrap: anywhere; }
.ay-logc-head .ay-switch-track { flex: none; }

/* ===== شبكة بطاقات الحقول في كل صفحات اللوحة ===== */
.ay-fields { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; align-items: start; }
.ay-field { max-width: none; background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 16px; padding: 16px 18px; gap: 8px; align-content: start;
    transition: border-color .15s; min-width: 0; }
.ay-field:hover { border-color: rgba(225, 78, 202, .28); }
.ay-field .ay-label { font-size: .95rem; }
.ay-field .ay-hint { font-size: .82rem; line-height: 1.5; }
.ay-field.span2 { grid-column: span 2; }
.ay-field.wide { grid-column: 1 / -1; background: none; border: 0; padding: 4px 0 0; }
.ay-field.wide:hover { border-color: transparent; }
.ay-field.is-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.ay-field.is-toggle .ay-field-text { display: grid; gap: 4px; min-width: 0; }
.ay-field.is-toggle .ay-switch { flex: none; }
.ay-field.has-error { border-color: var(--ay-err); }
.ay-field .ay-textarea { min-height: 110px; }
@media (max-width: 760px) { .ay-field.span2 { grid-column: 1 / -1; } }
.ay-fields { grid-auto-flow: row dense; }
.ay-field.wide { background: var(--ay-surface); border: 1px solid var(--ay-line); padding: 16px 18px; }
.ay-field.wide.bare { background: none; border: 0; padding: 4px 0 0; }

/* ===== أقسام منظمة (بدل مربعات بأحجام مختلفة) ===== */
.ay-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 20px; grid-auto-flow: row; }
.ay-sec { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 18px; overflow: visible; min-width: 0; }
.ay-sec-head { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-bottom: 1px solid var(--ay-line); background: rgba(255, 255, 255, .02); border-radius: 18px 18px 0 0; }
.ay-sec-head h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.ay-sec-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: rgba(225, 78, 202, .12); font-size: .95rem; }
.ay-sec-hint { margin: 14px 22px 0; color: var(--ay-muted); font-size: .85rem; }
.ay-sec-body { padding: 20px 22px 22px; min-width: 0; }
.ay-sec-body.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px 26px; align-items: start; }
.ay-sec-body.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 40px; padding-top: 6px; padding-bottom: 6px; }

/* حقل داخل القسم: بلا إطار */
.ay-f { display: grid; gap: 7px; align-content: start; min-width: 0; }
.ay-f.full { grid-column: 1 / -1; }
.ay-f .ay-label { font-size: .92rem; font-weight: 600; }
.ay-f .ay-hint { font-size: .82rem; line-height: 1.5; margin-top: -2px; }
.ay-f.has-error .ay-input, .ay-f.has-error .ay-pick-btn { border-color: var(--ay-err); }
.ay-f .ay-textarea { min-height: 120px; }

/* صف خيار: الاسم والوصف في جهة والمفتاح في الأخرى، بخط فاصل */
.ay-opt { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--ay-line); min-width: 0; }
.ay-opt .ay-field-text { display: grid; gap: 3px; min-width: 0; }
.ay-opt .ay-label { font-size: .92rem; font-weight: 600; }
.ay-opt .ay-hint { font-size: .8rem; }
.ay-opt .ay-switch { flex: none; }
.ay-opt.has-error .ay-label { color: var(--ay-err); }
@media (max-width: 640px) { .ay-sec-body { padding: 16px; } .ay-sec-head { padding: 12px 16px; } }

/* ===== أقسام بالمعنى: شبكة الحقول ثم صفوف المفاتيح داخل القسم نفسه ===== */
.ay-sec-body { display: grid; gap: 4px; }
.ay-sec-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px 26px; align-items: start; }
.ay-sec-grid + .ay-sec-opts { margin-top: 14px; border-top: 1px solid var(--ay-line); }
.ay-sec-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 40px; }
.ay-sec-opts .ay-opt:last-child, .ay-sec-opts .ay-opt:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
.ay-sec-opts + .ay-sec-grid { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--ay-line); }

/* ===== شريط تمرير رفيع متناسق مع التصميم (القائمة الجانبية وشريط السيرفرات وكل اللوحة) ===== */
.ay-menu, .ay-pick-list, .ay-dash-body { scrollbar-width: thin; scrollbar-color: rgba(186, 84, 245, .45) transparent; }
.ay-menu::-webkit-scrollbar, .ay-pick-list::-webkit-scrollbar, .ay-dash-body::-webkit-scrollbar { width: 8px; height: 8px; }
.ay-menu::-webkit-scrollbar-track, .ay-pick-list::-webkit-scrollbar-track, .ay-dash-body::-webkit-scrollbar-track { background: transparent; }
.ay-menu::-webkit-scrollbar-thumb, .ay-pick-list::-webkit-scrollbar-thumb, .ay-dash-body::-webkit-scrollbar-thumb {
    background: rgba(186, 84, 245, .35); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.ay-menu::-webkit-scrollbar-thumb:hover, .ay-pick-list::-webkit-scrollbar-thumb:hover, .ay-dash-body::-webkit-scrollbar-thumb:hover { background-color: rgba(225, 78, 202, .6); }
.ay-menu::-webkit-scrollbar-button, .ay-pick-list::-webkit-scrollbar-button { display: none; height: 0; }
/* القائمة: يظهر الشريط عند المرور فقط حتى لا يشغل مساحة بصرية */
.ay-menu { scrollbar-color: transparent transparent; }
.ay-menu:hover { scrollbar-color: rgba(186, 84, 245, .45) transparent; }
.ay-menu::-webkit-scrollbar-thumb { background-color: transparent; }
.ay-menu:hover::-webkit-scrollbar-thumb { background-color: rgba(186, 84, 245, .35); }

/* الوصف تحت الخانة بخط صغير، والخانات البرمجية من اليسار */
.ay-hint-below { margin-top: 2px; font-size: .78rem !important; line-height: 1.45; }
.ay-input.ay-ltr { direction: ltr; text-align: left; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: .03em; }
.ay-code-run { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: rgba(255,255,255,.06); padding: 0 5px; border-radius: 4px; }

/* ===== الصفحة الرئيسية: مدار الأيقونات + محاكيات الميزات (الحركة في aynoo-home.js) ===== */
.ay-hero-art { position: relative; }
.ay-orbit { position: absolute; width: min(440px, 92vw); aspect-ratio: 1; pointer-events: none; }
.ay-orbit-paths { position: absolute; inset: 0; width: 100%; height: 100%; }
.ay-orbit-paths circle { fill: none; stroke: rgba(186, 84, 245, .22); stroke-width: 1; stroke-dasharray: 4 7; }
.ay-orbit-chip { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; font-size: 1.25rem;
    border-radius: 14px; background: rgba(27, 25, 48, .85); border: 1px solid rgba(225, 78, 202, .35); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); backdrop-filter: blur(6px);
    transform: rotate(calc(var(--i) * 45deg)) translateX(min(200px, 41vw)) rotate(calc(var(--i) * -45deg)); }
.ay-js .ay-wordmark .ay-ch { display: inline-block; will-change: transform; }
.ay-show-media:has(.sim) { padding: 0; background: none; border: 0; box-shadow: none; }

.sim { --d-bg: #1E1D2E; --d-bg2: #26243A; --d-line: rgba(255, 255, 255, .07); --d-text: #E9E6F5; --d-muted: #9C97B8;
    position: relative; background: var(--d-bg); border: 1px solid rgba(225, 78, 202, .25); border-radius: 18px; overflow: hidden; color: var(--d-text);
    font-family: 'IBM Plex Sans Arabic', 'Poppins', system-ui, sans-serif; font-size: .92rem; line-height: 1.45; text-align: start;
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .03) inset; }
.sim::after { content: ''; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(225, 78, 202, .12), transparent); pointer-events: none; }
.sim-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(0, 0, 0, .22); border-bottom: 1px solid var(--d-line); }
.sim-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.sim-bar > i:nth-child(2) { background: #FEBC2E; }
.sim-bar > i:nth-child(3) { background: #28C840; }
.sim-chan { margin-inline-start: 10px; font-weight: 600; color: var(--d-muted); font-size: .85rem; }
.sim-replay { margin-inline-start: auto; background: rgba(255, 255, 255, .06); border: 1px solid var(--d-line); color: var(--d-muted); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; font-size: 1rem; line-height: 1; position: relative; z-index: 3; }
.sim-replay:hover { color: #fff; border-color: rgba(225, 78, 202, .5); }
.sim-body { position: relative; padding: 16px; min-height: 340px; display: flex; flex-direction: column; gap: 12px; }
.sim-av { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.sim-av-l { display: grid; place-items: center; font-weight: 700; color: #fff; background: hsl(var(--h) 70% 55%); }
.sim-msg { display: flex; gap: 12px; align-items: flex-start; }
.sim-msg-main { min-width: 0; flex: 1; }
.sim-name { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.sim-name time { color: var(--d-muted); font-weight: 400; font-size: .72rem; }
.sim-tag { background: #5865F2; color: #fff; font-size: .62rem; padding: 1px 5px; border-radius: 4px; font-weight: 700; }
.sim-sys { color: var(--d-muted); font-size: .85rem; padding-inline-start: 52px; }
.sim-sys b { color: var(--d-text); }
.sim-arrow { color: #3DDC97; font-weight: 700; }
.sim-ok { color: #3DDC97; }
.sim-role { color: #E14ECA; background: rgba(225, 78, 202, .14); padding: 0 6px; border-radius: 5px; font-weight: 600; }
.sim-mention { color: #C9CDFB; background: rgba(88, 101, 242, .3); padding: 0 3px; border-radius: 4px; font-weight: 600; }
.sim-card { display: block; width: 100%; max-width: 420px; height: auto; margin-top: 8px; border-radius: 10px; }
.sim-slash { display: inline-flex; gap: 6px; align-items: center; background: var(--d-bg2); border: 1px solid var(--d-line); padding: 6px 10px; border-radius: 8px; font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.sim-slash > span:first-child { color: #B9A7FF; font-weight: 700; }
.sim-typing .sim-typed::after { content: ''; display: inline-block; width: 2px; height: 1em; background: currentColor; margin-inline-start: 2px; vertical-align: -2px; animation: sim-blink 1s steps(1) infinite; }
@keyframes sim-blink { 50% { opacity: 0; } }
.sim-embed { margin-top: 6px; background: var(--d-bg2); border-inline-start: 4px solid #E14ECA; border-radius: 6px; padding: 12px; }
.sim-player { display: flex; gap: 12px; align-items: center; }
.sim-cover { width: 74px; height: 74px; border-radius: 10px; flex: none; display: grid; place-items: end center; padding-bottom: 12px;
    background: linear-gradient(135deg, #E14ECA, #5B3FE0); box-shadow: 0 8px 18px rgba(124, 92, 255, .35); }
.sim-eq { display: flex; gap: 3px; align-items: flex-end; height: 26px; }
.sim-eq i { width: 5px; height: 40%; background: rgba(255, 255, 255, .9); border-radius: 2px; }
.sim-np { flex: 1; min-width: 0; display: grid; gap: 4px; }
.sim-np small { color: var(--d-muted); }
.sim-track { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sim-progress { height: 6px; background: rgba(255, 255, 255, .1); border-radius: 99px; overflow: hidden; }
.sim-progress-fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #E14ECA, #7C5CFF); border-radius: inherit; }
.sim-times { display: flex; justify-content: space-between; color: var(--d-muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.sim-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sim-btns button, .sim-panel button { background: #3A3852; color: #fff; border: 0; border-radius: 6px; padding: 6px 12px; font: inherit; font-size: .9rem; cursor: pointer; transition: background .15s, transform .1s; }
.sim-btns button:hover, .sim-panel button:hover { background: #4A4766; }
.sim-btns button:active, .sim-panel button:active { transform: scale(.94); }
.sim-btns .sim-primary { background: #5865F2; }
.sim-btns .sim-primary:hover { background: #6B76F5; }
.sim-btns button.on { background: #3DDC97; color: #0D0C16; }
.sim-hint { color: #FFC857; font-size: .8rem; margin-top: 6px; }
.sim-split { flex-direction: row; gap: 14px; }
.sim-col { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sim-log { flex: .85; background: rgba(0, 0, 0, .18); border: 1px solid var(--d-line); border-radius: 12px; padding: 10px; gap: 8px; }
.sim-log-head { color: var(--d-muted); font-weight: 700; font-size: .8rem; }
.sim-logitem { display: grid; gap: 2px; background: var(--d-bg2); border-inline-start: 3px solid var(--c); border-radius: 6px; padding: 8px 10px; font-size: .8rem; }
.sim-logitem span { color: var(--d-muted); }
.sim-bad .sim-text { color: #FFB3BF; }
.sim-eph { font-size: .82rem; color: #FFC857; background: rgba(255, 200, 87, .08); border: 1px dashed rgba(255, 200, 87, .35); border-radius: 8px; padding: 8px 10px; }
.sim-xp { display: flex; gap: 12px; align-items: center; background: var(--d-bg2); border-radius: 12px; padding: 12px; }
.sim-xp-main { flex: 1; display: grid; gap: 8px; }
.sim-xp-top { display: flex; gap: 12px; align-items: baseline; font-size: .85rem; color: var(--d-muted); }
.sim-xp-top > b { color: var(--d-text); font-size: .95rem; }
.sim-xpnum { margin-inline-start: auto; font-variant-numeric: tabular-nums; }
.sim-lvl { color: #E14ECA; }
.sim-xpbar { height: 10px; }
.sim-feed { display: flex; flex-direction: column; gap: 6px; min-height: 70px; justify-content: flex-end; }
.sim-bubble { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 4px 10px; font-size: .85rem; }
.sim-bubble em { font-style: normal; color: #3DDC97; font-size: .72rem; font-weight: 700; }
.sim-voice { gap: 6px; }
.sim-vchan { display: flex; align-items: center; gap: 8px; color: var(--d-muted); padding: 6px 10px; border-radius: 8px; font-weight: 600; }
.sim-creator { background: rgba(88, 101, 242, .12); color: #B9C0FF; }
.sim-vroom { overflow: hidden; }
.sim-vroom .sim-vchan { color: var(--d-text); background: rgba(225, 78, 202, .1); }
.sim-vlimit { margin-inline-start: auto; color: var(--d-muted); font-weight: 400; }
.sim-vmembers { display: flex; flex-direction: column; gap: 4px; padding-inline-start: 28px; min-height: 4px; }
.sim-vm { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; }
.sim-vm .sim-av, .sim-vuser .sim-av { width: 24px; height: 24px; font-size: .7rem; }
.sim-vuser { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; background: var(--d-bg2); padding: 4px 10px 4px 4px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); z-index: 2; }
.sim-panel { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; background: var(--d-bg2); border-radius: 10px; padding: 8px 10px; font-size: .8rem; color: var(--d-muted); }
.sim-panel > span { margin-inline-end: auto; }
.sim-panel button.on { background: #E14ECA; }
.sim-gw { display: grid; gap: 6px; border-inline-start-color: #FFC857; }
.sim-gw > b { font-size: 1.05rem; }
.sim-count, .sim-entries { font-variant-numeric: tabular-nums; }
.sim-faces { display: flex; flex-wrap: wrap; gap: 4px; min-height: 28px; }
.sim-faces .sim-av { width: 26px; height: 26px; font-size: .7rem; border: 2px solid var(--d-bg2); }
.sim-faces .sim-av.win { box-shadow: 0 0 0 3px #FFC857; }
.sim-winner { color: #FFC857; font-weight: 600; }
@media (max-width: 640px) {
    .sim-split { flex-direction: column; }
    .sim-body { min-height: 0; }
    .ay-orbit-chip { width: 38px; height: 38px; margin: -19px 0 0 -19px; font-size: 1rem; }
}

/* ===== صفحات عامة: نظرة عامة، الأوامر، سجل اللوحة ===== */
.ay-side-ico { width: 22px; text-align: center; flex: none; font-size: 1rem; line-height: 1; filter: saturate(.9); }
.ay-side-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-side-item .ay-dot { margin-inline-start: auto; }
.ay-side-item .ay-dirty { margin-inline-start: 2px; }
.ay-side-item:not(.active) .ay-side-ico { opacity: .85; }
.ay-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.ay-stat { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 18px; }
.ay-stat-top { display: flex; align-items: center; gap: 12px; }
.ay-stat-top b { display: block; font-size: 1rem; }
.ay-stat-top small { color: var(--ay-muted); font-size: .8rem; }
.ay-stat-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.ay-stat-ico.c1 { background: rgba(124, 92, 255, .22); }
.ay-stat-ico.c2 { background: rgba(255, 200, 87, .2); }
.ay-stat-ico.c3 { background: rgba(61, 160, 255, .2); }
.ay-stat-val { font-family: var(--ay-display); font-size: 2rem; font-weight: 700; margin-top: 14px; text-align: end; }
.ay-mini-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--ay-muted); font-size: .9rem; margin-top: 12px; }
.ay-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.ay-stats-head .ay-h2 { margin: 0; }
.ay-range { width: auto; min-width: 160px; }
.ay-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ay-chart { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: var(--ay-radius); padding: 16px; min-width: 0; }
.ay-chart.wide { grid-column: 1 / -1; }
.ay-chart-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ay-chart-head > small { margin-inline-start: auto; }
.ay-legend { display: inline-flex; gap: 12px; font-size: .8rem; color: var(--ay-muted); }
.ay-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.ay-legend .ay-bar { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.ay-chart-body { display: flex; align-items: stretch; gap: 6px; height: 170px; direction: ltr; }
.ay-chart-body.dense { gap: 2px; }
.ay-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ay-col-bars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--ay-line); }
.ay-col-bars .ay-bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 0; transition: height .4s ease; }
.ay-col:hover .ay-bar { filter: brightness(1.25); }
.ay-col-day { font-size: .68rem; color: var(--ay-muted); text-align: center; white-space: nowrap; overflow: hidden; }
.ay-chart-body.dense .ay-col-day { visibility: hidden; }
.ay-chart-body.dense .ay-col:nth-child(5n+1) .ay-col-day { visibility: visible; overflow: visible; }
.ay-bar.b1 { background: linear-gradient(180deg, #9B7BFF, #7C5CFF); }
.ay-bar.b2 { background: var(--ay-ok); }
.ay-bar.b3 { background: var(--ay-err); }
.ay-bar.b4 { background: linear-gradient(180deg, var(--ay-pink), var(--ay-purple)); }

.ay-cmd-tools { display: flex; flex-direction: column; gap: 12px; margin: 18px 0 14px; }
.ay-cmd-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ay-cmd-cats .ay-chip-btn { direction: inherit; }
.ay-cmd-list { display: flex; flex-direction: column; gap: 10px; }
.ay-cmd { background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 14px; }
.ay-cmd.open { border-color: rgba(225, 78, 202, .45); }
.ay-cmd.off .ay-cmd-info { opacity: .55; }
.ay-cmd-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ay-cmd-info { flex: 1; min-width: 0; }
.ay-cmd-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; font-family: var(--ay-display); }
.ay-cmd-desc { color: var(--ay-muted); font-size: .88rem; margin-top: 3px; }
.ay-cmd-aliases { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ay-cmd-aliases .ay-chip { font-size: .8rem; padding: 1px 10px; }
.ay-badge { font-size: .7rem; font-weight: 600; font-family: var(--ay-font); padding: 2px 8px; border-radius: 999px; background: rgba(225, 78, 202, .18); color: #F6A8EA; }
.ay-badge.off { background: rgba(255, 107, 129, .16); color: var(--ay-err); }
.ay-cmd-edit { border-top: 1px solid var(--ay-line); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ay-cmd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ay-btn-danger { color: var(--ay-err); }

.ay-audit { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.ay-audit-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; background: var(--ay-surface); border: 1px solid var(--ay-line); border-radius: 14px; padding: 14px 16px; }
.ay-audit-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ay-audit-who img, .ay-audit-who .ay-ini { width: 32px; height: 32px; border-radius: 50%; flex: none; background: var(--ay-bg2); display: grid; place-items: center; }
.ay-audit-who b { display: block; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ay-audit-who small { color: var(--ay-muted); font-size: .78rem; }
.ay-audit-feature { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ay-audit-changes { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: .86rem; }
.ay-audit-field { color: var(--ay-muted); }
.ay-audit-changes del { color: var(--ay-err); text-decoration: line-through; opacity: .85; overflow-wrap: anywhere; }
.ay-audit-changes ins { color: var(--ay-ok); text-decoration: none; overflow-wrap: anywhere; }

@media (max-width: 900px) {
    .ay-stats { grid-template-columns: minmax(0, 1fr); }
    .ay-charts { grid-template-columns: minmax(0, 1fr); }
    .ay-audit-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .ay-cmd-main { flex-wrap: wrap; }
    .ay-cmd-info { flex-basis: 100%; }
    .ay-side-name { flex: none; }
}

/* ===== أقسام بمفتاح في رأسها (مثل ProBot) ===== */
.ay-sec-toggle .ay-sec-head .ay-switch { margin-inline-start: auto; }
.ay-sec-toggle .ay-sec-head .ay-switch-label:empty { display: none; }
.ay-sec-toggle.collapsed .ay-sec-head { border-bottom: 0; border-radius: 18px; background: transparent; }
.ay-sec-toggle.collapsed .ay-sec-head h3 { color: var(--ay-muted); font-weight: 600; }
.ay-sec-toggle.collapsed .ay-sec-icon { filter: grayscale(.7); opacity: .7; }
.ay-sec-toggle.on { border-color: rgba(225, 78, 202, .28); }

/* ===== المتغيرات بوصفها بجانب الرسالة ===== */
.ay-tpl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 16px; align-items: start; }
.ay-vars-list { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--ay-line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.ay-vars-list > b { font-size: .82rem; color: var(--ay-muted); padding: 2px 6px 6px; }
.ay-var-row { display: flex; align-items: baseline; gap: 8px; background: none; border: 0; color: var(--ay-muted); cursor: pointer; text-align: start; padding: 5px 6px; border-radius: 8px; font: inherit; font-size: .84rem; }
.ay-var-row code { color: #F06BD8; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; flex: none; }
.ay-var-row:hover, .ay-var-row:focus-visible { background: var(--ay-surface-2); color: var(--ay-text); }
@media (max-width: 760px) { .ay-tpl { grid-template-columns: minmax(0, 1fr); } }
.ay-wc-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 12px; }
.ay-wc-templates[hidden] { display: none; }
.ay-wc-templates .ay-chip-btn { direction: inherit; }
