/* Arab Social Network – Styles v2.0 — RTL Arabic */

#asoc-app {
  --asoc-primary: #10b981;
  --asoc-primary-d: #0d9488;
  --asoc-bg: #f8faf9;
  --asoc-card: #ffffff;
  --asoc-border: #e5e7eb;
  --asoc-text: #1f2937;
  --asoc-muted: #6b7280;
  --asoc-radius: 12px;
  --asoc-shadow: 0 1px 3px rgba(0,0,0,.06);
  font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
  background: var(--asoc-bg);
  color: var(--asoc-text);
  min-height: 100vh;
}

#asoc-app * { box-sizing: border-box; }
:where(#asoc-app) button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:where(#asoc-app) input, :where(#asoc-app) textarea { font-family: inherit; }
:where(#asoc-app) a { color: var(--asoc-primary); text-decoration: none; }

/* ===== التخطيط ===== */
.asoc-layout {
  display: grid;
  grid-template-columns: 240px 1fr 300px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
}
@media (max-width: 1024px) {
  .asoc-layout { grid-template-columns: 220px 1fr; }
  .asoc-rail { display: none; }
}


/* ===== الشريط الجانبي ===== */
.asoc-sidebar { display: flex; flex-direction: column; gap: 12px; }
.asoc-logo { font-size: 22px; font-weight: 800; color: var(--asoc-primary); padding: 4px 0; }
.asoc-nav { display: flex; flex-direction: column; gap: 2px; }
.asoc-nav button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px;
  font-size: 15px; color: var(--asoc-text); text-align: right;
  transition: background .15s;
}
.asoc-nav button:hover { background: rgba(16,185,129,.08); }
.asoc-nav button.active { background: var(--asoc-primary); color: #fff; }
.asoc-badge {
  background: #ef4444; color: #fff; font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 10px; margin-right: 4px;
}
.asoc-compose-btn {
  background: var(--asoc-primary); color: #fff;
  padding: 12px; border-radius: 10px; font-weight: 700; font-size: 15px;
  box-shadow: var(--asoc-shadow); transition: background .15s;
}
.asoc-compose-btn:hover { background: var(--asoc-primary-d); }
.asoc-me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); }
.asoc-me-info { display: flex; flex-direction: column; }
.asoc-me-info strong { font-size: 14px; }
.asoc-me-info span { font-size: 12px; color: var(--asoc-muted); }

/* ===== الأفاتار ===== */
.asoc-avatar {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; overflow: hidden; background: rgba(16,185,129,.12); color: var(--asoc-primary); flex-shrink: 0;
}
.asoc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.asoc-verified {
  position: absolute; bottom: -2px; left: -2px;
  background: var(--asoc-primary); color: #fff;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 10px;
  border: 2px solid var(--asoc-card);
}
.asoc-verified-inline { color: var(--asoc-primary); font-size: 0.85em; }

/* ===== العرض الرئيسي ===== */
.asoc-main { min-width: 0; }
.asoc-view { display: flex; flex-direction: column; gap: 12px; }
.asoc-view-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.asoc-view-head h2 { font-size: 22px; margin: 0; }
.asoc-card { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); padding: 16px; box-shadow: var(--asoc-shadow); }
.asoc-card h3, .asoc-card h4 { margin: 0 0 12px; }
.asoc-loading { padding: 32px; text-align: center; color: var(--asoc-muted); }
.asoc-empty { padding: 32px; text-align: center; color: var(--asoc-muted); background: var(--asoc-card); border: 1px dashed var(--asoc-border); border-radius: var(--asoc-radius); }

/* ===== الصنف (Button) ===== */
.asoc-btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 14px;
  background: var(--asoc-card); border: 1px solid var(--asoc-border); color: var(--asoc-text);
  transition: all .15s;
}
.asoc-btn:hover { background: rgba(16,185,129,.06); border-color: var(--asoc-primary); }
.asoc-btn-sm { padding: 4px 10px; font-size: 12px; }
.asoc-btn-primary { background: var(--asoc-primary); color: #fff; border-color: var(--asoc-primary); }
.asoc-btn-primary:hover { background: var(--asoc-primary-d); }
.asoc-btn-secondary { background: rgba(16,185,129,.12); color: var(--asoc-primary); border-color: transparent; }
.asoc-btn-light { background: rgba(107,114,128,.1); color: var(--asoc-muted); border-color: transparent; }
.asoc-btn-danger { background: #ef4444; color: #fff; border-color: #ef4444; }

/* ===== المُنشئ ===== */
.asoc-composer { display: flex; gap: 10px; align-items: center; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); padding: 12px; }
.asoc-composer-trigger { flex: 1; text-align: right; padding: 12px; background: rgba(16,185,129,.06); border-radius: 8px; color: var(--asoc-muted); font-size: 15px; }
.asoc-composer-trigger:hover { background: rgba(16,185,129,.1); }
.asoc-composer-full { display: flex; gap: 10px; align-items: flex-start; }
.asoc-composer-full textarea { flex: 1; border: none; resize: vertical; font-size: 16px; padding: 8px; outline: none; min-height: 80px; }
.asoc-composer-tools { display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--asoc-border); }
.asoc-tool-btn { padding: 8px 12px; border-radius: 8px; background: rgba(16,185,129,.08); cursor: pointer; font-size: 18px; position: relative; }
.asoc-tool-btn input { position: absolute; inset: 0; opacity: 0; }
.asoc-media-prev-item { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,.08); padding: 4px 10px; border-radius: 6px; font-size: 12px; margin: 4px 4px 0 0; }
.asoc-media-prev-item button { color: #ef4444; font-weight: bold; }
.asoc-repost-preview { display: flex; gap: 8px; padding: 12px; background: rgba(16,185,129,.05); border-radius: 8px; margin-top: 8px; border-right: 3px solid var(--asoc-primary); }
.asoc-repost-preview p { margin: 4px 0 0; font-size: 13px; color: var(--asoc-muted); }

/* ===== المنشور ===== */
.asoc-post { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); padding: 16px; box-shadow: var(--asoc-shadow); }
.asoc-post-head { display: flex; align-items: flex-start; gap: 10px; }
.asoc-post-meta { flex: 1; min-width: 0; }
.asoc-name { font-weight: 700; font-size: 15px; padding: 0; color: var(--asoc-text); }
.asoc-name:hover { text-decoration: underline; }
.asoc-post-time { font-size: 12px; color: var(--asoc-muted); }
.asoc-post-content { margin: 12px 0; line-height: 1.7; font-size: 15px; word-wrap: break-word; }
.asoc-tag { color: var(--asoc-primary); font-weight: 500; cursor: pointer; }
.asoc-mention { color: var(--asoc-primary); font-weight: 500; cursor: pointer; }
.asoc-breakdown { font-size: 12px; color: var(--asoc-muted); margin: 8px 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.asoc-reaction-mini { background: rgba(16,185,129,.08); padding: 1px 6px; border-radius: 10px; }
.asoc-post-actions { display: flex; gap: 4px; padding-top: 8px; border-top: 1px solid var(--asoc-border); margin-top: 8px; }
.asoc-action { flex: 1; padding: 8px; border-radius: 8px; color: var(--asoc-muted); font-size: 14px; font-weight: 500; transition: background .15s; }
.asoc-action:hover { background: rgba(16,185,129,.06); color: var(--asoc-primary); }
.asoc-action.asoc-reacted { color: var(--asoc-primary); background: rgba(16,185,129,.08); }
.asoc-react-wrap { position: relative; flex: 1; }
.asoc-react-tray {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 6px;
  background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 24px;
  padding: 6px 8px; display: flex; gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px) scale(.9); transition: all .2s; z-index: 20;
}
.asoc-react-tray.show { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.asoc-react-tray { inset-inline-start: 0; right: auto; max-width: calc(100vw - 24px); }
.asoc-react-tray button { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; padding: 4px 6px; border-radius: 14px; background: none; border: 0; cursor: pointer; transition: transform .15s, background .15s; }
.asoc-react-tray button .asoc-re { font-size: 24px; line-height: 1.1; }
.asoc-react-tray button small { font-size: 10.5px; color: var(--asoc-muted); white-space: nowrap; }
.asoc-react-tray button:hover { transform: translateY(-3px) scale(1.12); background: rgba(16,185,129,.08); }
.asoc-react-tray button.on { background: rgba(16,185,129,.16); }

/* ===== الوسائط ===== */
.asoc-media-single { margin: 12px 0; border-radius: var(--asoc-radius); overflow: hidden; }
.asoc-media-single .asoc-media-tile { aspect-ratio: 16/9; }
.asoc-media-grid { margin: 12px 0; display: grid; gap: 4px; border-radius: var(--asoc-radius); overflow: hidden; }
.asoc-media-grid.asoc-media-2 { grid-template-columns: 1fr 1fr; }
.asoc-media-grid.asoc-media-3 { grid-template-columns: 1fr 1fr 1fr; }
.asoc-media-grid.asoc-media-4 { grid-template-columns: 1fr 1fr; }
.asoc-media-tile { position: relative; overflow: hidden; background: #f1f5f9; aspect-ratio: 1; }
.asoc-media-single .asoc-media-tile { aspect-ratio: 16/9; }
.asoc-media-tile img, .asoc-media-tile video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.asoc-media-audio, .asoc-media-file { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 16px; gap: 8px; text-align: center; }
.asoc-media-file { text-decoration: none; color: var(--asoc-text); }
.asoc-media-file small { color: var(--asoc-primary); }
.asoc-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.asoc-lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 8px; }
.asoc-lightbox button { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.15); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; }

/* ===== الاستطلاعات ===== */
.asoc-load-more { display: block; width: 100%; margin: 12px 0; padding: 10px; border-radius: var(--asoc-radius); background: var(--asoc-card); border: 1px solid var(--asoc-border); color: var(--asoc-primary); font-weight: 600; }
.asoc-load-more:hover { background: rgba(16,185,129,.06); }

/* ===== إعادة النشر ===== */
.asoc-repost-quote { margin: 8px 0; padding: 12px; background: rgba(16,185,129,.04); border-right: 3px solid var(--asoc-primary); border-radius: 8px; }
.asoc-repost-by { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--asoc-muted); margin-bottom: 4px; }
.asoc-quote { font-size: 14px; margin: 4px 0; }

/* ===== التعليقات ===== */
.asoc-comments { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--asoc-border); }
.asoc-comment { display: flex; gap: 8px; margin-bottom: 12px; }
.asoc-comment-body { flex: 1; background: rgba(107,114,128,.06); padding: 8px 12px; border-radius: 12px; }
.asoc-comment-head { font-size: 13px; margin-bottom: 4px; }
.asoc-comment-head strong { cursor: pointer; }
.asoc-comment-head small { color: var(--asoc-muted); margin-right: 6px; }
.asoc-comment-body p { margin: 0; font-size: 14px; line-height: 1.5; }
.asoc-comment-input { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.asoc-comment-input .asoc-avatar { flex: 0 0 32px; width: 32px !important; height: 32px !important; }
.asoc-comment-fields { flex: 1 1 auto; min-width: 0; display: flex; gap: 6px; align-items: center; }
.asoc-comment-fields .asoc-input { flex: 1 1 auto; min-width: 0; width: auto; }
.asoc-comment-fields .asoc-btn { flex: 0 0 auto; white-space: nowrap; word-break: keep-all; }
.asoc-comment .asoc-avatar { flex: 0 0 32px; width: 32px !important; height: 32px !important; }
.asoc-comment-del { float: left; background: none; border: none; opacity: .5; cursor: pointer; font-size: 13px; padding: 0 4px; }
.asoc-comment-del:hover { opacity: 1; }

/* ===== الملف الشخصي ===== */
.asoc-profile { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); overflow: hidden; box-shadow: var(--asoc-shadow); }
.asoc-cover { height: 160px; background: linear-gradient(135deg, #10b981, #14b8a6); background-size: cover; background-position: center; }
/* الغلاف ثم صف الصورة والأزرار (الصورة فقط تتداخل مع الغلاف) ثم بقية البيانات تحتها بترتيب عمودي */
.asoc-profile-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 0 16px; margin-top: -48px; position: relative; z-index: 1; flex-wrap: wrap; }
.asoc-profile-avatar { flex: 0 0 auto; line-height: 0; }
.asoc-profile-avatar .asoc-avatar { border: 4px solid var(--asoc-card); box-sizing: content-box; background: var(--asoc-card); }
.asoc-profile-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding-bottom: 4px; margin-inline-start: auto; }
a.asoc-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.asoc-profile-info { padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.asoc-profile-info h2 { margin: 0; font-size: 22px; line-height: 1.3; overflow-wrap: anywhere; }
.asoc-profile-username { color: var(--asoc-muted); font-size: 14px; direction: ltr; text-align: start; unicode-bidi: plaintext; }
.asoc-bio { margin: 4px 0 0; line-height: 1.7; overflow-wrap: anywhere; }
.asoc-profile-meta { display: flex; gap: 8px 16px; font-size: 13px; color: var(--asoc-muted); margin: 0; flex-wrap: wrap; }
.asoc-profile-meta a { overflow-wrap: anywhere; }
.asoc-profile-links { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.asoc-profile-links a { padding: 4px 10px; background: rgba(16,185,129,.08); border-radius: 12px; font-size: 12px; }
.asoc-profile-stats { display: flex; gap: 8px 20px; flex-wrap: wrap; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--asoc-border); font-size: 14px; }
.asoc-profile-stats strong { color: var(--asoc-primary); font-size: 16px; }
.asoc-profile-tabs { padding: 12px 16px; border-top: 1px solid var(--asoc-border); }
.asoc-profile-tabs h3 { margin: 0; font-size: 16px; }
.asoc-profile-posts { display: flex; flex-direction: column; gap: 12px; padding: 0 12px 12px; }
.asoc-profile-posts .asoc-post { margin: 0; }
@media (max-width: 720px) {
  .asoc-cover { height: 120px; }
  .asoc-profile-top { margin-top: -40px; padding: 0 12px; }
  .asoc-profile-actions { width: 100%; margin-inline-start: 0; padding-bottom: 0; }
  .asoc-profile-info { padding: 10px 12px 14px; }
}
.asoc-notice { padding: 24px; text-align: center; color: var(--asoc-muted); }

/* ===== الرسائل ===== */
.asoc-convs-list { display: flex; flex-direction: column; gap: 6px; }
.asoc-conv-item { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 10px; text-align: right; }
.asoc-conv-item:hover { background: rgba(16,185,129,.04); }
.asoc-conv-info { flex: 1; min-width: 0; }
.asoc-conv-head { display: flex; justify-content: space-between; align-items: center; }
.asoc-conv-head strong { font-size: 14px; }
.asoc-conv-last { font-size: 12px; color: var(--asoc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.asoc-conv-view { display: flex; flex-direction: column; height: calc(100vh - 100px); }
.asoc-conv-head { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 10px 10px 0 0; }
.asoc-back { font-size: 20px; padding: 4px 8px; }
.asoc-conv-messages { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: rgba(248,250,249,.5); border-right: 1px solid var(--asoc-border); border-left: 1px solid var(--asoc-border); }
.asoc-msg { display: flex; gap: 6px; max-width: 75%; }
.asoc-msg.asoc-msg-mine { align-self: flex-start; flex-direction: row-reverse; }
.asoc-msg-bubble { background: var(--asoc-card); border: 1px solid var(--asoc-border); padding: 8px 12px; border-radius: 14px; font-size: 14px; }
.asoc-msg.asoc-msg-mine .asoc-msg-bubble { background: var(--asoc-primary); color: #fff; border-color: var(--asoc-primary); }
.asoc-msg-bubble p { margin: 0 0 4px; }
.asoc-msg-bubble small { font-size: 10px; opacity: .7; }
.asoc-conv-input { display: flex; gap: 6px; padding: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-top: none; border-radius: 0 0 10px 10px; }
.asoc-conv-input input { flex: 1; padding: 10px; border: 1px solid var(--asoc-border); border-radius: 20px; font-size: 14px; }
.asoc-conv-input button { background: var(--asoc-primary); color: #fff; padding: 10px 20px; border-radius: 20px; font-weight: 600; }

/* ===== الإشعارات ===== */
.asoc-notif { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 10px; text-align: right; }
.asoc-notif:hover { background: rgba(16,185,129,.04); }
.asoc-notif.unread { border-color: var(--asoc-primary); background: rgba(16,185,129,.04); }
.asoc-notif-body { flex: 1; }
.asoc-notif-body p { margin: 0; font-size: 14px; }
.asoc-notif-body small { color: var(--asoc-muted); font-size: 12px; }
.asoc-dot { width: 8px; height: 8px; background: var(--asoc-primary); border-radius: 50%; }

/* ===== المجموعات ===== */
.asoc-groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.asoc-group-card { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); overflow: hidden; text-align: right; box-shadow: var(--asoc-shadow); }
.asoc-group-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.asoc-group-cover { height: 80px; background-size: cover; background-position: center; position: relative; }
.asoc-group-vis { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.4); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.asoc-group-body { padding: 12px; }
.asoc-group-body h3 { margin: 0 0 4px; font-size: 16px; }
.asoc-group-body p { margin: 0 0 8px; font-size: 13px; color: var(--asoc-muted); line-height: 1.4; }
.asoc-group-body small { color: var(--asoc-muted); }
.asoc-group-detail { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); overflow: hidden; }
.asoc-group-detail-cover { height: 140px; background-size: cover; background-position: center; }
.asoc-group-detail-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px; gap: 12px; }
.asoc-group-detail-head h2 { margin: 0 0 4px; }
.asoc-group-meta { font-size: 13px; color: var(--asoc-muted); margin-top: 6px; }
.asoc-group-tabs { display: flex; gap: 4px; padding: 0 16px; border-top: 1px solid var(--asoc-border); }
.asoc-group-tabs button { padding: 12px 16px; border-bottom: 2px solid transparent; font-weight: 600; color: var(--asoc-muted); }
.asoc-group-tabs button.active { color: var(--asoc-primary); border-color: var(--asoc-primary); }

/* ===== الاستكشاف ===== */
.asoc-search-box { margin-bottom: 12px; }
.asoc-input { width: 100%; padding: 10px 14px; border: 1px solid var(--asoc-border); border-radius: 8px; font-size: 14px; background: var(--asoc-card); color: var(--asoc-text); }
.asoc-input:focus { outline: none; border-color: var(--asoc-primary); box-shadow: 0 0 0 2px rgba(16,185,129,.15); }
.asoc-input-sm { width: auto; padding: 4px 8px; }
.asoc-trending-list { display: flex; flex-direction: column; gap: 6px; }
.asoc-trending-item { display: flex; justify-content: space-between; padding: 6px 8px; border-radius: 6px; font-size: 14px; }
.asoc-trending-item:hover { background: rgba(16,185,129,.06); }
.asoc-trending-item small { color: var(--asoc-muted); }
.asoc-trending-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.asoc-trending-card { padding: 12px; background: rgba(16,185,129,.06); border-radius: 8px; text-align: right; }
.asoc-trending-card small { display: block; color: var(--asoc-muted); margin-top: 2px; }
.asoc-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.asoc-member-card { display: flex; align-items: center; gap: 8px; padding: 10px; background: rgba(16,185,129,.04); border-radius: 8px; text-align: right; }
.asoc-member-card div { display: flex; flex-direction: column; }
.asoc-member-card strong { font-size: 13px; }
.asoc-member-card span { font-size: 11px; color: var(--asoc-muted); }

/* ===== الإدارة ===== */
.asoc-admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 12px; }
.asoc-stat-card { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 8px; padding: 12px; text-align: center; }
.asoc-stat-card strong { display: block; font-size: 22px; color: var(--asoc-primary); }
.asoc-stat-card small { color: var(--asoc-muted); font-size: 12px; }
.asoc-report-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; border: 1px solid var(--asoc-border); border-radius: 8px; margin-bottom: 6px; gap: 8px; }
.asoc-report-item small { color: var(--asoc-muted); }
.asoc-user-admin-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-bottom: 1px solid var(--asoc-border); }
.asoc-user-admin-row > div:nth-child(2) { flex: 1; }
.asoc-user-admin-row > div:last-child { display: flex; gap: 4px; }
.asoc-banned { background: #ef4444; color: #fff; }

/* ===== النوافذ المنبثقة ===== */
.asoc-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.asoc-modal { background: var(--asoc-card); border-radius: var(--asoc-radius); width: 100%; max-width: 560px; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; }
.asoc-modal-sm { max-width: 420px; }
.asoc-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--asoc-border); }
.asoc-modal-head h3 { margin: 0; }
.asoc-modal-close { width: 32px; height: 32px; border-radius: 50%; background: rgba(107,114,128,.1); font-size: 16px; }
.asoc-modal-close:hover { background: rgba(107,114,128,.2); }
.asoc-modal-body { padding: 16px; overflow-y: auto; flex: 1; }
.asoc-modal-body label { display: block; margin: 8px 0 4px; font-size: 13px; font-weight: 600; }
.asoc-modal-body label:not(:first-child) { margin-top: 12px; }
.asoc-modal-foot { padding: 16px; border-top: 1px solid var(--asoc-border); display: flex; justify-content: flex-end; gap: 8px; }

/* قائمة منبثقة للمنشور */
.asoc-menu-pop { position: fixed; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 8px; padding: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.12); z-index: 1500; top: 60px; right: 16px; min-width: 180px; }
.asoc-menu-pop button { display: block; width: 100%; padding: 8px 12px; text-align: right; border-radius: 6px; font-size: 14px; }
.asoc-menu-pop button:hover { background: rgba(16,185,129,.06); }
.asoc-menu-pop button.danger { color: #ef4444; }

/* محادثة جديدة */
.asoc-nc-list { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; max-height: 200px; overflow-y: auto; }
.asoc-nc-item { display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 6px; text-align: right; }
.asoc-nc-item:hover { background: rgba(16,185,129,.06); }
.asoc-nc-item div { display: flex; flex-direction: column; }
.asoc-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(16,185,129,.12); color: var(--asoc-primary); padding: 4px 10px; border-radius: 12px; font-size: 12px; margin: 2px; }
.asoc-chip button { color: #ef4444; font-weight: bold; }

/* ===== الشريط الجانبي الأيمن ===== */
.asoc-rail { display: flex; flex-direction: column; gap: 12px; }

/* ===== التوست ===== */
#asoc-toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.asoc-toast { padding: 10px 20px; border-radius: 8px; font-size: 14px; color: #fff; opacity: 0; transform: translateY(-10px); transition: all .3s; box-shadow: 0 4px 12px rgba(0,0,0,.2); }
.asoc-toast.show { opacity: 1; transform: translateY(0); }
.asoc-toast-info { background: #3b82f6; }
.asoc-toast-success { background: var(--asoc-primary); }
.asoc-toast-error { background: #ef4444; }

/* ===== شاشة الدخول ===== */
.asoc-login { display: flex; align-items: center; justify-content: center; min-height: 60vh; padding: 24px; }
.asoc-login-card { background: var(--asoc-card); padding: 32px; border-radius: var(--asoc-radius); text-align: center; box-shadow: var(--asoc-shadow); max-width: 400px; }
.asoc-login-card h3 { margin: 0 0 8px; color: var(--asoc-primary); }
.asoc-login-card .asoc-sub { color: var(--asoc-muted); margin: 0 0 20px; }
.asoc-login-card .asoc-btn { margin: 4px; }

/* ===== شريط التمرير ===== */
.scrollbar-as { scrollbar-width: thin; scrollbar-color: rgba(16,185,129,.4) transparent; }
.scrollbar-as::-webkit-scrollbar { width: 6px; }
.scrollbar-as::-webkit-scrollbar-track { background: transparent; }
.scrollbar-as::-webkit-scrollbar-thumb { background-color: rgba(16,185,129,.3); border-radius: 3px; }

/* ===== تحسينات RTL ===== */
#asoc-app[dir="rtl"] .asoc-react-wrap { text-align: right; }
#asoc-app[dir="rtl"] .asoc-msg.asoc-msg-mine { align-self: flex-start; }

/* ===== الوضع الداكن (اختياري عبر فلتر wp) ===== */
body.asoc-dark #asoc-app {
  --asoc-bg: #0f1419;
  --asoc-card: #1a1f2e;
  --asoc-border: #2d3748;
  --asoc-text: #e2e8f0;
  --asoc-muted: #a0aec0;
}

/* ===== v2.0.2: التوافق مع الثيمات الحديثة (Block Themes) =====
   هذه الثيمات تحصر محتوى الصفحة في عرض ضيق (~600px)، فكانت الأعمدة الثلاثة تنضغط وتتداخل.
   الحل: نُخرج الشبكة من الحاوية الضيقة لتأخذ عرض الشاشة، ونمنع تمدد أي عنصر داخلها. */
#asoc-app {
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw) !important;
  box-sizing: border-box;
  overflow-x: clip;
}
#asoc-app .asoc-layout { width: 100%; max-width: 1200px; margin-inline: auto; align-items: start; }
#asoc-app .asoc-layout > * { min-width: 0; max-width: 100%; margin: 0; }
#asoc-app .asoc-main, #asoc-app .asoc-view { min-width: 0; width: 100%; }
#asoc-app .asoc-post, #asoc-app .asoc-card, #asoc-app .asoc-composer { max-width: 100%; overflow-wrap: anywhere; }
#asoc-app .asoc-sidebar { position: sticky; top: 16px; align-self: start; }
#asoc-app img, #asoc-app video { max-width: 100%; }

/* مساحة النشر */
#asoc-app .asoc-composer { padding: 16px; }
#asoc-app .asoc-composer-trigger { min-height: 56px; font-size: 16px; }
#asoc-app .asoc-modal { max-width: 680px; max-height: 92vh; }
#asoc-app .asoc-composer-full { width: 100%; }
#asoc-app .asoc-composer-full textarea {
  width: 100%; min-height: 170px; font-size: 17px; line-height: 1.7; padding: 12px;
  border: 1px solid var(--asoc-border); border-radius: 10px; resize: vertical; background: var(--asoc-card); color: var(--asoc-text);
}
#asoc-app .asoc-composer-full textarea:focus { border-color: var(--asoc-primary); box-shadow: 0 0 0 2px rgba(16,185,129,.15); outline: none; }
#asoc-app .asoc-modal-overlay { z-index: 100000; }
#asoc-app .asoc-menu-pop { z-index: 100001; }

@media (max-width: 1024px) {
  #asoc-app .asoc-layout { grid-template-columns: 220px minmax(0, 1fr); }
}



/* ===== v2.0.3: شارات المشرفين وصلاحياتهم ===== */
.asoc-role { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-inline: 4px; vertical-align: middle; white-space: nowrap; }
.asoc-role-admin { background: rgba(234,179,8,.18); color: #a16207; }
.asoc-role-moderator { background: rgba(16,185,129,.15); color: var(--asoc-primary-d, #047857); }
.asoc-perm-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--asoc-border); cursor: pointer; }
.asoc-perm-row input { width: 18px; height: 18px; flex: 0 0 18px; }
.asoc-perm-list { display: flex; flex-wrap: wrap; gap: 6px; }
.asoc-perm-chip { padding: 4px 10px; border-radius: 999px; background: rgba(107,114,128,.12); font-size: 13px; }
.asoc-perm-chip.on { background: rgba(16,185,129,.15); color: var(--asoc-primary-d, #047857); }
.asoc-admin-search { display: flex; gap: 6px; margin-bottom: 10px; }
.asoc-admin-search .asoc-input { flex: 1; min-width: 0; }
.asoc-user-admin-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--asoc-border); }
.asoc-user-admin-info { flex: 1 1 140px; min-width: 0; }
.asoc-row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.asoc-report-item { display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--asoc-border); }
.asoc-nav button { position: relative; }
.asoc-nav .asoc-ni { margin-inline-end: 8px; }

/* ===== v2.0.3: واجهة الجوال (شريط تبويب سفلي بدل القائمة العلوية الطويلة) ===== */
@media (max-width: 720px) {
  #asoc-app .asoc-layout { display: block; padding: 8px 8px calc(78px + env(safe-area-inset-bottom, 0px)); min-height: 0; }
  #asoc-app .asoc-main, #asoc-app .asoc-view { width: 100%; }

  /* الشريط السفلي */
  #asoc-app .asoc-sidebar {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 99990;
    display: flex; flex-direction: row; align-items: stretch; gap: 0;
    padding: 0 0 env(safe-area-inset-bottom, 0px); margin: 0;
    background: var(--asoc-card); border-top: 1px solid var(--asoc-border);
    box-shadow: 0 -2px 12px rgba(0,0,0,.08); max-width: 100vw; overflow: visible;
  }
  #asoc-app .asoc-sidebar .asoc-logo, #asoc-app .asoc-sidebar .asoc-me { display: none; }
  #asoc-app .asoc-sidebar .asoc-nav { display: flex; flex-direction: row; flex: 1; gap: 0; width: 100%; }
  #asoc-app .asoc-sidebar .asoc-nav button {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 2px 6px; border-radius: 0; background: none; color: var(--asoc-muted); font-size: 10px; line-height: 1.2; white-space: nowrap;
  }
  #asoc-app .asoc-sidebar .asoc-nav button .asoc-ni { margin: 0; font-size: 20px; line-height: 1; }
  #asoc-app .asoc-sidebar .asoc-nav button .asoc-nl { font-size: 10px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  #asoc-app .asoc-sidebar .asoc-nav button.active { background: none; color: var(--asoc-primary); font-weight: 700; box-shadow: inset 0 2px 0 var(--asoc-primary); }
  #asoc-app .asoc-sidebar .asoc-nav button .asoc-badge { position: absolute; top: 2px; inset-inline-end: 18%; min-width: 16px; height: 16px; line-height: 16px; padding: 0 4px; font-size: 10px; }

  /* زر النشر عائم */
  #asoc-app .asoc-sidebar .asoc-compose-btn {
    position: fixed; inset-inline-start: 14px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 99991;
    width: 52px; height: 52px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(16,185,129,.45); font-size: 22px;
  }
  #asoc-app .asoc-sidebar .asoc-compose-btn .asoc-ct { display: none; }

  /* المحتوى */
  #asoc-app .asoc-rail { display: none; }
  #asoc-app .asoc-post, #asoc-app .asoc-card, #asoc-app .asoc-composer { border-radius: 12px; }
  #asoc-app .asoc-post { padding: 12px; }
  #asoc-app .asoc-post-actions { flex-wrap: wrap; }
  #asoc-app .asoc-modal-overlay { padding: 0; align-items: flex-end; }
  #asoc-app .asoc-modal { max-width: 100%; max-height: 95vh; border-radius: 16px 16px 0 0; }
  #asoc-app .asoc-composer-full textarea { min-height: 140px; }
  #asoc-app .asoc-admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


/* ===== v2.0.4: فلتر الكلمات وإدارة المجموعة ===== */
.asoc-rules-add { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.asoc-rules-add .asoc-input { flex: 1 1 140px; min-width: 0; width: auto; }
.asoc-rules-add select.asoc-input { flex: 1 1 170px; }
.asoc-rules-add .asoc-btn { flex: 0 0 auto; white-space: nowrap; }
.asoc-rule-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--asoc-border); }
.asoc-rule-row strong { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.asoc-rule-act { font-size: 12px; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: rgba(107,114,128,.12); }
.asoc-rule-notify { background: rgba(234,179,8,.18); color: #a16207; }
.asoc-rule-delete { background: rgba(239,68,68,.15); color: #b91c1c; }
.asoc-rule-mask { background: rgba(107,114,128,.15); }
.asoc-modal-body .asoc-user-admin-row:last-child { border-bottom: none; }


/* ===== v2.0.5: لوحة الإدارة بالأيقونات + النشر المجهول ===== */
.asoc-admin-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.asoc-tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 112px; padding: 14px 8px; border-radius: 14px; background: var(--asoc-card); border: 1px solid var(--asoc-border);
  cursor: pointer; text-align: center; transition: transform .12s, box-shadow .12s, border-color .12s; }
.asoc-tile:hover { transform: translateY(-2px); border-color: var(--asoc-primary); box-shadow: 0 4px 14px rgba(16,185,129,.15); }
.asoc-tile-icon { font-size: 34px; line-height: 1; }
.asoc-tile-label { font-weight: 700; font-size: 14px; }
.asoc-tile small { color: var(--asoc-muted); font-size: 12px; }
.asoc-tile-badge { position: absolute; top: 8px; inset-inline-end: 8px; }
.asoc-admin-sechead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.asoc-admin-sechead h3 { margin: 0; font-size: 17px; }
@media (max-width: 720px) { .asoc-admin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .asoc-tile { min-height: 100px; } }

.asoc-anon-avatar { background: rgba(107,114,128,.18) !important; color: var(--asoc-muted); display: inline-flex; align-items: center; justify-content: center; }
.asoc-role-anon { background: rgba(107,114,128,.15); color: var(--asoc-muted); }
.asoc-anon-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; padding: 8px 10px; border-radius: 10px; background: rgba(107,114,128,.08); cursor: pointer; font-size: 14px; }
.asoc-anon-row input { width: 18px; height: 18px; flex: 0 0 18px; }
.asoc-anon-row small { flex: 1 1 100%; color: var(--asoc-muted); font-size: 12px; }
.asoc-anon-btn { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--asoc-border); background: var(--asoc-card); font-size: 16px; cursor: pointer; opacity: .6; }
.asoc-anon-btn.on { opacity: 1; background: rgba(16,185,129,.15); border-color: var(--asoc-primary); }


/* ===== v2.0.9: الإعلانات ===== */
.asoc-ad { position: relative; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 14px; margin: 12px 0; overflow: hidden; }
.asoc-groups-grid .asoc-ad { grid-column: 1 / -1; margin: 0; }
.asoc-ad-label { position: absolute; top: 8px; inset-inline-start: 8px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.asoc-ad-img { position: relative; }
.asoc-ad-label-flow { position: static; display: inline-block; margin: 10px 14px 0; background: rgba(107,114,128,.15); color: var(--asoc-muted); }
.asoc-ad-img img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.asoc-ad-body { padding: 12px 14px 14px; }
.asoc-ad-body h4 { margin: 0 0 6px; font-size: 16px; }
.asoc-ad-body h4 a { color: inherit; text-decoration: none; }
.asoc-ad-body p { margin: 0 0 10px; color: var(--asoc-muted); font-size: 14px; line-height: 1.7; }
.asoc-ad-btn { display: inline-block; text-decoration: none; }

/* ===== v2.1.0: اكتشف وأضف أصدقاء + وضع الزائر ===== */
.asoc-people-list { display: flex; flex-direction: column; gap: 8px; }
.asoc-person { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; background: rgba(16,185,129,.04); border-radius: 10px; }
.asoc-person-main { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; background: none; border: none; padding: 0; cursor: pointer; text-align: start; color: inherit; font: inherit; }
.asoc-person-name { display: flex; flex-direction: column; min-width: 0; }
.asoc-person-name strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.asoc-person-name span { font-size: 12px; color: var(--asoc-muted); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; }
.asoc-person-actions { display: flex; gap: 6px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.asoc-person-actions .asoc-btn { white-space: nowrap; }
.asoc-guest-box { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: var(--asoc-radius); font-size: 13px; color: var(--asoc-muted); }
.asoc-guest-box p { margin: 0; }
.asoc-composer-guest { justify-content: space-between; flex-wrap: wrap; font-size: 14px; }
.asoc-composer-guest-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.asoc-lp-foot { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 720px) {
  #asoc-app .asoc-guest-box { display: none; }
  .asoc-person { padding: 8px; }
}

/* ===== v2.1.2: زر تسجيل الخروج ===== */
.asoc-logout-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 10px; background: transparent; color: #ef4444; font-size: 14px; font-weight: 600; border: 1px solid transparent; cursor: pointer; text-align: start; }
.asoc-logout-btn:hover { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.25); }
.asoc-logout-btn .asoc-ni { margin-inline-end: 0; }
.asoc-btn-logout { color: #ef4444; }
@media (max-width: 720px) {
  #asoc-app .asoc-sidebar .asoc-logout-btn { display: none; }
}

/* ===== v2.2.0: خيار «كلمة كاملة» في الفلتر وحقول الروابط الاجتماعية ===== */
.asoc-rule-whole { flex: 1 1 100%; font-size: 13px; color: var(--asoc-muted); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.asoc-sl-row { display: flex; gap: 6px; margin-bottom: 6px; }
.asoc-sl-row .asoc-input { flex: 1 1 0; min-width: 0; width: auto; }

/* ===== تعديل المنشور والتعليق والرسائل ===== */
.asoc-edited { font-size: 11px; color: var(--asoc-muted); font-style: italic; }
.asoc-comment-edit { float: left; background: none; border: none; opacity: .5; cursor: pointer; font-size: 13px; padding: 0 4px; }
.asoc-comment-edit:hover { opacity: 1; }
.asoc-edit-box { margin: 4px 0; }
.asoc-edit-box textarea { width: 100%; box-sizing: border-box; resize: vertical; font-size: 14px; color: #222; background: #fff; }
.asoc-edit-actions { display: flex; gap: 6px; margin-top: 6px; justify-content: flex-end; }
.asoc-msg-edit { background: none; border: none; opacity: .6; cursor: pointer; font-size: 11px; padding: 0 4px; color: inherit; }
.asoc-msg-edit:hover { opacity: 1; }

/* ===== حذف الرسائل والرسائل الصوتية ===== */
.asoc-mic-btn { background: var(--asoc-card) !important; color: inherit !important; border: 1px solid var(--asoc-border) !important; padding: 8px 12px !important; font-size: 16px; }
.asoc-rec-bar { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-top: none; border-radius: 0 0 10px 10px; }
.asoc-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #ef4444; animation: asocRec 1s infinite; }
@keyframes asocRec { 50% { opacity: .25; } }
#asoc-rec-time { flex: 1; font-variant-numeric: tabular-nums; }
.asoc-msg-bubble audio { max-width: 100%; height: 36px; }

/* ===== الخصوصية وقفل الحساب ===== */
.asoc-privacy-card { background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 12px; padding: 16px; }
.asoc-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; }
.asoc-switch-row small { display: block; margin-top: 6px; color: var(--asoc-muted); line-height: 1.7; font-size: 13px; }
.asoc-switch-row input[type=checkbox] { width: 44px; height: 24px; flex: none; accent-color: var(--asoc-primary); cursor: pointer; }

.asoc-switch-sep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--asoc-border); }

/* ===== مراجعة المحتوى المُخفى بنجوم ===== */
.asoc-flag-banner { margin: 8px 0; padding: 10px 12px; border: 1px dashed #f59e0b; background: rgba(245,158,11,.1); border-radius: 10px; font-size: 13px; }
.asoc-flag-box { margin: 6px 0; padding: 8px 10px; background: var(--asoc-card); border: 1px solid var(--asoc-border); border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
.asoc-flag-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.asoc-btn-danger { background: #ef4444; color: #fff; }

/* ===== الدخول / حساب جديد / استعادة كلمة السر (خلفية خاصة بالإضافة، غير صفحة دخول ووردبريس) ===== */
.asoc-auth { --au1: #0f766e; --au2: #10b981; --au3: #34d399; }
.asoc-auth[data-view="register"] { --au1: #4338ca; --au2: #7c3aed; --au3: #ec4899; }
.asoc-auth[data-view="forgot"], .asoc-auth[data-view="reset"] { --au1: #0369a1; --au2: #0ea5e9; --au3: #22d3ee; }
.asoc-auth-gate { position: relative; overflow: hidden; min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; border-radius: var(--asoc-radius);
  background: linear-gradient(135deg, var(--au1), var(--au2) 55%, var(--au3)); transition: background .4s; }
.asoc-auth-gate::before, .asoc-auth-gate::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); pointer-events: none; }
.asoc-auth-gate::before { width: 380px; height: 380px; top: -140px; inset-inline-start: -120px; }
.asoc-auth-gate::after { width: 300px; height: 300px; bottom: -120px; inset-inline-end: -90px; }
.asoc-auth-card { position: relative; z-index: 1; width: 100%; max-width: 420px; background: var(--asoc-card); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.asoc-auth-hero { position: relative; text-align: center; color: #fff; padding: 24px 20px 20px; background: linear-gradient(135deg, var(--au1), var(--au2) 60%, var(--au3)); }
.asoc-auth-logo { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 16px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.asoc-auth-hero h2 { margin: 0; font-size: 20px; color: #fff; }
.asoc-auth-hero p { margin: 4px 0 0; font-size: 14px; opacity: .92; }
.asoc-auth-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; font-size: 15px; cursor: pointer; }
.asoc-auth-body { padding: 18px 20px 22px; }
.asoc-auth-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; background: var(--asoc-bg); border: 1px solid var(--asoc-border); border-radius: 12px; }
.asoc-auth-tabs button { flex: 1; border: 0; padding: 9px 8px; border-radius: 9px; background: transparent; font: inherit; font-weight: 600; color: var(--asoc-muted); cursor: pointer; }
.asoc-auth-tabs button.active { background: linear-gradient(135deg, var(--au1), var(--au2)); color: #fff; }
.asoc-auth-form { display: flex; flex-direction: column; gap: 12px; }
.asoc-auth-field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.asoc-auth-pw { position: relative; display: block; }
.asoc-auth-pw .asoc-input { padding-inline-end: 42px; }
.asoc-auth-eye { position: absolute; top: 50%; inset-inline-end: 8px; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; font-size: 16px; padding: 4px; }
.asoc-auth-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.asoc-auth-chk { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.asoc-auth-row a, .asoc-auth-links a { color: var(--au2); font-weight: 600; }
.asoc-auth-links { text-align: center; font-size: 13px; }
.asoc-auth-help { margin: 0; font-size: 13px; color: var(--asoc-muted); }
.asoc-auth-submit { width: 100%; padding: 11px; font-size: 15px; border: 0; background: linear-gradient(135deg, var(--au1), var(--au2)) !important; color: #fff !important; }
.asoc-auth-submit[disabled] { opacity: .65; cursor: wait; }
.asoc-auth-err { margin-bottom: 10px; padding: 9px 12px; border-radius: 8px; background: #fef2f2; color: #b91c1c; font-size: 13px; }
.asoc-auth-err[hidden] { display: none; }
.asoc-auth-note { margin-bottom: 10px; padding: 9px 12px; border-radius: 8px; background: #ecfdf5; color: #047857; font-size: 13px; }
.asoc-auth-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.asoc-auth-modal { width: 100%; max-width: 420px; max-height: 94vh; overflow: auto; border-radius: 18px; }
#asoc-app .asoc-auth-overlay { align-items: center; padding: 16px; }
.asoc-auth-modal .asoc-auth-card { box-shadow: none; }
@media (max-width: 480px) { .asoc-auth-gate { padding: 16px 8px; min-height: 70vh; } }
#jp-post-flair{padding-top:.5em}div.sharedaddy,#content div.sharedaddy,#main div.sharedaddy{clear:both}div.sharedaddy h3.sd-title{margin:0 0 1em 0;display:inline-block;line-height:1.2;font-size:9pt;font-weight:700}div.sharedaddy h3.sd-title::before{content:"";display:block;width:100%;min-width:30px;border-top:1px solid #dcdcde;margin-bottom:1em}div.jetpack-likes-widget-wrapper{width:100%;min-height:50px;position:relative}div.jetpack-likes-widget-wrapper .sd-link-color{font-size:12px}div.jetpack-comment-likes-widget-wrapper{width:100%;position:relative;min-height:31px}div.jetpack-comment-likes-widget-wrapper iframe{margin-bottom:0}#likes-other-gravatars{display:none;position:absolute;padding:9px 12px 10px 12px;background-color:#fff;border:solid 1px #dcdcde;border-radius:4px;box-shadow:none;min-width:220px;max-height:240px;height:auto;overflow:auto;z-index:1000}#likes-other-gravatars *{line-height:normal}#likes-other-gravatars .likes-text{color:#101517;font-size:12px;font-weight:500;padding-bottom:8px}#likes-other-gravatars ul,#likes-other-gravatars li{margin:0;padding:0;text-indent:0;list-style-type:none}#likes-other-gravatars li::before{content:""}#likes-other-gravatars ul.wpl-avatars{overflow:auto;display:block;max-height:190px}#likes-other-gravatars ul.wpl-avatars li{width:196px;height:28px;float:none;margin:0 0 4px 0}#likes-other-gravatars ul.wpl-avatars li a{margin:0 2px 0 0;border-bottom:none!important;display:flex;align-items:center;gap:8px;text-decoration:none}#likes-other-gravatars ul.wpl-avatars li a span{font-size:12px;color:#2c3338;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#likes-other-gravatars ul.wpl-avatars li a img{background:none;border:none;border-radius:50%;margin:0!important;padding:1px!important;position:static;box-sizing:border-box}div.sd-box{border-top:1px solid #dcdcde;border-top:1px solid rgb(0 0 0 / .13)}.jetpack-likes-widget-unloaded .likes-widget-placeholder,.jetpack-likes-widget-loading .likes-widget-placeholder,.jetpack-likes-widget-loaded iframe{display:block}.jetpack-likes-widget-loaded .likes-widget-placeholder,.jetpack-likes-widget-unloaded iframe,.jetpack-likes-widget-loading iframe{display:none}.entry-content .post-likes-widget,.post-likes-widget,.comment-likes-widget{margin:0;border-width:0}.post-likes-widget-placeholder,.comment-likes-widget-placeholder{margin:0;border-width:0;position:relative}.comment-likes-widget-placeholder{height:18px;position:absolute;display:flex;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif}.comment-likes-widget-placeholder::before{color:#2ea2cc;width:16px;height:16px;content:"";display:inline-block;position:relative;top:3px;padding-right:5px;background-repeat:no-repeat;background-size:16px 16px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='0' fill='none' width='24' height='24'/%3E%3Cg%3E%3Cpath fill='%232EA2CC' d='M12 2l2.582 6.953L22 9.257l-5.822 4.602L18.18 21 12 16.89 5.82 21l2.002-7.14L2 9.256l7.418-.304'/%3E%3C/g%3E%3C/svg%3E")}.post-likes-widget-placeholder .button{display:none}.post-likes-widget-placeholder .loading,.comment-likes-widget-placeholder .loading{color:#999;font-size:12px}.comment-likes-widget-placeholder .loading{padding-left:5px;margin-top:4px;align-self:center;color:#4e4e4e}div.sharedaddy.sd-like-enabled .sd-like h3{display:none}div.sharedaddy.sd-like-enabled .sd-like .post-likes-widget{width:100%;float:none;position:absolute;top:0}.comment-likes-widget{width:100%}.pd-rating,.cs-rating{display:block!important}.sd-gplus .sd-title{display:none}@media print{.jetpack-likes-widget-wrapper{display:none}}