/* VORTEX — الحساب في الشريط العلوي ونافذة الدخول */
[hidden] { display: none !important; }
:root { --acct-accent: #13ABD2; }

/* زر الزائر */
.acct-login-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; color: #04151c; background: linear-gradient(135deg, #13abd2, #76e5fd); box-shadow: 0 6px 18px rgba(19,171,210,.25); }
.acct-login-btn svg { width: 16px; height: 16px; }
.acct-login-btn:hover { filter: brightness(1.06); }

/* زر المستخدم المسجّل */
.acct-wrap { position: relative; display: inline-flex; }
.acct-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 3px 10px 3px 4px; border-radius: 999px; cursor: pointer; font: inherit; color: #e8eefc; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); transition: border-color .2s, background .2s; }
.acct-btn:hover, .acct-btn[aria-expanded="true"] { border-color: var(--acct-accent); background: rgba(255,255,255,.09); }
.acct-btn > svg { width: 14px; height: 14px; opacity: .7; }
.acct-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 700; }
@media (max-width: 480px) { .acct-name { display: none; } .acct-btn { padding-inline-end: 6px; } }

.acct-av { position: relative; width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: #1a2436; box-shadow: 0 0 0 2px var(--acct-accent); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acct-ini { font-weight: 800; font-size: 14px; color: var(--acct-accent); }
.acct-av-lg { width: 46px; height: 46px; }
.acct-av-lg .acct-ini { font-size: 18px; }

/* القائمة */
.acct-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: min(290px, 92vw); padding: 8px; border-radius: 16px; background: #0c1320; border: 1px solid rgba(118,229,253,.18); box-shadow: 0 22px 50px rgba(0,0,0,.55); z-index: 90; animation: acct-in .16s ease-out; }
@keyframes acct-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #dfe7f7; text-decoration: none; background: none; border: 0; font: inherit; font-size: 14px; cursor: pointer; text-align: start; }
.acct-menu a > svg, .acct-menu button > svg { width: 16px; height: 16px; flex: none; color: var(--acct-accent); }
.acct-menu a:hover, .acct-menu button:hover, .acct-menu a:focus-visible { background: rgba(118,229,253,.1); outline: none; }
.acct-me { padding: 10px !important; }
.acct-me span b { display: block; color: #fff; font-size: 15px; }
.acct-me span small { display: block; color: #8e99a4; font-size: 12px; margin-top: 2px; }
.acct-sep { height: 1px; background: rgba(255,255,255,.07); margin: 6px 4px; }
.acct-admin { color: #76e5fd !important; }
.acct-out { color: #ff9aa6 !important; }
.acct-out > svg { color: #ff9aa6 !important; }

/* نافذة الدخول */
.acct-modal { position: fixed; inset: 0; background: rgba(3,6,14,.72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 200; }
.acct-box { position: relative; width: min(400px, 100%); background: #0c1320; color: #e8eefc; border: 1px solid rgba(118,229,253,.2); border-radius: 20px; padding: 28px 22px 20px; box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.acct-brand { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 12px; background: linear-gradient(135deg, rgba(19,171,210,.25), rgba(118,229,253,.1)); color: #76e5fd; }
.acct-brand svg { width: 22px; height: 22px; }
.acct-box h2 { margin: 0; text-align: center; font-size: 20px; color: #fff; }
.acct-sub { margin: 4px 0 18px; text-align: center; color: #8e99a4; font-size: 13px; }
.acct-x { position: absolute; top: 12px; inset-inline-end: 12px; width: 32px; height: 32px; border-radius: 10px; border: 0; background: rgba(255,255,255,.05); color: #c9d2e3; display: grid; place-items: center; cursor: pointer; }
.acct-x svg { width: 16px; height: 16px; }
.acct-field { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; color: #c9d2e3; }
.acct-field input { padding: 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #070b14; color: #fff; font: inherit; }
.acct-field input:focus { outline: none; border-color: #76e5fd; box-shadow: 0 0 0 3px rgba(118,229,253,.18); }
.acct-msg { min-height: 20px; color: #ffb4b4; font-size: 13px; margin: 2px 0 10px; }
.acct-submit { width: 100%; padding: 12px; border-radius: 12px; border: 0; background: linear-gradient(135deg, #13abd2, #76e5fd); color: #04151c; font: inherit; font-weight: 800; cursor: pointer; }
.acct-submit:disabled { opacity: .6; cursor: wait; }
.acct-switch { display: block; width: 100%; margin-top: 14px; background: none; border: 0; color: #8e99a4; font: inherit; font-size: 13px; cursor: pointer; }
.acct-switch b { color: #76e5fd; }
