.auth-entry { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:9px 14px; background:var(--lav2); color:var(--deep); font-size:12px; }
.auth-entry button { color:var(--violet); font-weight:700; padding:4px 0; }
.aseel-auth {
  --auth-ink: var(--ink, #1B1030);
  --auth-muted: var(--gray, #8A849A);
  --auth-violet: var(--violet, #6C3DE0);
  --auth-deep: var(--deep, #2A1257);
  --auth-pink: var(--pink, #F16BB3);
  --auth-lav: var(--lav, #E7DEFC);
  --auth-lav2: var(--lav2, #F6F2FE);
  --auth-line: var(--line, #EFECF5);
  position: absolute;
  z-index: 120;
  inset: 0;
  direction: rtl;
  color: var(--auth-ink);
  background:
    radial-gradient(ellipse at 100% 0%, rgba(241,107,179,.12), transparent 38%),
    radial-gradient(ellipse at 0% 100%, rgba(108,61,224,.13), transparent 42%),
    #fbf9ff;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: aseel-auth-in .24s ease-out;
  font-family: inherit;
}
.aseel-auth[hidden] { display: none !important; }
.aseel-auth * { box-sizing: border-box; }
.aseel-auth button, .aseel-auth input, .aseel-auth select { font: inherit; }
.aseel-auth button { color: inherit; cursor: pointer; }
.aseel-auth button:focus-visible, .aseel-auth input:focus-visible, .aseel-auth select:focus-visible, .aseel-auth a:focus-visible {
  outline: 2px solid var(--auth-violet); outline-offset: 3px;
}
.auth-shell {
  width: 100%; min-height: 100%; display: flex; flex-direction: column;
  padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
}
.auth-top {
  display: flex; align-items: center; justify-content: space-between; min-height: 46px;
  width: min(100%, 520px); margin: 0 auto 14px;
}
.auth-brand { display: inline-flex; align-items: center; gap: 8px; direction: ltr; text-decoration: none; color: var(--auth-deep); }
.auth-brand strong { font-size: 22px; line-height: 1; letter-spacing: -.7px; font-weight: 850; }
.auth-brand-mark { width: 25px; height: 25px; display: flex; gap: 2px; align-items: center; justify-content: center; border-radius: 9px; background: var(--grad, linear-gradient(135deg,#6C3DE0,#C257C9,#F16BB3)); }
.auth-brand-mark i { display: block; width: 2px; border-radius: 3px; background: #fff; }
.auth-brand-mark i:nth-child(1) { height: 7px; }.auth-brand-mark i:nth-child(2) { height: 13px; }.auth-brand-mark i:nth-child(3) { height: 9px; }.auth-brand-mark i:nth-child(4) { height: 15px; }
.auth-close { width: 40px; height: 40px; border: 1px solid rgba(42,18,87,.09); border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.76); color: var(--auth-deep); font-size: 22px; line-height: 1; transition: transform .18s, background .18s; }
.auth-close:hover { transform: rotate(7deg); background: #fff; }
.auth-main { width: min(100%, 520px); margin: 0 auto; flex: 1; display: flex; flex-direction: column; }
.auth-card {
  position: relative; width: 100%; margin: auto 0; padding: clamp(22px, 6vw, 34px);
  border: 1px solid rgba(108,61,224,.12); border-radius: 25px;
  background: rgba(255,255,255,.94); box-shadow: 0 18px 52px rgba(42,18,87,.10), 0 2px 8px rgba(42,18,87,.04);
  overflow: hidden;
}
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad, linear-gradient(135deg,#6C3DE0,#C257C9,#F16BB3)); }
.auth-kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: var(--auth-violet); font-size: 12px; font-weight: 750; }
.auth-kicker::before { content: ""; width: 23px; height: 2px; background: var(--auth-pink); border-radius: 2px; }
.auth-title { font-size: clamp(23px, 6vw, 29px); line-height: 1.3; letter-spacing: -.45px; color: var(--auth-deep); font-weight: 800; }
.auth-subtitle { margin-top: 7px; margin-bottom: 23px; color: var(--auth-muted); line-height: 1.8; font-size: 14px; }
.auth-form { display: grid; gap: 13px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label { font-size: 13px; font-weight: 700; color: var(--auth-deep); }
.auth-input-wrap { position: relative; }
.auth-input {
  width: 100%; min-width: 0; height: 49px; padding: 0 14px;
  border: 1px solid #e9e4f2; border-radius: 12px; outline: 0;
  background: #fcfbfe; color: var(--auth-ink); direction: rtl; transition: border-color .16s, box-shadow .16s, background .16s;
}
.auth-input::placeholder { color: #aaa4b6; }
.auth-input:focus { border-color: rgba(108,61,224,.7); background: #fff; box-shadow: 0 0 0 3px rgba(108,61,224,.10); }
.auth-input.has-toggle { padding-inline-end: 58px; }
.auth-toggle { position: absolute; inset-inline-end: 7px; top: 6px; height: 37px; padding: 0 9px; border-radius: 9px; color: var(--auth-violet); font-weight: 700; font-size: 12px; }
.auth-toggle:hover { background: var(--auth-lav2); }
.auth-hint { color: var(--auth-muted); font-size: 12px; line-height: 1.6; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.auth-link { color: var(--auth-violet); text-decoration: none; font-size: 13px; font-weight: 700; }
.auth-link:hover { text-decoration: underline; }
.auth-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 47px;
  padding: 0 17px; border-radius: 12px; border: 1px solid transparent; font-weight: 750;
  transition: transform .16s, box-shadow .16s, opacity .16s, background .16s;
}
.auth-btn:hover:not(:disabled) { transform: translateY(-1px); }
.auth-btn:active:not(:disabled) { transform: translateY(0); }
.auth-btn:disabled { cursor: not-allowed; opacity: .52; }
.auth-btn-primary { width: 100%; color: #fff !important; background: var(--grad, linear-gradient(135deg,#6C3DE0,#C257C9,#F16BB3)); box-shadow: 0 8px 18px rgba(108,61,224,.2); }
.auth-btn-primary:hover:not(:disabled) { box-shadow: 0 10px 22px rgba(108,61,224,.28); }
.auth-btn-soft { background: var(--auth-lav2); border-color: rgba(108,61,224,.08); color: var(--auth-deep) !important; }
.auth-btn-outline { background: #fff; border-color: #e8e2f0; color: var(--auth-deep) !important; }
.auth-btn-danger { background: #fff1f3; border-color: #f5d9df; color: #a32445 !important; }
.auth-divider { display: flex; align-items: center; gap: 11px; margin: 19px 0 14px; color: #aaa4b6; font-size: 11px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--auth-line); }
.auth-social { display: grid; gap: 8px; }
.auth-social .auth-btn { width: 100%; justify-content: flex-start; padding-inline: 14px; min-height: 43px; }
.auth-social .auth-btn .social-name { flex: 1; text-align: center; margin-inline-end: 24px; }
.auth-social .auth-btn small { margin-inline-start: auto; color: var(--auth-muted); font-size: 10px; }
.auth-social .auth-btn:disabled { opacity: .62; }
.auth-social-mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--auth-lav2); color: var(--auth-violet); font-size: 11px; font-weight: 850; direction: ltr; }
.auth-notice { margin: 13px 0; padding: 11px 13px; border: 1px solid #e9e1fb; border-radius: 12px; color: var(--auth-deep); background: #f8f5ff; font-size: 12.5px; line-height: 1.75; }
.auth-notice.warn { border-color: #f4dfa6; background: #fffaf0; color: #775314; }
.auth-notice.error { border-color: #f1ccd4; background: #fff4f6; color: #9b2944; }
.auth-notice.success { border-color: #d5eadc; background: #f3fbf5; color: #28633b; }
.auth-alert { min-height: 0; color: #a32445; font-size: 13px; line-height: 1.7; }
.auth-alert:empty { display: none; }
.auth-foot { text-align: center; color: var(--auth-muted); font-size: 13px; margin-top: 19px; }
.auth-profile-head { display: flex; gap: 13px; align-items: center; margin-bottom: 19px; }
.auth-avatar { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 18px; background: var(--grad, linear-gradient(135deg,#6C3DE0,#C257C9,#F16BB3)); color: #fff; font-size: 22px; font-weight: 800; }
.auth-profile-head h2 { color: var(--auth-deep); font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.auth-profile-head p { color: var(--auth-muted); font-size: 12px; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.auth-section { padding-top: 17px; margin-top: 17px; border-top: 1px solid var(--auth-line); }
.auth-section-title { color: var(--auth-deep); font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.auth-provider-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #f2eff7; }
.auth-provider-row:last-child { border-bottom: 0; }
.auth-provider-row .provider-copy { flex: 1; min-width: 0; }
.auth-provider-row b { display: block; font-size: 13px; }
.auth-provider-row small { display: block; color: var(--auth-muted); font-size: 11px; }
.auth-provider-row .auth-btn { min-height: 34px; padding-inline: 11px; border-radius: 9px; font-size: 11px; white-space: nowrap; }
.auth-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; color: #26653d; background: #eaf7ee; font-size: 11px; font-weight: 750; }
.auth-status::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.auth-status.off { color: #88631e; background: #fff5db; }

/* Owner workspace: still recognizable as Aseel, with denser tool surfaces. */
.auth-main.wide { width: min(100%, 570px); }
.auth-admin-card { margin: 0; padding: clamp(16px, 4vw, 25px); }
.auth-admin-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.auth-admin-top .auth-title { font-size: 23px; }
.auth-admin-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 15px; }
.auth-admin-actions .auth-btn { min-height: 37px; padding-inline: 12px; font-size: 12px; }
.auth-stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 17px 0; }
.auth-stat { min-width: 0; border-radius: 13px; padding: 11px; background: linear-gradient(145deg,#f8f5ff,#fff); border: 1px solid #eee8f8; }
.auth-stat b { display: block; font-size: 21px; color: var(--auth-deep); line-height: 1.2; font-variant-numeric: tabular-nums; }
.auth-stat small { display: block; color: var(--auth-muted); font-size: 10.5px; margin-top: 3px; }
.auth-admin-nav { display: flex; gap: 6px; padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.auth-admin-nav button { flex: none; border-radius: 999px; padding: 7px 12px; color: var(--auth-muted); background: var(--auth-lav2); font-size: 12px; font-weight: 700; }
.auth-admin-nav button[aria-selected="true"] { color: #fff; background: var(--auth-violet); }
.auth-toolbar { display: flex; gap: 7px; align-items: center; margin: 6px 0 10px; }
.auth-toolbar .auth-input { height: 39px; font-size: 13px; padding-inline: 10px; }
.auth-toolbar input { flex: 1; min-width: 0; }
.auth-toolbar select { width: 112px; height: 39px; border: 1px solid #e9e4f2; border-radius: 10px; background: #fff; color: var(--auth-ink); padding: 0 7px; }
.auth-user-list { display: grid; gap: 7px; }
.auth-user-item { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid #eeeaf4; border-radius: 12px; padding: 10px; background: #fff; }
.auth-user-item .user-name { display: block; font-size: 13px; font-weight: 750; overflow-wrap: anywhere; }
.auth-user-item .user-email { display: block; color: var(--auth-muted); font-size: 11px; direction: ltr; text-align: right; overflow-wrap: anywhere; }
.auth-user-item .user-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.auth-user-item .auth-btn { min-height: 33px; padding-inline: 10px; font-size: 11px; border-radius: 9px; }
.auth-pill { display: inline-flex; border-radius: 99px; padding: 2px 7px; background: var(--auth-lav2); color: var(--auth-deep); font-size: 10px; font-weight: 700; }
.auth-pill.suspended { color: #a32445; background: #fff0f3; }
.auth-user-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: -10px 0 14px; }
.auth-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; color: var(--auth-muted); font-size: 11px; }
.auth-pagination .auth-btn { min-height: 33px; padding-inline: 10px; font-size: 11px; }
.auth-empty { padding: 25px 10px; color: var(--auth-muted); text-align: center; border: 1px dashed #dcd2ef; border-radius: 13px; font-size: 13px; }
.auth-detail { margin-top: 13px; border: 1px solid #e9e2f2; border-radius: 15px; padding: 13px; background: #fcfbfe; }
.auth-detail h3 { color: var(--auth-deep); font-size: 15px; margin-bottom: 8px; }
.auth-detail .auth-form { gap: 10px; }
.auth-audit { display: grid; gap: 7px; }
.auth-audit-item { padding: 10px; border-radius: 11px; background: #faf8fe; border: 1px solid #eee9f5; }
.auth-audit-item b { display: block; font-size: 12px; color: var(--auth-deep); }
.auth-audit-item small { color: var(--auth-muted); font-size: 10px; direction: ltr; text-align: right; display: block; }
.auth-audit-item p { color: var(--auth-ink); font-size: 11px; margin-top: 4px; overflow-wrap: anywhere; }
.auth-admin-footer { display: flex; justify-content: space-between; gap: 7px; align-items: center; color: var(--auth-muted); font-size: 10px; margin-top: 14px; }
.auth-report-toolbar { display:flex; align-items:center; justify-content:space-between; gap:9px; margin:7px 0 12px; }
.auth-report-toolbar > .auth-btn { flex:none; min-height:36px; padding-inline:12px; font-size:11px; }
.auth-report-filters { display:flex; flex-wrap:wrap; gap:5px; }
.auth-report-filter { min-height:34px; padding:0 10px; border:1px solid transparent; border-radius:999px; background:var(--auth-lav2); color:var(--auth-muted); font-size:11px; font-weight:700; white-space:nowrap; }
.auth-report-filter.active { background:var(--auth-violet); color:#fff; }
.auth-report-filter:focus-visible { outline:2px solid var(--auth-violet); outline-offset:2px; }
.auth-report-list { display:grid; gap:9px; }
.auth-report-item { min-width:0; padding:12px; border:1px solid #eeeaf4; border-radius:14px; background:#fff; }
.auth-report-head { display:flex; align-items:flex-start; justify-content:space-between; gap:9px; padding-bottom:9px; border-bottom:1px solid var(--auth-line); }
.auth-report-head b { display:block; color:var(--auth-deep); font-size:13px; }
.auth-report-head small { display:block; margin-top:3px; color:var(--auth-muted); font-size:10px; }
.auth-report-reason { margin:9px 0; padding:9px 10px; border-radius:10px; background:#fff8f2; border:1px solid #f5e7d9; }
.auth-report-reason b { display:block; color:#79532b; font-size:11px; }
.auth-report-reason p { margin-top:3px; color:var(--auth-ink); font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.auth-report-post { padding:10px; border:1px solid #f0edf5; border-radius:11px; background:#fcfbfe; }
.auth-report-post-head { display:flex; flex-wrap:wrap; justify-content:space-between; gap:6px; color:var(--auth-muted); font-size:10px; }
.auth-report-post-head b { color:var(--auth-deep); font-size:11px; }
.auth-report-copy { margin-top:7px; color:var(--auth-ink); font-size:12px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.auth-report-images { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.auth-report-images img { width:min(100%,130px); height:100px; object-fit:cover; border-radius:9px; border:1px solid #e9e4f2; background:var(--auth-lav2); }
.auth-report-audio { display:block; width:100%; max-width:380px; height:38px; margin-top:8px; }
.auth-report-decision { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:10px; color:var(--auth-muted); font-size:10px; }
.auth-report-deleted { margin-top:8px; padding:13px 8px; font-size:11px; }
.auth-report-actions { display:flex; flex-wrap:wrap; gap:7px; justify-content:flex-start; margin-top:10px; }
.auth-report-actions .auth-btn { min-height:36px; padding-inline:12px; font-size:11px; }
.auth-spinner { width: 17px; height: 17px; border: 2px solid rgba(108,61,224,.18); border-top-color: var(--auth-violet); border-radius: 50%; display: inline-block; animation: auth-spin .7s linear infinite; }
.auth-skeleton { height: 42px; border-radius: 11px; background: linear-gradient(90deg,#f2eef9,#faf9fc,#f2eef9); background-size: 200% 100%; animation: auth-shimmer 1.3s ease infinite; }
.auth-overlay-alert { position: sticky; top: 4px; z-index: 2; }
.auth-confirm-backdrop { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: rgba(27,16,48,.42); }
.auth-confirm { width: min(100%, 360px); padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 16px 55px rgba(42,18,87,.25); }
.auth-confirm h3 { color: var(--auth-deep); font-size: 18px; }
.auth-confirm p { color: var(--auth-muted); font-size: 13px; margin: 7px 0 16px; }
.auth-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.auth-confirm-actions .auth-btn { min-height: 39px; font-size: 12px; }
@keyframes aseel-auth-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes auth-spin { to { transform: rotate(360deg); } }
@keyframes auth-shimmer { to { background-position: -200% 0; } }
@media (max-width: 370px) {
  .auth-shell { padding-inline: 11px; }
  .auth-card { padding: 21px 17px; border-radius: 21px; }
  .auth-stats { gap: 5px; }.auth-stat { padding: 9px 7px; }.auth-stat b { font-size: 18px; }
  .auth-user-item { grid-template-columns: minmax(0,1fr); }.auth-user-item > .auth-btn { justify-self: start; }
  .auth-report-toolbar { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) {
  .aseel-auth, .aseel-auth *, .aseel-auth *::before, .aseel-auth *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
