/* [ADDED - ACCOUNT INFO] بيانات الحساب: الجنس + العمر + الإيميل التلقائي */

/* الجنس والعمر جنب بعض في صف واحد (التسجيل + نافذة التسجيل من الغرفة + بيانات الحساب) */
.acc-pair { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.acc-pair > div { flex: 1 1 0; min-width: 0; }
.acc-pair .acc-sel { width: 100%; box-sizing: border-box; }

/* القوائم المنسدلة: سهم صغير (login_inp عليه appearance:none فكان شكلها زي الزرار من غير سهم) */
select.acc-sel {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236d6dfb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 30px !important;
  cursor: pointer;
}

/* تسجيل: الحقول */
#tlogins .acc-pair .login_lbl { margin-top: 8px; }
#tlogins .acc-err { color: #d9534f; font-size: 12px; margin: 6px 2px 0; text-align: center; }

/* بيانات الحساب (تبويب الخصوصية) */
#stpAcctBox .acc-box { padding: 8px 4px 4px; }
#stpAcctBox .acc-field { margin: 0 0 10px; }
#stpAcctBox .acc-field > label { display: block; font-size: 12px; opacity: .75; margin: 0 0 4px; }
#stpAcctBox .acc-field .rmk-input { width: 100%; box-sizing: border-box; }
#stpAcctBox .acc-pair { gap: 8px; }
#stpAcctBox .acc-emailrow { display: flex; gap: 6px; }
#stpAcctBox .acc-emailrow .acc-email { flex: 1 1 auto; min-width: 0; }
#stpAcctBox .acc-emailbtn { flex: 0 0 auto; }
#stpAcctBox .acc-email { direction: ltr; text-align: left; font-family: monospace; font-size: 13px; padding: 8px 10px; border-radius: 6px; background: rgba(127,127,127,.12); word-break: break-all; }
#stpAcctBox .acc-note { min-height: 16px; font-size: 12px; margin: 2px 0 8px; line-height: 1.5; }
#stpAcctBox .acc-save { width: 100%; }
#stpAcctBox select:disabled { opacity: .7; }

/* [FIXED - ACCOUNT BTN STYLE] زر «بيانات الحساب» كان ظاهر بشكل الزر الافتراضي للمتصفح لأن ستايل زر «خصوصية الحساب»
   في settings-v2.css مربوط بالـ id بتاعه (#stpPrivBtn) بس. هنا نفس القواعد بالظبط لـ #stpAcctBtn (نفس كارت .sp2-ci). */
#settingsPopup #stpAcctBtn{width:100%;background:none;border:0;padding:0;margin:0;font:inherit;color:inherit;cursor:pointer;display:flex;align-items:center;gap:12px;text-align:right;-webkit-appearance:none;appearance:none;outline:0;-webkit-tap-highlight-color:transparent}
#settingsPopup #stpAcctArrow{flex:none;color:var(--sp-mut);font-size:16px;transition:transform .2s}
#settingsPopup #stpAcctBtn[aria-expanded="true"] #stpAcctArrow{transform:rotate(180deg)}
#settingsPopup #stpAcctBox{margin-top:14px;border-top:1px solid var(--sp-bd)}
#settingsPopup #stpAcctBtn .sp2-txt{flex:1 1 auto;min-width:0}
#settingsPopup #stpAcctBox .acc-box{padding:12px 0 0}
#settingsPopup #stpAcctBox .acc-field > label{color:var(--sp-mut);font-weight:700;opacity:1}
#settingsPopup #stpAcctBox .rmk-input,#settingsPopup #stpAcctBox select{height:42px;padding:6px 10px;border:1px solid var(--sp-bd);border-radius:12px;background:#fff;color:var(--sp-ink);font:inherit}
#settingsPopup #stpAcctBox .acc-email{font-family:monospace;font-size:13px}
#settingsPopup #stpAcctBox .acc-emailbtn,#settingsPopup #stpAcctBox .acc-save{height:42px;padding:0 16px;border:0;border-radius:12px;background:var(--sp-pur);color:#fff;font-weight:700;cursor:pointer}
#settingsPopup #stpAcctBox .acc-emailbtn:hover,#settingsPopup #stpAcctBox .acc-save:hover{background:var(--sp-pur-d)}
#settingsPopup #stpAcctBox .acc-emailbtn:disabled,#settingsPopup #stpAcctBox .acc-save:disabled{opacity:.55;cursor:default}

/* ══════════════════════════════════════════════════════════════════
   [RESTYLED v2] نافذة «سجل عضويتك الآن» للزائر داخل الغرفة + زر «سجل الآن»
   نفس لغة تصميم نوافذ الموقع (إعدادات / لوحات الصدارة): هيدر داكن #2f1240 + بنفسجي #6a3fb8 + حواف مدوّرة.
   كل القواعد مربوطة بكلاسات .gr-* فمفيش تأثير على باقي الصفحة. */
#guestRegisterBtn.gr-fab {
  background: linear-gradient(135deg, #6a3fb8, #8b5cf6) !important;
  border: 0 !important; color: #fff !important;
  font-weight: 700; letter-spacing: .2px;
  box-shadow: 0 4px 14px rgba(106, 63, 184, .45) !important;
}
#guestRegisterBtn.gr-fab:hover, #guestRegisterBtn.gr-fab:focus { background: linear-gradient(135deg, #58309c, #7c4def) !important; }
#guestRegisterBtn.gr-fab i { margin-inline-end: 4px; }

.gr-ov {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 999999;
  align-items: center; justify-content: center; padding: 12px; box-sizing: border-box;
  background: rgba(0, 0, 0, .6); direction: rtl;
}
.gr-ov *, .gr-ov *::before, .gr-ov *::after { box-sizing: border-box; }
.gr-card {
  display: flex; flex-direction: column; width: 360px; max-width: 100%; max-height: calc(100vh - 24px);
  background: #fff; color: #111; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 44px rgba(0, 0, 0, .4); animation: grIn .16s ease-out;
}
@keyframes grIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.gr-head { flex: none; position: relative; padding: 16px 14px 18px; background: #2f1240; text-align: center; }
.gr-x {
  position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}
.gr-x:hover, .gr-x:active { background: rgba(255, 255, 255, .14); }
.gr-x i { color: #fff; font-size: 20px; }
.gr-title { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 40px; color: #fff; }
.gr-title i { color: #fcc934; font-size: 18px; }
.gr-title b { color: #fff; font-size: 18px; font-weight: 700; line-height: 1.4; }
.gr-sub { margin-top: 2px; color: rgba(255, 255, 255, .68); font-size: 12.5px; line-height: 1.7; }
.gr-body { flex: 1 1 auto; min-height: 0; padding: 14px 14px 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; background: #fff; }
.gr-lbl { display: block; margin: 0 2px 5px; color: #2f1240; font-size: 13px; font-weight: 700; line-height: 1.5; }
.gr-inp {
  display: block; width: 100%; height: 42px; margin: 0 0 11px; padding: 6px 12px;
  border: 1px solid #e6e6ea; border-radius: 12px; background: #fafafa; color: #111;
  font: inherit; font-size: 14.5px; line-height: 1.4; outline: 0; box-shadow: none;
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s, background .15s;
}
.gr-inp::placeholder { color: #9aa0ad; }
.gr-inp:focus { border-color: #6a3fb8; background: #fff; box-shadow: 0 0 0 3px rgba(106, 63, 184, .15); }
.gr-email { direction: ltr; text-align: left; font-family: monospace; font-size: 13.5px; }
.gr-pair { display: flex; flex-direction: row; gap: 10px; align-items: flex-start; }
.gr-pair > div { flex: 1 1 0; min-width: 0; }
/* القوائم المنسدلة: كانت بتظهر من غير حدود/خلفية (appearance:none من .acc-sel) → دلوقتي بنفس شكل الحقول + سهم */
.gr-inp.gr-sel {
  padding-left: 30px !important; padding-right: 10px; cursor: pointer;
  background-color: #fafafa; text-overflow: ellipsis;
}
.gr-inp.gr-sel:focus { background-color: #fff; }
.gr-msg { min-height: 18px; margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; text-align: center; }
.gr-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; margin: 0; padding: 0 14px;
  border: 0; border-radius: 12px; background: #6a3fb8; color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
}
.gr-btn:hover { background: #58309c; }
.gr-btn:active { transform: scale(.98); }
.gr-btn:disabled, .gr-btn[disabled] { opacity: .6; cursor: default; }
@media (prefers-reduced-motion: reduce) { .gr-card { animation: none; } }
