/* ============ المتغيرات ============ */
:root {
  --bg: #121212;
  --bg-2: #1b1b1f;
  --side: rgb(55, 55, 55);
  --mod: rgb(18, 52, 86);
  --owner: #c1121f;
  --room-red: rgb(170, 7, 7);
  --nav: rgb(248, 249, 250);
  --nav-h: 68px;
  --side-w: 400px;
  --text: rgb(33, 37, 41);
  --font: 'Google Sans', 'Segoe UI', -apple-system, 'Cairo', Tahoma, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background-image: linear-gradient(to bottom, #6315B7, #4E1068, #001D94);
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
  padding-top: var(--nav-h);
  overflow: hidden;
}
body.session-checking { overflow: hidden; }
#sessionLoader { display: none; }
body.session-checking #sessionLoader { position: fixed; inset: 0; z-index: 3000; display: grid; place-content: center; justify-items: center; gap: 16px;
  background-image: linear-gradient(to bottom, #6315B7, #4E1068, #001D94); }
.session-loader-mark { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(255,255,255,.7); border-radius: 20px;
  background: linear-gradient(135deg, #284880, #5b00c6); color: #fff; font-size: 30px; box-shadow: 0 8px 28px rgba(15,0,70,.35); }
.session-spinner { width: 26px; height: 26px; border: 3px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sessionSpin .8s linear infinite; }
@keyframes sessionSpin { to { transform: rotate(360deg); } }
.d-none { display: none !important; }

/* ============ الشريط العلوي ============ */
.navbar_da {
  position: fixed; top: 0; right: 0; left: 0; z-index: 1030;
  height: var(--nav-h);
  background-image: linear-gradient(to right bottom, #5d65c5, #123291);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 10px;
}
.navbar_da.d-none { display: none !important; }
.nb-start, .nb-end { display: flex; align-items: center; gap: 9px; }
.active-mic-user { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 38px; height: 54px; padding: 0; border: 0; color: #fff; background: transparent; }
.active-mic-user img { width: 34px; height: 34px; flex: 0 0 34px; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.active-mic-user .voice-wave { height: 9px; }
.active-mic-info { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.active-mic-info strong { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.voice-wave { display: flex; align-items: center; gap: 2px; height: 12px; }
.voice-wave i { display: block; width: 2px; height: 4px; border-radius: 2px; background: #8fe8ff; animation: voice-wave-idle 1s ease-in-out infinite alternate; }
.voice-wave i:nth-child(2), .voice-wave i:nth-child(6) { animation-delay: .15s; height: 8px; }
.voice-wave i:nth-child(3), .voice-wave i:nth-child(5) { animation-delay: .3s; height: 11px; }
.voice-wave i:nth-child(4) { animation-delay: .45s; height: 6px; }
@keyframes voice-wave-idle { from { transform: scaleY(.45); opacity: .55; } to { transform: scaleY(1); opacity: 1; } }
.mic-option { position: relative; display: grid; place-items: center; min-width: 0; }
.mic-option > i { transition: opacity .2s; }
.mic-option.is-selected > i { opacity: .22; }
.mic-option-user { position: absolute; inset: 3px; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #fff; direction: rtl; }
.mic-option-user img { width: 42px; height: 42px; border: 0; border-radius: 4px; object-fit: cover; }
.mic-option-user strong { max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; line-height: 1.1; }
.mic-option-close { position: absolute; top: -1px; right: -1px; z-index: 3; display: grid; width: 21px; height: 21px; place-items: center; padding: 0; border: 0; border-radius: 50%; color: #fff; background: transparent; font-size: 21px; line-height: 1; }
.nb-end { gap: 3px; }
.nb-item { position: relative; }
.nb-btn {
  position: relative; border: 0; background: transparent; color: #fff;
  width: 48px; height: 48px; border-radius: 12px; font-size: 1.7rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s, color .15s;
}
.nb-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.nb-leave-btn { width: 58px; min-width: 58px; height: 64px; padding: 3px; flex-direction: column; gap: 1px; border-radius: 10px; font-size: 10px; line-height: 1.1; }
.nb-leave-btn i { font-size: 1.35rem; }
.nb-avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 0; }
.nb-account-btn { width: 58px; height: 64px; padding: 2px; flex-direction: column; gap: 0; font-size: 11px; line-height: 1.1; }
.nb-account-btn .nb-avatar { flex: 0 0 38px; width: 38px; height: 38px; }
.nb-badge {
  position: absolute; top: 2px; left: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #dc3545; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nb-panel {
  position: fixed; top: calc(var(--nav-h) + 4px); left: 8px; z-index: 1040;
  width: min(340px, calc(100vw - 16px)); max-height: 70vh; overflow-y: auto;
  background: #fff; color: var(--text); border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35); border: 1px solid #dee2e6;
}
.nb-panel .empty { padding: 20px; text-align: center; color: #6c757d; }
.pm-row, .nt-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #eee; cursor: pointer; }
.pm-row:hover { background: #f1f3f5; }
.pm-row img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.pm-row .nm { font-weight: 700; font-size: .95rem; }
.pm-row .ls { font-size: .8rem; color: #6c757d; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.pm-row .un { margin-right: auto; background: #dc3545; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.nt-row { cursor: default; font-size: .9rem; }
.nt-row.unread { background: #e7f1ff; }
.nt-row small { color: #6c757d; display: block; }
.acc-head { display: flex; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid #eee; }
.acc-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.acc-name { font-weight: 700; }
.acc-rank { font-size: .85rem; color: #6c757d; }
.acc-id { font-size: .8rem; color: #6c757d; }
.acc-btn { display: block; width: 100%; text-align: right; border: 0; background: none; padding: 11px 14px; font-size: .95rem; }
.acc-btn:hover { background: #f1f3f5; }
.acc-btn i { width: 22px; }

/* ============ الشاشات ============ */
.screen { position: fixed; top: var(--nav-h); right: 0; bottom: 0; left: 0; overflow-y: auto; }
#loginScreen { top: 0; display: flex; align-items: center; justify-content: center; padding: 88px 16px 28px;
  background: transparent; }
#roomsScreen { background-image: radial-gradient(rgb(162, 57, 130), rgb(31, 16, 19)); }
#chatNewsBar { position: fixed; right: 0; bottom: 58px; left: 0; z-index: 1099; display: flex; align-items: center; min-height: 58px; padding: 5px 14px 5px 70px; color: #fff; background-image: linear-gradient(to right bottom, rgb(93, 101, 197), rgb(18, 50, 145)); direction: rtl; box-shadow: 0 -4px 12px rgba(0,0,0,.22); }
.chat-news-brand { position: absolute; top: 5px; left: 0; display: grid; width: 48px; height: 48px; place-items: center; border: 3px solid transparent; border-radius: 50%; color: #fff; background: linear-gradient(#4f0875,#4f0875) padding-box, conic-gradient(#feda75,#fa7e1e,#d62976,#962fbf,#4f5bd5,#feda75) border-box; box-shadow: 0 0 10px rgba(214,41,118,.65); font-size: 21px; }
.chat-news-content { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 1px; overflow: hidden; direction: rtl; text-align: right; }
.chat-news-content strong { font-size: 16px; font-weight: 900; }
.chat-news-content strong i { margin-left: 5px; color: #ffe39a; }
.chat-news-ticker { display: block; overflow: hidden; width: 100%; color: rgba(255,255,255,.86); font-size: 12px; white-space: nowrap; }
.chat-news-ticker span { display: inline-block; animation: chat-news-appear 3.8s ease-in-out infinite; }
@keyframes chat-news-appear { 0%, 18% { opacity: 0; transform: translateY(7px); filter: blur(3px); } 38%, 72% { opacity: 1; transform: translateY(0); filter: blur(0); } 92%, 100% { opacity: 0; transform: translateY(-4px); filter: blur(2px); } }
#roomsScreen > .container-xxl { min-height: 100%; display: flex; flex-direction: column; padding-right: 0 !important; padding-left: 0 !important; }
#roomsScreen > .container-xxl.py-4 { padding-top: 0 !important; padding-bottom: 0 !important; }
#roomsScreen .rooms-grid { padding-top: 0; padding-bottom: 122px; }
.landing-nav { position: absolute; top: 18px; right: 22px; left: 22px; display: flex; justify-content: flex-start; gap: 10px; flex-wrap: wrap; }
.landing-nav .button { display: inline-block; padding: 10px 12px; text-align: right; text-decoration: none;
  background-color: #007bff; color: #fff; border: 0; border-radius: 5px;
  font-family: Arial, sans-serif; font-size: 16px; font-weight: 700; transition: background .18s, transform .18s; }
.landing-nav .button:hover { background-color: #0868d1; color: #fff; transform: translateY(-1px); }
.online-counter { position: absolute; top: 18px; left: 22px; display: flex; align-items: center; gap: 7px; padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 9px; background: rgba(20,12,45,.38); color: #fff; font-size: .95rem; }
.online-counter i { color: #c9b0ff; }
.online-counter b { font-size: 1.05rem; }

/* ============ شاشة الدخول ============ */
.login-card {
  width: 100%; max-width: 460px; padding: 18px 24px;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.brand { text-align: center; margin-bottom: 16px; }
.brand-icon { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 20px; font-size: 34px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #284880, #5b00c6); box-shadow: 0 8px 28px rgba(15, 0, 70, .35); }
.brand h1 { font-size: 1.8rem; font-weight: 700; margin: 0; }
.brand p { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: .95rem; }
.landing-stats { display: grid; gap: 8px; justify-items: center; margin: 18px 0 20px; color: rgba(255,255,255,.94); font-size: 1rem; }
.landing-stats span { display: flex; align-items: center; gap: 8px; }
.landing-stats i { width: 20px; text-align: center; color: #d4baff; }
.landing-stats b { font-size: 1.08rem; }
.btn-enter {
  display: inline-block; padding: 10px 20px; margin: 6px 0; width: 100%; min-height: 64px;
  text-align: center; text-decoration: none; box-sizing: border-box; cursor: pointer;
  background-image: linear-gradient(to right bottom, #284880, #5b00c6);
  border: 1px solid #fff; border-radius: 10px; color: #fff !important;
  font-family: Arial, sans-serif; font-size: 30px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(20, 0, 80, .28);
  transition: transform .15s, box-shadow .15s;
}
.btn-enter:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(20, 0, 80, .4); }
.btn-download { display: block; width: auto; min-width: 170px; margin: 9px auto 0; padding: 8px 18px; border: 1px solid rgba(255,255,255,.62);
  border-radius: 9px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.78); font: 700 .92rem Arial,sans-serif; }
.btn-download:disabled { cursor: not-allowed; opacity: .8; }
#guestForm, #idForm { margin-top: 18px; animation: fadeUp .25s ease; }
#guestForm .form-label, #idForm .form-label { color: #ced4da; }
.hint { min-height: 22px; margin-top: 6px; font-size: .88rem; color: #adb5bd; }
.hint.ok { color: #51cf66; } .hint.warn { color: #ffd43b; }
.chosen-name { background: rgba(255, 255, 255, .08); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-weight: 700; }
.registration-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: clamp(28px, 10vh, 90px) 16px 32px; background: rgba(105, 105, 105, .68); backdrop-filter: blur(3px); }
.registration-overlay.d-none { display: none !important; }
.registration-dialog { position: relative; width: min(100%, 430px); padding: 26px 24px 22px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 15px; background: linear-gradient(135deg, #3f2275 0%, #1b1642 50%, #101633 100%); color: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.45); }
.registration-close { position: absolute; top: 7px; left: 11px; border: 0; background: none; color: rgba(255,255,255,.8); font-size: 28px; line-height: 1; cursor: pointer; }
.registration-container { padding: 10px; direction: rtl; text-align: center; }
.form-header h5 { margin: 0 0 13px; color: #fff; font: 700 1.15rem Arial, sans-serif; }
.input-field { width: 100%; height: 45px; margin-bottom: 12px; padding: 10px; border: 1px solid #bbb; border-radius: 10px;
  background: #e8f0fe; color: #202530; text-align: right; font-size: 16px; }
.button-group { display: flex; justify-content: center; gap: 9px; }
.registration-action, .btn-login { border: 0; border-radius: 10px; padding: 10px 30px; margin-top: 8px; cursor: pointer;
  background: linear-gradient(to right bottom, #5d65c5, #123291); color: #fff; font-size: 18px; font-weight: 700; }
.registration-back { margin-top: 8px; border: 0; background: transparent; color: #b8d4ff; cursor: pointer; font-weight: 700; }
.login-switch { margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: .98rem; cursor: pointer; user-select: none; }
.login-switch:hover { color: #80dfff; }
.login-switch:hover b { color: #bfff00; }
.login-switch b { color: #ffd700; text-decoration: underline; }
.member-login-container { padding: 4px 0 0; background: transparent; color: #fff; direction: rtl; text-align: center; font-family: Arial, sans-serif; }
.login-title { margin: 0 0 14px; color: #fff; font-size: 1.15rem; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.35); }
.id-input { width: 100%; height: 41px; margin-bottom: 10px; padding: 10px; border: 1px solid #bbb; border-radius: 10px;
  background: #fff; color: #202530; text-align: right; font-size: 14px; font-weight: 700; }
.btn-login { display: inline-block; margin-top: 2px; }
.switch-to-nickname { margin: 14px 0 0; color: rgba(255,255,255,.95); text-align: right; font-size: 1rem; font-weight: 700; cursor: pointer; user-select: none; }
.switch-to-nickname:hover { color: #80dfff; }
.switch-to-nickname:hover b { color: #bfff00; }
.switch-to-nickname b { color: #ffd700; text-decoration: underline; }
#loginError { text-align: center; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============ قائمة الغرف ============ */
.screen-title { font-size: 1.4rem; margin: 0 0 18px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 20px 24px; }
.room-card {
  position: relative; min-height: 190px; padding: 24px 10px 9px; border: 3px solid #fff; border-radius: 10px;
  display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; gap: 8px;
  background: linear-gradient(to right bottom, rgb(89, 137, 166), rgb(52, 18, 145));
  text-align: center; cursor: pointer; box-shadow: 0 0 6px 0 #000; animation: room_border_pulse 3s infinite alternate;
  transition: transform .15s, filter .15s; user-select: none;
}
@keyframes room_border_pulse { from { border-color: #fff; } to { border-color: #ff0; } }
.room-card:hover { transform: translateY(-3px); filter: brightness(1.12); }
.room-card .room-count { position: absolute; top: 5px; left: 7px; display: flex; align-items: center; gap: 4px; padding: 1px 5px;
  border-radius: 10px; background: #2459b7; color: #fff; font-size: 14px; }
.room-card .room-count b { font-weight: 700; }
.room-card .room-image, .room-card .room-image-placeholder { width: min(100%, 160px); height: 112px; margin: auto; border: 2px solid #fff; border-radius: 50%; object-fit: cover; }
.room-card .room-image-placeholder { display: grid; place-items: center; border-color: rgba(255,255,255,.8); background: rgba(0,0,0,.15); color: #fff; font-size: 36px; }
.room-card .rname { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 30px; margin: 0; padding: 2px 8px;
  border: 1px solid #e4bd53; border-radius: 16px; background: #fff; color: #111; font-size: 1rem; font-weight: 700;
  direction: rtl; text-align: center; word-break: break-all; }
.room-card .rtools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.room-card .rtools button { border: 0; background: rgba(0, 0, 0, .35); color: #fff; width: 28px; height: 28px; border-radius: 8px; }
.room-card .rtools button:hover { background: rgba(0, 0, 0, .6); }
.room-card.add { background: transparent !important; border: 2px dashed #6c757d; box-shadow: none; color: #adb5bd; animation: none; }
.room-card.add > i.fa-solid:first-child { font-size: 42px; }
.rooms-grid { flex: 1 1 auto; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 8px 10px; padding-bottom: 0; }
.lobby-tiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; width: calc(100% + 0px); }
.lobby-tiles-top, .lobby-tiles-bottom { position: sticky; z-index: 20; background-image: linear-gradient(to right bottom, rgb(93, 101, 197), rgb(18, 50, 145)); }
.lobby-tiles-top { top: 0; }
.lobby-tiles-bottom { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1100; height: 58px; }
.lobby-tile { display: flex; min-height: 58px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 5px; border: 0 !important; outline: 0; border-radius: 0; color: #fff; background: transparent !important; box-shadow: none !important; font-family: inherit; font-size: 11px; font-weight: 800; text-align: center; cursor: pointer; }
.lobby-tile + .lobby-tile { border-right: 0; }
.lobby-tile i { color: #fff; font-size: 20px; }
.lobby-tile:hover { filter: brightness(1.16); transform: translateY(-2px); }
.network-tools { margin-bottom: -4px; }
.lobby-network-back { min-height: 52px; }
.network-empty { margin-top: 8px; }
.room-settings-backdrop { position: fixed; inset: 0; z-index: 12100; background: rgba(10,8,28,.62); }
.room-settings-panel { position: fixed; top: 50%; left: 50%; z-index: 12101; display: flex; width: min(440px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 28px)); flex-direction: column; transform: translate(-50%,-50%); overflow: hidden; border: 1px solid rgba(180,157,255,.5); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 18px 55px rgba(0,0,0,.6); direction: rtl; }
.room-settings-panel.d-none, .room-settings-backdrop.d-none { display: none !important; }
.room-settings-head { display: flex; align-items: center; justify-content: space-between; min-height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(255,255,255,.16); }
.room-settings-head h2 { margin: 0; font-size: 18px; }
.room-settings-head button { width: 32px; height: 32px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.12); font-size: 24px; }
.room-settings-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 8px 12px 0; }
.room-settings-tabs button { min-height: 38px; border: 0; border-bottom: 2px solid transparent; color: #c9c0dc; background: transparent; font-family: inherit; font-size: 11px; font-weight: 800; }
.room-settings-tabs button.active { border-bottom-color: #b99aff; color: #fff; background: rgba(145,103,230,.2); }
.room-settings-scroll { overflow-y: auto; min-height: 270px; padding: 12px; }
.room-settings-section { display: none; }
.room-settings-section.active { display: block; }
.room-settings-section { margin-bottom: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.06); }
.room-settings-section h3 { margin: 0 0 12px; color: #e4d8ff; font-size: 15px; }
.room-settings-section h3 i { margin-left: 6px; color: #bb9dff; }
.room-settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.room-setting-preview { text-align: center; font-size: 11px; color: #d8d1eb; }
.room-setting-image { display: grid; width: 100%; height: 82px; place-items: center; margin-bottom: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; background: #242047; color: #bda9ee; font-size: 25px; }
.room-setting-image img { width: 100%; height: 100%; object-fit: cover; }
.room-settings-grid label { display: flex; flex-direction: column; gap: 4px; color: #d8d1eb; font-size: 11px; font-weight: 700; }
.room-settings-grid input { width: 100%; height: 34px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; color: #fff; background: rgba(0,0,0,.2); }
.room-door-setting { display: flex; align-items: center; justify-content: space-between; grid-column: 1 / -1; padding-top: 4px; color: #e9e2ff; font-weight: 800; }
.room-door-setting button { width: 42px; height: 34px; border: 1px solid rgba(255,255,255,.3); border-radius: 7px; color: #fff; background: #315db6; font-size: 18px; }
.room-banned-empty { padding: 12px; color: #b9b1c9; text-align: center; font-size: 12px; }
.room-settings-action, .room-settings-renew { width: 100%; min-height: 36px; border: 0; border-radius: 7px; color: #fff; background: linear-gradient(135deg,#315db6,#123291); font-weight: 800; }
.room-settings-renew { background: linear-gradient(135deg,#9b5b2b,#6c1642); }
.room-subscription-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #ddd5ed; font-size: 12px; }
.room-subscription-line b { color: #ffe294; font-size: 16px; }
.network-card { position: relative; display: flex; min-height: 245px; flex-direction: column; align-items: center; justify-content: flex-start; overflow: hidden; border: 0; border-radius: 20px; cursor: pointer; background: transparent; transition: transform .2s, filter .2s; }
.network-card:hover { transform: translateY(-4px); filter: brightness(1.08); }
.network-flag { display: block; width: min(100%, 210px); height: 150px; margin: 0 auto -8px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0,0,0,.22)); }
.network-card:not(.network-egypt) .network-flag { transform: translateY(12px); }
.network-info { width: 100%; min-height: 92px; padding: 12px 10px 10px; border: 1px solid #d7dbe2; border-radius: 0; color: #17233d; background: linear-gradient(145deg, #fff, #f1f3f7); box-shadow: 0 8px 18px rgba(0,0,0,.2); direction: rtl; text-align: center; }
.network-info h3 { margin: 0 0 2px; font-size: 17px; font-weight: 900; }
.network-info small { display: block; color: #667085; font-size: 11px; }
.network-stats { display: flex; flex-direction: row; justify-content: center; gap: 18px; margin-top: 9px; color: #284b91; font-size: 12px; font-weight: 800; direction: rtl; }
.network-stats span { display: inline-flex; align-items: center; gap: 4px; }
.network-stats i { color: #315db6; font-size: 16px; }
.network-stats b { font-size: 16px; }
.network-stats em { color: #5f6b7a; font-size: 11px; font-style: normal; }
.network-back { grid-column: 1 / -1; justify-self: start; padding: 7px 14px; border: 0; border-radius: 8px; color: #fff; background: #244f9b; font-weight: 800; }
.network-heading { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: -6px auto 0; color: #fff; direction: rtl; }
.network-heading img { width: 46px; height: 38px; object-fit: contain; }
.network-heading h2 { margin: 0; font-size: 20px; }
.network-heading small { color: rgba(255,255,255,.75); }
.network-empty { grid-column: 1 / -1; padding: 36px 15px; color: rgba(255,255,255,.72); text-align: center; }
@media (max-width: 575.98px) { .rooms-grid { gap: 15px 10px; } .lobby-tiles { gap: 0; } .lobby-tiles-bottom { height: 54px; } #chatNewsBar { bottom: 54px; min-height: 54px; } .lobby-tile { min-height: 54px; font-size: 9px; } .lobby-tile i { font-size: 17px; } .network-card { min-height: 205px; } .network-flag { height: 116px; } .network-info { min-height: 82px; padding: 9px 5px; } .network-info h3 { font-size: 14px; } .network-stats { gap: 5px; font-size: 9px; } }
.room-image-picker { display: flex; justify-content: center; }
.room-image-preview, .room-image-empty { width: 92px; height: 92px; border: 2px solid #dee2e6; border-radius: 50%; object-fit: cover; }
.room-image-empty { display: grid; place-items: center; background: #f1f3f5; color: #748094; font-size: 30px; }

/* ============ شاشة الدردشة ============ */
#chatScreen { display: flex; overflow: hidden; }
#chatMain {
  position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; margin-left: 0;
  background: linear-gradient(rgba(0, 0, 0, .68), rgba(0, 0, 0, .88)), var(--room, var(--room-red));
}
#roomHeader { display: flex; align-items: center; gap: 8px; padding: 8px 12px; }
.room_name_statce_main { flex: 1; color: rgb(255, 255, 255); font-weight: 700; font-size: 1.15rem; background: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-btn { border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 36px; height: 36px; border-radius: 10px; }
.hdr-btn:hover { background: rgba(255, 255, 255, .22); }

/* شريط الخاص */
#pmBar { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
#pmTabs { display: flex; gap: 14px; overflow-x: auto; padding: 8px 6px; flex: 1; scrollbar-width: thin; }
.pm-tab { position: relative; flex: 0 0 auto; cursor: pointer; }
.pm-tab img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 10px 5px #000; border: 2px solid transparent; display: block; }
.pm-tab.active img { border-color: #0d6efd; }
.pm-tab .x { position: absolute; top: -8px; right: -8px; color: #fff; background: #000; border-radius: 50%; font-size: 16px; line-height: 1; border: 0; padding: 0; }
.pm-tab .x:hover { color: #ff6b6b; }
.pm-tab .ring {
  position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #e03131; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center;
  animation: ring 1.1s infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(224, 49, 49, .8); transform: rotate(0); }
  15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(0); }
  100% { box-shadow: 0 0 0 12px rgba(224, 49, 49, 0); }
}

/* منطقة الرسائل */
.direct-chat-messages {
  flex: 1; min-height: 0; display: flex; flex-direction: column-reverse; gap: 6px;
  overflow-y: auto; padding: 10px 12px; background: transparent;
}
.msg { display: flex; gap: 8px; align-items: flex-start; width: fit-content; max-width: 88%; padding: 5px 8px 5px 10px;
  border-radius: 12px; color: #fff; backdrop-filter: blur(2px); }
.msg.right { margin-right: 0; margin-left: auto; background: rgba(11, 11, 11, .83); }
.msg.left { margin-left: 0; margin-right: auto; background: rgba(48, 48, 54, .78); }
.msg .avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; cursor: pointer; }
.msg .body { min-width: 0; padding: 5px 2px; }
.msg .meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; margin-bottom: 2px; }
.msg .name { font-weight: 700; cursor: pointer; }
.msg .name.r-owner { color: #ffd43b; } .msg .name.r-mod { color: #74c0fc; } .msg .name.r-member { color: #b2f2bb; }
.msg .time { color: #adb5bd; font-size: .75rem; }
.msg .del { color: #868e96; font-size: .8rem; margin-right: auto; } .msg .del:hover { color: #ff6b6b; }
.msg .text { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; color: #fff; line-height: 1.5; }
.msg .image-viewer-trigger { display: block; width: fit-content; max-width: 100%; }
.msg .pic { display: block; width: auto !important; height: auto !important; max-width: min(260px, calc(100vw - 110px)) !important; max-height: 220px !important; border-radius: 10px; margin-top: 6px; object-fit: contain; cursor: zoom-in; }
.sysmsg { align-self: center; color: #fff; font-size: .82rem; padding: 3px 14px; border-radius: 12px; background: rgba(255, 255, 255, .12); text-align: center; }

/* المُدخل */
#composer { position: relative; display: flex; flex-direction: row; direction: rtl; align-items: center; gap: 4px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background-image: linear-gradient(to right bottom, rgb(118, 80, 255), rgb(52, 0, 94)); }
.btn-flat { background-color: transparent !important; border: 1px solid transparent; padding: 6px 12px; }
.cmp-send { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; color: #fff !important; box-shadow: none !important; }
.fa-paper-plane { font-size: 32px; color: #fff !important; cursor: pointer; display: inline-block; }
.composer-field { position: relative; display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
#msgInput { display: block; flex: 1; width: 100%; min-width: 0; height: 44px; min-height: 44px; max-height: 44px; resize: none; overflow-y: hidden;
  border: 1px solid rgba(255,255,255,.22); outline: 0; border-radius: 22px; padding: 11px 50px 11px 16px;
  background: rgba(255, 255, 255, .14); color: #fff; font: inherit; font-size: 1rem; line-height: 1.35; }
#msgInput.has-overflow { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.68) transparent; }
#msgInput::-webkit-scrollbar { width: 6px; }
#msgInput::-webkit-scrollbar-track { margin-block: 8px; background: transparent; }
#msgInput::-webkit-scrollbar-thumb { border-radius: 8px; background: rgba(255,255,255,.68); }
#msgInput::placeholder { color: #adb5bd; }
.cmp-btn { border: 0; background: transparent; color: #ced4da; font-size: 1.35rem; width: 38px; height: 38px; border-radius: 50%; }
.cmp-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.cmp-btn:disabled { opacity: .72; cursor: default; }
.mic-options-menu { position: absolute; right: 0; bottom: 100%; z-index: 6000; display: flex; width: 100%; justify-content: stretch; gap: 0; padding: 0; border: 1px solid rgba(185,151,255,.35); border-bottom: 0; border-radius: 0; background: #111a35; box-shadow: 0 -10px 28px rgba(0,0,0,.35); direction: rtl; overflow: hidden; }
.mic-option { display: grid; flex: 1 1 0; width: auto; min-height: 58px; place-items: center; padding: 0; border: 0; border-left: 1px solid rgba(255,255,255,.28); border-radius: 0; color: #fff; background: #284880; }
.mic-option:nth-child(2) { background: #4936a2; }
.mic-option:nth-child(3) { border-left: 0; background: #6b315f; }
.mic-option i { color: #fff; font-size: 24px; }
.mic-option:hover { background: linear-gradient(to right bottom,#5d65c5,#123291); }
.mic-option.is-selected { min-height: 84px; }
@media (max-width: 575.98px) { .mic-options-menu { padding: 0; } .mic-option { min-height: 54px; } .mic-option i { font-size: 21px; } }
.composer-tools { display: flex; flex: 0 0 122px; align-items: center; justify-content: space-between; gap: 2px; overflow: hidden; direction: ltr;
  transition: flex-basis .22s ease, opacity .18s ease; }
#composer.is-expanded .composer-tools { flex-basis: 0; opacity: 0; pointer-events: none; }
.cmp-emoji { position: absolute; right: 7px; bottom: 5px; display: grid; place-items: center; width: 34px; height: 34px;
  border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.25rem; transition: opacity .15s, visibility .15s; }
.cmp-emoji:hover { background: rgba(255,255,255,.15); }
#composer.is-expanded .cmp-emoji { opacity: 0; visibility: hidden; pointer-events: none; }
#imgPreview { position: fixed; inset: 0; z-index: 12000; display: grid; place-items: center; padding: 18px; background: rgba(0, 0, 0, .72); }
.img-preview-card { position: relative; display: flex; max-width: min(88vw, 760px); max-height: 88vh; flex-direction: column; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(185,151,255,.38); border-radius: 14px; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 16px 44px rgba(0,0,0,.6); }
#imgPreview img { display: block; max-width: min(60vw, 420px); max-height: 42vh; border-radius: 8px; object-fit: contain; cursor: zoom-in; }
.img-preview-close { position: absolute; top: 6px; left: 7px; z-index: 1; width: 30px; height: 30px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.55); font-size: 24px; line-height: 1; cursor: pointer; }
.img-preview-actions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.img-preview-publish { min-height: 32px; padding: 5px 12px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(to right bottom, #5d65c5, #123291); font-size: 12px; font-weight: 800; cursor: pointer; }
.image-viewer-overlay { position: fixed; inset: 0; z-index: 13000; display: grid; place-items: center; padding: 70px 24px 24px; background: rgba(18,16,34,.22); backdrop-filter: blur(3px); }
.image-viewer-overlay img { display: block; max-width: 94vw; max-height: 84vh; object-fit: contain; border-radius: 8px; transition: transform .2s ease; }
.image-viewer-toolbar { position: absolute; top: 16px; left: 50%; z-index: 1; display: flex; gap: 8px; transform: translateX(-50%); }
.image-viewer-toolbar button { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.5); border-radius: 9px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-size: 24px; font-weight: 800; line-height: 1; cursor: pointer; }
#emojiPanel { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: min(360px, calc(100vw - 32px));
  display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 2px; padding: 8px 12px; max-height: 170px; overflow-y: auto;
  border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(20, 20, 24, .96); }
#emojiPanel button { border: 0; background: transparent; font-size: 1.5rem; border-radius: 8px; }
#emojiPanel button:hover { background: rgba(255, 255, 255, .15); }

/* ============ قائمة المستخدمين ============ */
#usersSidebar {
  position: fixed; top: var(--nav-h); bottom: 0; left: 0; width: 40vw; z-index: 7000;
  background: rgb(55, 55, 55); display: flex; flex-direction: column; border-right: 1px solid rgba(0, 0, 0, .4);
  transform: translateX(-100%); transition: transform .25s;
}
#usersSidebar.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .7); }
.user_btn_show_list { position: fixed; top: calc(var(--nav-h) + 5px); left: 0; z-index: 1024; display: flex; align-items: center; gap: 5px;
  padding: 4px 7px; border: 0; border-radius: 0 8px 8px 0; background: linear-gradient(to right bottom, #5d65c5, #123291);
  color: #fff; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.user_btn_show_list i.fa-users { font-size: 26px; }
.user_btn_show_list .count-userss { font-size: 16px; font-weight: 700; }
.side-head { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin: 6px 5px 2px; padding: 3px 10px; border: 1px solid #a8a6a6; border-radius: 5px; font-weight: 700; color: #123291; background: #fff; direction: ltr; }
.side-head > span { direction: rtl; }
#usersList { flex: 1; overflow-y: auto; padding: 3px 8px 8px; display: flex; flex-direction: column; gap: 0; }
.user_card { display: flex; flex-direction: column; height: 62px; min-height: 62px; margin: 5px 0; border: 1px solid #a8a6a6; border-radius: 10px;
  background-color: rgb(0,140,172); background-image: linear-gradient(to right top, rgb(0, 140, 172), rgb(0, 0, 0));
  box-shadow: 0 0 6px 0 #000; overflow: hidden; position: relative; color: #fff; cursor: pointer; transition: filter .15s; }
.user_card.owner, .user_card.mod, .user_card.room-owner { height: 89px; min-height: 89px; background-color: rgb(255,62,62); background-image: linear-gradient(to right top, rgb(58,7,100), rgb(17,109,191)); }
.user_card:hover { filter: brightness(1.12); }
.user_card_content { display: flex !important; align-items: center !important; justify-content: flex-start; height: 100%; padding: 2px 4px; gap: 5px;
  border-radius: 10px; box-shadow: inset 0 0 10px 2px #3e3e3e; direction: rtl; }
.device_info { min-width: 40px; text-align: center; color: #fff; }
.device_info i { display: none; }
.device_info span { display: block; font-size: 12px; }
.user_name { flex: 0 1 auto; min-width: 0; padding: 0 3px; color: #fff; text-align: center; }
.user_name h4 { margin: 0; color: #fff; font-size: 1.1rem; font-weight: 700; text-shadow: 1px 1px 2px #000; overflow-wrap: anywhere; }
.user-mic-live { display: inline-flex; margin-right: 5px; color: #86efff; animation: mic-live-pulse 1s ease-in-out infinite alternate; }
@keyframes mic-live-pulse { from { opacity: .45; transform: scale(.9); } to { opacity: 1; transform: scale(1.12); } }
.room-mic-users { display: flex; align-items: center; gap: 5px; min-height: 44px; }
.room-mic-user { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #fff; }
.room-mic-user img { width: 30px; height: 30px; border: 0; border-radius: 50%; object-fit: cover; }
.room-mic-user .voice-wave { height: 8px; }
.has-live-mic { isolation: isolate; overflow: visible; box-shadow: none; animation: none; }
.has-live-mic > * { position: relative; z-index: 1; }
.has-live-mic::before { content: ''; position: absolute; z-index: -1; inset: -7px; border-radius: 13px; background: linear-gradient(120deg, #67152e, #d08a28, #ff3f5f, #741b52, #67152e); background-size: 220% 220%; filter: blur(9px); opacity: .72; animation: room-party-breathe 2.2s ease-in-out infinite alternate; }
 .has-live-mic::after { display: none; }
@keyframes room-party-breathe { from { opacity: .35; filter: blur(8px) brightness(.85); background-position: 0% 50%; } to { opacity: 1; filter: blur(10px) brightness(1.35); background-position: 100% 50%; } }
.room-live-mic { display: inline-flex; margin-right: 7px; vertical-align: middle; color: #315db6; }
.room-live-mic i { display: inline-block; animation: sound-icon-flash .55s ease-in-out infinite alternate; }
@keyframes sound-icon-flash { from { opacity: .45; filter: brightness(.8); } to { opacity: 1; filter: brightness(1.7) drop-shadow(0 0 4px #61dfff); } }
.user_meta { display: flex; align-items: center; gap: 3px; padding-left: 0; direction: ltr; }
.user-profile-stack { display: flex; flex-direction: column; align-items: center; }
.user_flag { width: 20px; height: 15px; border-radius: 2px; object-fit: cover; }
.user_avatar { width: 50px; height: 50px; border: 2px solid #fff; border-radius: 7px; object-fit: cover; background-color: #000; }
.user_card:not(.owner):not(.mod):not(.room-owner) .user_avatar { width: 46px; height: 46px; }
.user_card:not(.owner):not(.mod):not(.room-owner) .user-role { display: none; }
.user-role { margin-top: 2px; color: #fff; font-size: .62rem; font-weight: 700; line-height: 1.1; white-space: nowrap; direction: rtl; }
.user-role .fa-star { color: #ffe082; }
.user-role .fa-shield-halved { color: #b9dcff; }
.user_card.offline { opacity: .4 !important; filter: grayscale(.5); }
.user_card.offline:hover { filter: grayscale(.5) brightness(1.12); }
.user-card .me-tag { display: block; margin: 2px 0 0; color: #ffe082; font-size: .68rem; }

/* ============ متفرقات ============ */
.side-head { color: #123291; }
.side-head > span { font-size: 1rem; font-weight: 700; }
#btnCloseSide.hdr-btn { display: inline-flex; align-items: center; gap: 5px; width: auto; height: 36px; padding: 0 10px; border: 1px solid rgb(0, 147, 219); border-radius: 9px; color: rgb(0, 147, 219); background: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
#btnCloseSide.hdr-btn i { font-size: 16px; }
#btnCloseSide.hdr-btn:hover { background: #e8f7ff; }
.user_card_content { position: relative; justify-content: center; direction: ltr; gap: 0; }
.user_name { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(58%, 340px); padding: 0; }
.user_meta { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); display: block; padding: 0; }
.user-profile-stack { align-items: center; }
.user_avatar { display: block; border-radius: 7px; }
.user_flag { position: absolute; left: 54px; top: 2px; width: 20px; height: 15px; }
.device_info { position: absolute; right: 5px; bottom: 2px; min-width: 48px; }
.device_info i { display: block; margin: 0 auto 1px; font-size: 21px; line-height: 1; }
.device_info span { font-size: 12px; line-height: 1; }
#msgInput { padding-right: 16px; background: #fff; color: #111; caret-color: #111; transition: none; }
#msgInput::placeholder { color: #6c757d; }
#composer.is-expanded #msgInput { padding-right: 16px; }
#composer.is-expanded .cmp-emoji { display: none; }
#composer .composer-tools { transition: none; }
.device_info { top: 50%; bottom: auto; right: 5px; transform: translateY(-50%); min-width: 48px; }
.device_info i { font-size: 23px; margin-bottom: 3px; color: #fff; }
#messages.direct-chat-messages { gap: 0; padding: 0; background-color: #26384f; background-image: linear-gradient(rgba(12, 22, 38, .34), rgba(12, 22, 38, .34)), url("../images/chat-wallpaper.svg"); background-size: cover, 360px 360px; background-position: center, center; background-repeat: no-repeat, repeat; }
#chatMain.has-mic-options #messages { padding-bottom: 0 !important; }
.mic-options-menu { position: static; flex: 0 0 auto; width: 100%; justify-content: stretch; gap: 0; padding: 0; border: 1px solid rgba(185,151,255,.35); border-bottom: 0; border-radius: 0; background: linear-gradient(to right bottom, rgb(118, 80, 255), rgb(52, 0, 94)); box-shadow: none; direction: rtl; overflow: hidden; }
#messages .sysmsg { display: none; }
#messages .msg { display: flex; flex: 0 0 auto; flex-direction: row; direction: rtl; align-items: flex-start; clear: both; width: 100%; max-width: none; min-height: 75px; margin: 0; padding: 5px 2px 20px; border-radius: 0; color: rgb(0, 0, 0); backdrop-filter: none; }
#messages .msg.right, #messages .msg.left { margin: 0; background: transparent; }
#messages .msg.log_c_1 { background-color: rgba(218, 234, 255, .83); }
#messages .msg.log_c_2 { background-color: rgba(240, 240, 240, .83); }
#messages .msg .avatar { flex: 0 0 50px; width: 50px; height: 50px; border-radius: 5px; margin-left: 2px; }
#messages .msg .body { flex: 1 1 auto; width: 100%; min-width: 0; margin: 0; padding: 3px 0 5px; color: rgb(0, 0, 0); }
#messages .msg .meta { color: rgb(0, 0, 0); }
#messages .msg .meta { margin-right: -1px; }
#messages .msg .name, #messages .msg .name.r-owner, #messages .msg .name.r-mod, #messages .msg .name.r-member { color: rgb(0, 0, 0); }
#messages .msg .time { color: #4b5563; }
#messages .msg .text { color: rgb(0, 0, 0); text-align: right; direction: rtl; }
#messages .msg .pic { width: auto !important; height: auto !important; max-width: min(260px, calc(100vw - 110px)) !important; max-height: 220px !important; margin-right: 0; object-fit: contain; }
.room-guard-message .body { width: fit-content !important; min-width: min(230px, 80%) !important; padding: 7px 12px !important; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff !important; box-shadow: 0 2px 8px rgba(0,0,0,.16); }
.room-guard-message .name, .room-guard-message .text { color: #fff !important; }
.room-guard-message.guard-kick .body { background: linear-gradient(135deg, #304d86, #172951); }
.room-guard-message.guard-ban .body { background: linear-gradient(135deg, #8c304b, #4a162d); border-color: rgba(255,190,205,.42); }
.room-guard-message.guard-kick .body { border-color: rgba(170,205,255,.38); }
.room-guard-message.guard-clear .body { background: linear-gradient(135deg, #5b3a91, #30205e); border-color: rgba(216,190,255,.55); color: #fff !important; }
.room-guard-message.guard-clear .text { color: #fff !important; }
.room-guard-message .avatar { border: 2px solid rgba(255,255,255,.8); }
#messages .msg .name { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-weight: 900; font-size: 16px; line-height: 1.5; }
#messages .msg .text, #messages .msg .direct-chat-text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; line-height: 1.5; color: rgb(0, 0, 0); font-weight: 700; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; word-break: break-word; margin: 5px 5px 0 0; padding: 0; background-color: transparent; border-radius: 5px; border: none; }

.nb-account-btn { width: 48px; height: 64px; padding: 2px 0; flex-direction: column; gap: 1px; font-size: 11px; line-height: 1.1; }
.nb-account-btn i { font-size: 1.55rem; }
.nb-account-btn span { font-size: 11px; }
.user_flag { width: 20px; height: 20px; border-radius: 2px; object-fit: cover; }
.user-modal-dialog { width: min(500px, calc(100vw - 24px)); max-width: 500px; }
.user-modal-content { display: flex; width: 100%; height: 394.2px; max-height: calc(100dvh - 24px); overflow: hidden; border: 1px solid rgba(177, 199, 255, .42); border-radius: 16px; color: #fff; background: linear-gradient(135deg, #284880 0%, #22114e 58%, #123291 100%); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); }
.user-modal-body { display: flex; flex-direction: column; gap: 10px; width: 100%; min-height: 0; padding: 14px; direction: rtl; }
.um-profile { display: flex; flex: 0 0 auto; align-items: center; gap: 14px; min-height: 103px; padding: 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(7, 17, 52, .34); }
.um-avatar-wrap { display: flex; flex: 0 0 100px; flex-direction: column; align-items: center; gap: 5px; }
.user-modal-content .um-avatar { display: block; width: 58px; height: 58px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 8px; object-fit: cover; }
.um-profile-open { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 28px; padding: 3px 4px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 7px; color: #fff; background: linear-gradient(135deg, #5d65c5, #123291); font-size: 11px; font-weight: 700; white-space: nowrap; }
.um-identity { min-width: 0; }
#umName { color: #fff; font-size: 1.15rem; font-weight: 900; overflow-wrap: anywhere; }
#umRank { margin-top: 4px; color: #c9d8ff; font-size: .82rem; }
.um-actions-grid { display: grid; flex: 0 0 auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.um-action { display: flex; min-width: 0; height: 68px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 5px 3px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 11px; color: #fff; background: rgba(8, 19, 57, .52); font-size: 12px; font-weight: 700; line-height: 1.2; text-align: center; }
.um-action:hover { border-color: rgba(106, 194, 255, .8); background: rgba(0, 147, 219, .25); }
.um-action i { color: #fff; font-size: 20px; }
.um-action span { overflow-wrap: anywhere; }
.um-admin-section { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; gap: 6px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .2); }
.um-section-title { color: #e2eaff; font-size: 13px; font-weight: 800; }
.um-admin-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 575.98px) { .user-modal-dialog { width: calc(100vw - 16px); margin: 8px auto; } .user-modal-content { height: min(394.2px, calc(100dvh - 16px)); } .user-modal-body { padding: 10px; gap: 8px; } .um-profile { gap: 8px; padding: 7px; } .um-avatar-wrap { flex-basis: 90px; } .um-action { height: 64px; font-size: 10px; } .um-action i { font-size: 18px; } }
#toasts { position: fixed; bottom: 80px; right: 50%; transform: translateX(50%); z-index: 2000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toastx { background: rgba(0, 0, 0, .88); color: #fff; padding: 9px 18px; border-radius: 22px; font-size: .92rem; box-shadow: 0 4px 18px rgba(0, 0, 0, .5); animation: fadeUp .25s ease; max-width: 90vw; }
.id-box { font-size: 2rem; letter-spacing: 4px; font-weight: 700; background: #f1f3f5; border-radius: 12px; padding: 10px; user-select: all; }
.um-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-pick button { width: 44px; height: 44px; border-radius: 10px; border: 2px solid #dee2e6; background: #fff; font-size: 1.2rem; }
.icon-pick button.sel { border-color: #0d6efd; background: #e7f1ff; color: #0d6efd; }
.modal-content { color: var(--text); }

/* ============ الجوال ============ */
@media (max-width: 991.98px) {
  #chatMain { margin-left: 0; }
  #usersSidebar { width: 95vw; max-width: none; z-index: 1025; }
  .msg { max-width: 94%; }
  .rooms-grid { grid-template-columns: repeat(2, 1fr); }
  .room-card { min-height: 180px; }
}
@media (max-width: 850px) {
  #loginScreen { padding-top: 145px; }
  .landing-nav { top: 58px; right: 16px; left: 16px; }
  .online-counter { top: 12px; left: 16px; }
}
@media (max-width: 600px) {
  #loginScreen { align-items: flex-start; padding: 170px 12px 24px; }
  .landing-nav { top: 58px; right: 12px; left: 12px; gap: 6px; }
  .landing-nav .button { flex: 1 1 calc(50% - 6px); padding: 9px 7px; text-align: center; font-size: 14px; }
  .login-card { padding: 12px 8px; }
  .online-counter { top: 12px; left: 12px; padding: 7px 9px; font-size: .78rem; }
  .registration-overlay { padding-top: 30px; }
}

.um-profile { justify-content: center; min-height: 0; padding: 0; border: 0; background: transparent; }
.um-avatar-wrap { flex: 1 1 auto; width: 100%; gap: 4px; }
.user-modal-content .um-avatar { width: 88px; height: 88px; border: 1px solid rgba(255, 255, 255, .78); border-radius: 50%; box-shadow: 0 5px 18px rgba(0, 0, 0, .3); }
#umName { text-align: center; color: #fff; font-size: 1.08rem; font-weight: 800; line-height: 1.3; }
#umRank { display: none !important; }
.um-profile-open { width: auto; min-width: 148px; min-height: 30px; padding: 4px 12px; font-size: 13px; }
.um-actions-grid { flex: 0 0 auto; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; overflow: hidden; border: 0; border-top: 1px solid rgba(255, 255, 255, .22); border-radius: 0; padding-top: 10px; }
.um-action { aspect-ratio: 1 / 1; height: auto; border: 0; border-radius: 0; background: rgba(12, 25, 67, .28); font-size: 13px; }
.um-action:not(:last-child) { border-left: 1px solid rgba(255, 255, 255, .22); }
.um-action:hover { background: rgba(0, 147, 219, .24); }
.um-action i { color: #fff; font-size: 30px; line-height: 1; -webkit-font-smoothing: antialiased; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.um-action span { max-width: 100%; font-size: 12px; }
.um-admin-section, .um-section-title, .um-admin-grid { display: none !important; }
@media (max-width: 575.98px) { .um-avatar-wrap { flex-basis: auto; } .user-modal-content .um-avatar { width: 76px; height: 76px; } .um-action i { font-size: 25px; } .um-action span { font-size: 10px; } .um-profile-open { min-width: 136px; } }

.um-actions-grid { grid-template-columns: repeat(3, minmax(0, 145.6px)); justify-content: start; flex: 0 0 auto; width: calc(100% + 28px); margin-inline: -14px; padding-top: 0; border-top: 2px solid rgba(255, 255, 255, .88); background: linear-gradient(135deg, #17244d 0%, #101632 100%); }
.um-action { display: flex; width: 100%; min-height: 86.2px; height: 86.2px; padding: 10px 5px; border: 0; border-radius: 0; background: transparent; }
.um-action:nth-child(-n+3) { border-bottom: 1px solid rgba(222, 233, 255, .3); }
.um-action:not(:nth-child(3n)) { border-left: 1px solid rgba(222, 233, 255, .3); }
.um-action:hover { background: rgba(93, 101, 197, .2); }
.um-action i { font-size: 30px; }
.um-action:nth-child(1) i { color: #65c9ff; }
.um-action:nth-child(2) i { color: #ffd166; }
.um-action:nth-child(3) i { color: #ff8a80; }
.um-action:nth-child(4) i { color: #ff75ae; }
.um-action:nth-child(5) i { color: #8be9d1; }
@media (max-width: 575.98px) { .um-actions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: calc(100% + 20px); margin-inline: -10px; } .um-action { min-height: 82px; height: 82px; padding: 10px 3px; } .um-action i { font-size: 25px; } }

.user-modal-body { padding: 14px 0 0; }
.um-profile { padding-right: 14px; padding-left: 14px; }
#umActions.grid-container { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; max-width: 500px; margin: 0; padding: 0; border: 0; border-top: 2px solid rgba(255, 255, 255, .88); border-radius: 0; background: transparent !important; overflow: hidden; }
.iphone_btn2.btn { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; min-width: 0; height: auto; min-height: 86.2px; aspect-ratio: auto; background-color: #123456 !important; color: #fff !important; border: 1px solid #515151 !important; border-radius: 0 !important; padding: 10px 0 !important; margin: 0 !important; font-size: 18px !important; font-weight: 700; text-align: center; cursor: pointer; }
.iphone_btn2.btn:nth-child(-n+3) { border-bottom-width: 1px; }
.iphone_btn2.btn:not(:nth-child(3n)) { border-left-width: 1px; }
.iphone_btn2 i { display: inline-block; width: 50px; height: 50px; line-height: 50px; margin-bottom: 5px; border-radius: 50%; background: linear-gradient(to right bottom, #3a5cc1, #134ab3) !important; color: #fff !important; font-size: 30px !important; text-align: center; }
.iphone_btn2.btn:hover { background-color: #123456 !important; filter: brightness(1.1); }
@media (max-width: 575.98px) { .iphone_btn2.btn { min-height: 82px; padding: 10px 0 !important; font-size: 13px !important; } .iphone_btn2 i { width: 44px; height: 44px; line-height: 44px; font-size: 26px !important; } }

.user-modal-body { gap: 0; }
#umActions.grid-container { flex: 1 1 auto; min-height: 0; align-content: end; background: linear-gradient(to right bottom, #6587a4, #ffffff) !important; border-top: 2px solid rgba(255, 255, 255, .9); }
.iphone_btn2.btn { height: 86.2px; min-height: 86.2px; }
.iphone_btn2 i { border-radius: 6px !important; background: linear-gradient(to right bottom, #3a5cc1, #134ab3) !important; box-shadow: 0 2px 7px rgba(15, 36, 78, .25); }
.iphone_btn2.btn:nth-child(1) i, .iphone_btn2.btn:nth-child(2) i, .iphone_btn2.btn:nth-child(3) i, .iphone_btn2.btn:nth-child(4) i, .iphone_btn2.btn:nth-child(5) i { color: #fff !important; }
.iphone_btn2.btn { color: #fff !important; }
@media (max-width: 575.98px) { .iphone_btn2.btn { height: 82px; min-height: 82px; } }

.user-modal-body { flex: 1 1 auto; height: 100%; padding: 14px 0 0; gap: 0; }
.um-actions-area { display: flex; flex: 1 1 auto; align-items: flex-end; width: 100%; min-height: 0; margin-top: 0; border-top: 2px solid rgba(255, 255, 255, .92); background: linear-gradient(to right bottom, #6587a4, #ffffff); }
#umActions.grid-container { display: grid; flex: 0 0 auto; align-content: stretch; grid-template-columns: repeat(4, 1fr); width: 100%; max-width: 500px; margin: 0; padding: 0; border: 0; background: transparent !important; }
.iphone_btn2.btn { height: 86.2px; min-height: 86.2px; }
@media (max-width: 575.98px) { .iphone_btn2.btn { height: 82px; min-height: 82px; } }

.user-modal-content { height: auto; min-height: 0; max-height: calc(100dvh - 24px); }
.user-modal-body { flex: 0 1 auto; height: auto; padding: 14px 0 0; gap: 0; }
.um-avatar-wrap { gap: 10px; }
.um-profile { padding-bottom: 10px; }
.um-actions-area { flex: 0 0 auto; align-items: flex-start; margin-top: 8px; }
#umActions.grid-container { flex: 0 0 auto; align-content: start; }
@media (max-width: 575.98px) { .user-modal-content { height: auto; max-height: calc(100dvh - 16px); } .user-modal-body { flex: 0 1 auto; height: auto; padding-top: 10px; } .um-profile { padding-bottom: 8px; } .um-actions-area { margin-top: 7px; } }

.iphone_btn2 i { width: 50px; height: 50px; line-height: 50px; background-color: #0093db !important; background-image: linear-gradient(to right bottom, #3a5cc1, #134ab3) !important; border: 0 !important; border-radius: 7px !important; box-shadow: 0 2px 7px rgba(15, 36, 78, .25) !important; color: transparent !important; -webkit-text-fill-color: transparent !important; -webkit-text-stroke: 1.5px #fff; }
.iphone_btn2.btn:hover i { background: transparent !important; }

.iphone_btn2 .um-action-icon-box { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 37px; box-sizing: border-box; margin-bottom: 5px; padding: 2px 10px; border: 1px solid #fff; border-radius: 10px; background-color: #0093db; background-image: linear-gradient(to right bottom, #3a5cc1, #134ab3); }
.iphone_btn2 .um-action-icon { display: block; width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.iphone_btn2 .um-action-icon * { fill: none; }
@media (max-width: 575.98px) { #umActions.grid-container { grid-template-columns: repeat(4, 1fr); } .iphone_btn2 .um-action-icon-box { flex-basis: 52px; width: 52px; height: 37px; } .iphone_btn2 .um-action-icon { width: 25px; height: 25px; } }

.user-modal-content { position: relative; }
.um-close-modal.iphone_btn2 { position: absolute; top: 0; left: 0; z-index: 5; width: auto; height: auto; padding: 2px 10px !important; background-color: #0093db !important; color: #fff !important; border: 1px solid #fff !important; border-radius: 10px !important; font-weight: 700; text-align: center !important; cursor: pointer; display: inline-block; }

.user_card.owner { background: transparent; isolation: isolate; }
.user_card.owner::before { content: ""; position: absolute; inset: -150% -55%; z-index: -1; background: conic-gradient(from 0deg, #071e3d 0deg, #0878a8 70deg, #21d9ed 125deg, #c5fbff 155deg, #1598bd 190deg, #0b315d 260deg, #071e3d 360deg); animation: owner-cyan-flow 11s linear infinite; }
@keyframes owner-cyan-flow { to { transform: rotate(1turn); } }
.user_card_content { z-index: 1; }

/* ترتيب وأبعاد أزرار نافذة المستخدم */
#umActions.grid-container { display: grid; grid-template-columns: repeat(3, minmax(0, 161.1px)); grid-auto-rows: 87.4px; justify-content: center; align-content: start; width: 100%; max-width: 100%; overflow: hidden; }
#umActions.grid-container .um-action { display: flex; width: 161.1px; height: 87.4px; min-height: 87.4px; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border: 1px solid rgba(255,255,255,.28) !important; border-radius: 0 !important; background: linear-gradient(135deg, #284880, #123291) !important; }
#umActions.grid-container .um-action .um-action-icon-box { display: grid; flex: 0 0 52px; width: 52px; height: 52px; margin: 0; padding: 2px; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 7px; background: linear-gradient(to right bottom, #5d65c5, #123291); }
#umActions.grid-container .um-action .um-action-icon { width: 38px; height: 38px; }
#umActions.grid-container .um-action > span:last-child { max-width: 88px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; }
#umActions.grid-container .um-action:hover { background: linear-gradient(135deg, #3d5fa0, #4936a2) !important; }
@media (max-width: 575.98px) { #umActions.grid-container { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 82px; } #umActions.grid-container .um-action { width: 100%; height: 82px; min-height: 82px; } }

/* شكل أزرار نافذة المستخدم مثل شبكة الأدوات العريضة */
#umActions.grid-container { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 87.4px; gap: 0; background: #c3cdd3 !important; border-top: 1px solid rgba(255,255,255,.72); }
#umActions.grid-container .um-action { position: relative; width: 100%; height: 87.4px; min-height: 87.4px; flex-direction: column; gap: 4px; padding: 6px 3px; border: 1px solid rgba(151,104,70,.72) !important; border-radius: 0 !important; background: #06466b !important; color: #fff !important; }
#umActions.grid-container .um-action:hover { background: #07547d !important; }
#umActions.grid-container .um-action .um-action-icon-box,
#umActions.grid-container .um-action .icon-wrap { display: grid; flex: 0 0 38px; width: 52.2px; height: 38px; margin: 0; padding: 2px; place-items: center; border: 1.5px solid #fff; border-radius: 8px; background: transparent; box-shadow: none; }
#umActions.grid-container .um-action .um-action-icon { width: 30px; height: 30px; }
#umActions.grid-container .um-action .um-action-icon-box { flex: 0 0 38px !important; width: 52.2px !important; height: 38px !important; min-width: 52.2px; min-height: 38px; max-width: 52.2px; max-height: 38px; }
#umActions.grid-container .um-action .um-action-icon-box .um-action-icon { width: 30px !important; height: 30px !important; }
#umActions.grid-container .um-action .icon-wrap svg { width: 31px; height: 31px; }
#umActions.grid-container .um-action > span:last-child,
#umActions.grid-container .um-action .button-label { max-width: 100%; color: #fff !important; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; }
#umActions.grid-container .um-action:nth-child(3) .icon-wrap { order: 0; }
@media (max-width: 575.98px) { #umActions.grid-container { grid-auto-rows: 82px; } #umActions.grid-container .um-action { height: 82px; min-height: 82px; } #umActions.grid-container .um-action .um-action-icon-box, #umActions.grid-container .um-action .icon-wrap { flex-basis: 38px; width: 52.2px; height: 38px; } #umActions.grid-container .um-action > span:last-child, #umActions.grid-container .um-action .button-label { font-size: 10px; } }
.um-actions-area { background: #c3cdd3 !important; }
#umActions.grid-container { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; width: 100% !important; max-width: none !important; margin-inline: 0 !important; }
#umActions.grid-container .um-action { width: 100% !important; max-width: none !important; box-sizing: border-box !important; }
#umActions.grid-container .um-action > span:last-child,
#umActions.grid-container .um-action .button-label { max-width: none !important; white-space: nowrap; }
.um-actions-area { border-top: 1px solid rgba(255,255,255,.5) !important; }
#umActions.grid-container { border-top: 0 !important; }
#umOpenProfile { border: 1px solid rgba(255,255,255,.5) !important; color: #fff !important; background: linear-gradient(135deg, #5d65c5, #123291) !important; box-shadow: 0 2px 7px rgba(18,50,145,.25); }
#umOpenProfile:hover { color: #fff !important; background: linear-gradient(135deg, #6d76d8, #2144a5) !important; }
.msg .name { display: inline-flex; align-items: center; gap: 4px; }
.msg .name .fa-shield-halved { order: 2; }
.custom-notice-panel { position: fixed; top: 14px; left: 50%; z-index: 12060; display: none; width: min(520px, calc(100vw - 24px)); padding: 0 14px 14px; transform: translateX(-50%); border: 1px solid rgba(185,151,255,.45); border-radius: 12px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 12px 35px rgba(0,0,0,.48); direction: rtl; }
.custom-notice-panel.is-open { display: block; }
.custom-notice-head { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.custom-notice-head strong { display: flex; flex-direction: column; gap: 2px; font-size: 14px; font-weight: 800; }
.custom-notice-head strong b { color: #d7c9ff; font-size: 15px; }
.custom-notice-head button { width: 29px; height: 29px; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); font-size: 21px; line-height: 1; }
.custom-notice-panel textarea { display: block; width: 100%; min-height: 76px; margin-top: 12px; padding: 9px; resize: vertical; border: 1px solid rgba(255,255,255,.28); border-radius: 8px; outline: 0; color: #17203a; background: #fff; font: inherit; font-size: 14px; }
.custom-notice-send { width: 100%; min-height: 38px; margin-top: 10px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-weight: 800; }
.custom-alert-card { position: fixed; top: 18px; left: 50%; z-index: 13000; display: block; width: min(390px, calc(100vw - 24px)); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.32); border-radius: 12px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 14px 40px rgba(0,0,0,.5); direction: rtl; animation: customAlertSlide .65s cubic-bezier(.2,.85,.25,1) both; }
.custom-alert-card-head { display: flex; align-items: center; justify-content: space-between; gap: 9px; min-height: 46px; padding: 8px 10px; border-bottom: 1px solid rgba(255,255,255,.18); }
.custom-alert-card-head strong { flex: 1; color: #fff; font-size: 14px; }
.custom-alert-card-head button { width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.45); border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); font-size: 20px; line-height: 1; }
.custom-alert-card-list { max-height: min(52vh, 360px); overflow-y: auto; }
.custom-alert-item { display: flex; align-items: flex-start; gap: 9px; padding: 10px 11px; border-bottom: 1px solid rgba(255,255,255,.14); }
.custom-alert-item:last-child { border-bottom: 0; }
.custom-alert-item img { width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid rgba(255,255,255,.7); border-radius: 50%; object-fit: cover; }
.custom-alert-item-content { min-width: 0; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.5; }
.custom-alert-item-content strong { display: block; margin-bottom: 2px; color: #d7c9ff; font-size: 13px; }
@keyframes customAlertSlide { 0% { opacity: 0; transform: translateX(110vw); } 78% { opacity: 1; transform: translateX(-56%); } 100% { opacity: 1; transform: translateX(-50%); } }
.name-colors-backdrop { position: fixed; inset: 0; z-index: 10004; display: none; background: rgba(0,0,0,.72); }
.name-colors-backdrop.is-open { display: block; }
.name-colors-panel { position: fixed; top: 18px; left: 50%; z-index: 10005; display: none; width: min(520px, calc(100vw - 24px)); transform: translateX(-50%); border: 1px solid rgba(185,151,255,.4); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 18px 55px rgba(0,0,0,.55); direction: rtl; }
.name-colors-panel.is-open { display: block; }
.name-colors-head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid rgba(255,255,255,.18); }
.name-colors-head strong { display: flex; flex-direction: column; gap: 2px; font-size: 15px; font-weight: 800; }
.name-colors-head strong small { color: #cfc5eb; font-size: 11px; font-weight: 600; }
.name-colors-head button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); font-size: 21px; line-height: 1; }
.name-colors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(55.9px, 1fr)); gap: 2px; padding: 16px; }
.name-color-pill { width: 100%; max-width: 55.9px; height: 40px; border: 0; border-radius: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.28); cursor: pointer; }
.name-color-pill:hover { transform: translateY(-1px); filter: brightness(1.14); }
@media (max-width: 575.98px) { .name-colors-grid { grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)); gap: 2px; padding: 10px; } .name-color-pill { width: 100%; max-width: 50px; height: 36px; border-radius: 18px; } }
.admin-colors-title { padding: 10px 16px 12px; border-top: 1px solid rgba(255,255,255,.16); color: #d7c9ff; font-size: 13px; font-weight: 800; text-align: right; }

.moderator-panel { position: fixed; top: 50%; left: 50%; z-index: 12050; display: none; width: min(360px, calc(100vw - 24px)); padding: 0 14px 16px; transform: translate(-50%, -50%); border: 1px solid rgba(185,151,255,.4); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 18px 55px rgba(0,0,0,.55); direction: rtl; }
.moderator-panel.is-open { display: block; }
.moderator-panel-head { display: flex; min-height: 48px; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.18); }
.moderator-panel-head button { width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.5); border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); font-size: 22px; line-height: 1; }
.moderator-user-name { margin: 14px 0; padding: 12px; border-radius: 8px; color: #fff; background: linear-gradient(135deg,#284880,#123291); font-size: 18px; font-weight: 800; text-align: center; }
.moderator-permissions { display: grid; gap: 8px; }
.moderator-permissions label { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; color: #fff; background: rgba(255,255,255,.08); font-weight: 700; }
.moderator-permissions input { width: 19px; height: 19px; accent-color: #6d76d8; }
.moderator-send { width: 100%; min-height: 42px; margin-top: 14px; border: 0; border-radius: 8px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-weight: 800; }
.ownership-send { width: 100%; min-height: 42px; margin-top: 8px; border: 1px solid rgba(255,215,128,.7); border-radius: 8px; color: #fff; background: linear-gradient(135deg,#8f5b19,#d9a441,#6b3c12); font-weight: 900; box-shadow: 0 0 14px rgba(218,164,65,.25); }
.moderator-invite-actions { display: flex; gap: 7px; margin-top: 8px; }
.moderator-invite-actions button { min-width: 58px; padding: 5px 10px; border: 0; border-radius: 7px; color: #fff; font-weight: 800; }
.moderator-invite-actions .accept { background: #187b45; }
.moderator-invite-actions .reject { background: #9e3046; }
.nt-row:has(.moderator-invite-actions) { border-color: rgba(218,164,65,.5); background: linear-gradient(135deg,rgba(112,72,18,.22),rgba(46,28,73,.35)); }
.nt-row:has(.moderator-invite-actions) { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.nt-row:has(.moderator-invite-actions) > div:first-child { width: 100%; }
.moderator-invite-actions { width: 100%; justify-content: flex-start; margin-top: 0; }
.moderator-invite-actions button { min-width: 86px; min-height: 34px; font-size: 13px; }
.nt-row.ownership-invite { border-color: rgba(255,215,128,.8); background: linear-gradient(135deg,rgba(146,88,18,.55),rgba(75,42,12,.7)); }
.leave-promotion-confirm { position: fixed; top: 50%; left: 50%; z-index: 13000; display: none; width: min(360px, calc(100vw - 28px)); padding: 22px 18px 16px; transform: translate(-50%,-50%); border: 1px solid rgba(190,160,255,.55); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#292044,#111a35); box-shadow: 0 18px 55px rgba(0,0,0,.6); direction: rtl; text-align: center; }
.leave-promotion-confirm.is-open { display: block; }
.leave-promotion-confirm strong { display: block; font-size: 16px; line-height: 1.8; }
.leave-promotion-actions { display: flex; gap: 8px; margin-top: 18px; }
.leave-promotion-actions button { flex: 1; min-height: 38px; border: 0; border-radius: 8px; color: #fff; font-weight: 800; }
.leave-promotion-actions .cancel { background: rgba(255,255,255,.16); }
.leave-promotion-actions .confirm { background: linear-gradient(135deg,#9a2d59,#6c1642); }
.user_card.owner .user_flag { left: 58px; }
.user-profile-stack { position: relative; flex: 0 0 50px; width: 50px; }
.user-role { position: absolute; top: calc(100% + 2px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 3px; margin: 0; direction: rtl; white-space: nowrap; }
.user-role .fa-crown { color: #ffe082; }
.user-role .fa-shield-halved { color: #b9dcff; }

.user_card.owner { background-color: #171039; background-image: repeating-linear-gradient(90deg, #151032 0px, #31235f 45px, #633ba0 90px, #362769 135px, #214a78 180px, #151032 225px); background-size: 225px 100%; background-repeat: repeat; animation: owner-gradient-flow 8s linear infinite; isolation: auto; }
.user_card.owner::before { display: none; }
@keyframes owner-gradient-flow { from { background-position: 0 0; } to { background-position: -225px 0; } }
.user_card.owner .user-role { min-height: 19px; padding: 2px 8px; border: 1px solid rgba(255, 218, 140, .72); border-radius: 11px; color: #fff; background: linear-gradient(110deg, rgba(22, 17, 54, .96), rgba(43, 35, 92, .95)); box-shadow: 0 0 9px rgba(122, 82, 220, .45), inset 0 1px 3px rgba(255, 255, 255, .12); text-shadow: 0 1px 2px #09051b; }
.user_card.owner .user-role .fa-crown { color: #ffd875; text-shadow: 0 0 4px rgba(255, 219, 128, .7); animation: manager-crown-glow 2.4s ease-in-out infinite alternate; }
@keyframes manager-crown-glow { from { filter: brightness(.92); text-shadow: 0 0 3px rgba(255, 219, 128, .35); } to { filter: brightness(1.22); text-shadow: 0 0 8px rgba(255, 219, 128, .95); } }

.user_card.owner { background-color: #202f80; background-image: linear-gradient(105deg, #202f80 0%, #5523a5 22%, #8d318f 45%, #245bb0 68%, #07788a 84%, #202f80 100%); background-size: 700px 100%; background-repeat: repeat; animation: owner-gradient-flow 12s linear infinite; }
.user_card.owner::before { display: none; }
@keyframes owner-gradient-flow { from { background-position: 0 0; } to { background-position: -700px 0; } }
.user_card.owner .user_meta { left: 12px; top: 38%; }
.user_card.owner .user_avatar { border: 0; box-shadow: 0 0 5px rgba(255, 255, 255, .98), 0 0 14px rgba(190, 235, 255, .72); }
.user_card.owner .user_flag { left: 62px; }
.user_card.owner .user-role { font-size: .56rem; gap: 2px; padding: 2px 5px; }

.user_card.room-owner { background-color: #64152b; background-image: linear-gradient(105deg, #4b1025 0%, #9d2345 22%, #e04b55 45%, #7b183e 68%, #d47a45 84%, #4b1025 100%); background-size: 700px 100%; animation: room-owner-gradient-flow 9s linear infinite; }
.user_card.room-owner .user_meta { left: 12px; top: 38%; }
.user_card.room-owner .user_avatar { border: 0; box-shadow: none; }
.user_card.room-owner:hover { filter: none; }
.user_card.room-owner .user-role { font-size: .56rem; gap: 2px; padding: 2px 5px; }
.user_card.room-owner .user-role { min-height: 19px; padding: 2px 8px; border: 1px solid rgba(255, 218, 140, .78); border-radius: 11px; color: #fff; background: linear-gradient(110deg, rgba(92, 17, 42, .96), rgba(173, 39, 69, .95)); box-shadow: 0 0 10px rgba(255, 92, 92, .5); text-shadow: 0 1px 2px #21050d; }
.user_card.room-owner .user-role .fa-crown { color: #ffd875; animation: manager-crown-glow 2.4s ease-in-out infinite alternate; }
@keyframes room-owner-gradient-flow { from { background-position: 0 0; } to { background-position: -700px 0; } }

:root { --nav-h: 58px; }
.navbar_da { height: var(--nav-h); padding: 1px 10px; }
.nb-leave-btn { width: 48px; min-width: 48px; height: 56px; padding: 2px; gap: 1px; font-size: 9px; }
.nb-leave-btn i { font-size: 1.15rem; }
.nb-account-btn { width: 48px; height: 56px; padding: 2px 0; gap: 1px; font-size: 10px; }
.nb-account-btn i { font-size: 1.4rem; }
.nb-account-btn span { font-size: 10px; }
.navbar_da .nb-btn:not(.nb-leave-btn):not(.nb-account-btn) { width: 46px; height: 46px; font-size: 1.5rem; }

.room-card { border-color: #fff; animation: none; }
.room-card.add { animation: none; }
#usersSidebar { transition: none; }
#msgInput { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 1.5; }
.cmp-emoji { color: #aeb6c2; }
.cmp-emoji:hover { color: #c7ced8; }
.composer-tools .cmp-btn { color: #fff; opacity: 1; }
.composer-tools .cmp-btn:disabled { opacity: 1; }
.nb-start { gap: 4px; }
.nb-mic-listen { width: 46px; height: 46px; font-size: 1.35rem; }
.nb-mic-listen.is-muted { color: #ff646e; }
.nb-mic-listen.is-listening { color: #42e28b; }
.nb-mic-listen.is-muted:hover { color: #ff8d95; }
.nb-mic-listen.is-listening:hover { color: #75f0aa; }
#toasts { top: calc(var(--nav-h) + 8px); bottom: auto; }

.msg_wrong { position: fixed; top: 0; left: 0; right: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--nav-h); padding: 8px 16px; direction: rtl; text-align: center; font-weight: 800; color: #fff; pointer-events: auto; cursor: default; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.msg_wrong.success { background: #186602; }
.msg_wrong.error { background: #c00; }

#umActions.grid-container { grid-template-columns: repeat(3, 1fr); }
.profile-view-dialog { width: min(100vw, 520px); max-width: 520px; height: 100dvh; margin: 0 auto; }
.profile-view-content { display: flex; flex-direction: column; height: 100%; overflow-y: auto; border: 0; border-radius: 0; color: #1b2233; background: #f7f8fa; }
.profile-view-cover { position: relative; flex: 0 0 245px; height: 245px; overflow: visible; background-color: #27446a; background-image: radial-gradient(ellipse at 18% 20%, rgba(134, 205, 255, .54), transparent 34%), radial-gradient(ellipse at 86% 72%, rgba(161, 86, 220, .55), transparent 40%), linear-gradient(120deg, #102849 0%, #3f4d87 38%, #7b438e 68%, #1b6680 100%); background-size: cover; }
.profile-cover-image { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.profile-view-cover::after { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,rgba(8,20,43,.12),rgba(8,20,43,.24)); content: ''; pointer-events: none; }
.profile-view-close { z-index: 4; }
.profile-photo-edit { position: absolute; z-index: 4; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: linear-gradient(to right bottom,#3a5cc1,#134ab3); box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.profile-cover-edit { top: 52px; right: 10px; bottom: auto; left: auto; }
.profile-avatar-edit { right: 18px; bottom: 10px; }
.profile-photo-edit i { font-size: 15px; }
.profile-view-close { position: absolute; top: 10px; right: 10px; left: auto; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 125px; height: 32px; min-height: 32px; padding: 2px 5px; border: 1px solid rgba(255,255,255,.75); border-radius: 8px; color: #fff; background: rgba(0, 35, 67, .78); font-size: 14px; font-weight: 800; }
.profile-logout { position: absolute; top: 10px; left: 10px; z-index: 4; display: inline-flex; align-items: center; justify-content: center; width: 125px; height: 32px; min-height: 32px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; color: #fff; background-image: linear-gradient(135deg, rgb(149, 43, 89), rgb(108, 22, 66)) !important; font-size: 12px; font-weight: 800; }
.profile-page-avatar { position: absolute; right: 16px; bottom: -36px; z-index: 2; width: 92px; height: 92px; border: 3px solid #fff; border-radius: 8px; object-fit: cover; background: #dfe4ec; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.profile-cover-stats { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 5px; padding: 4px; border: 1px solid rgba(255,255,255,.65); border-radius: 9px; background: rgba(5, 32, 55, .7); }
.profile-cover-stats span { display: grid; min-width: 34px; place-items: center; color: #fff; font-size: 11px; font-weight: 700; line-height: 1.15; }
.profile-cover-stats i { color: #8fd8ff; font-size: 15px; }
.profile-page-info { display: flex; flex: 1 0 auto; flex-direction: column; align-items: center; padding: 45px 12px 0; background: linear-gradient(to bottom, #fff 0%, #f5f7fa 100%); }
#profilePageName { margin: 0; color: #111827; font-size: 1.15rem; font-weight: 800; }
.profile-page-status { margin-top: 4px; color: #778194; font-size: 12px; }
.profile-page-status.online { color: #18864b; }
.profile-page-room { min-height: 18px; margin-top: 3px; color: #526174; font-size: 12px; }
.profile-add-friend { display: flex; align-items: center; justify-content: center; gap: 8px; width: min(298px, 100%); height: 34px; min-height: 34px; margin: 9px auto 8px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(to right bottom, #5d65c5, #123291); font-size: 14px; font-weight: 800; box-shadow: 0 3px 9px rgba(18,50,145,.24); }
.profile-actions { display: flex; width: min(298px, 100%); height: 40px; margin: 0 auto 8px; overflow: hidden; border: 1px solid #ccd3df; border-radius: 8px; background: #fff; }
.profile-actions button { display: flex; flex: 1 1 25%; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; border-left: 1px solid #dce1e9; color: #234475; background: transparent; font-size: 9px; font-weight: 700; }
.profile-actions button:last-child { border-left: 0; }
.profile-actions i { color: #3a5cc1; font-size: 15px; }
.profile-tabs { display: flex; width: calc(100% + 24px); min-height: 48px; margin: 0 -12px; border-top: 1px solid #d9dee8; border-bottom: 1px solid #d9dee8; background: #fff; }
.profile-tabs button { flex: 1 1 25%; min-width: 0; padding: 8px 2px; border: 0; border-bottom: 3px solid transparent; color: #536174; background: transparent; font-size: 11px; font-weight: 700; }
.profile-tabs button.active { border-bottom-color: #1686e8; color: #123291; }
.profile-tab-content { display: grid; flex: 1 0 100px; place-items: center; width: 100%; margin: 12px 0 18px; padding: 14px; border-radius: 8px; color: #fff; background: linear-gradient(135deg, #1580df, #0878cf); font-size: 13px; text-align: center; }
.leave-room-dialog { width: min(360px, calc(100vw - 32px)); }
.leave-room-content { border: 1px solid rgba(151, 194, 255, .45); border-radius: 16px; color: #fff; background: linear-gradient(135deg, #1c315f, #25104b 72%, #123291); box-shadow: 0 16px 50px rgba(0,0,0,.4); }
.leave-room-icon { margin: 6px 0 12px; color: #a8ceff; font-size: 30px; }
.leave-room-content p { margin: 0 0 20px; font-size: 17px; font-weight: 800; }
.leave-room-actions { display: flex; gap: 10px; }
.leave-room-actions button { flex: 1; min-height: 40px; border: 1px solid rgba(255,255,255,.35); border-radius: 9px; color: #fff; background: rgba(255,255,255,.12); font-weight: 700; }
.leave-room-actions #btnConfirmLeave { border: 0; background: linear-gradient(135deg, #5d65c5, #123291); }
@media (min-width: 768px) { .profile-view-dialog { height: min(850px, calc(100dvh - 32px)); margin: 16px auto; } .profile-view-content { border: 1px solid rgba(255,255,255,.3); border-radius: 14px; } }
@media (max-width: 360px) { .profile-page-info { padding-right: 9px; padding-left: 9px; } .profile-tabs button { font-size: 10px; } .profile-actions button { font-size: 8px; } }
.profile-page-avatar { bottom: 12px; }
.profile-support { display: flex; align-items: center; justify-content: center; gap: 6px; align-self: flex-end; min-height: 27px; margin: 0 16px; padding: 2px 10px; border: 0; border-radius: 0 0 8px 8px; color: #fff; background: linear-gradient(to right bottom, #5d65c5, #123291); font-size: 12px; font-weight: 700; }
.profile-support i { color: #fff; font-size: 15px; }
.profile-page-info { padding-top: 6px; }
.profile-page-info { position: relative; }
.profile-coins { position: absolute; top: -60px; left: 4px; z-index: 5; display: flex; align-items: flex-start; gap: 5px; direction: ltr; }
.profile-coin { position: relative; width: 42px; height: 42px; flex: 0 0 42px; }
.profile-coin-image { position: absolute; inset: 0; z-index: 1; display: block; overflow: hidden; border-radius: 50%; }
.profile-coin img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-coin { overflow: visible; border-radius: 50%; }
.profile-coin.is-unlimited .profile-coin-image::after { content: ''; position: absolute; z-index: 2; top: -55%; left: -75%; width: 42%; height: 210%; transform: rotate(28deg); pointer-events: none; background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), rgba(255,255,255,.9), rgba(255,255,255,.16), transparent); filter: blur(1px); animation: profile-coin-shine 3.4s ease-in-out infinite; }
.profile-coin > span:not(.profile-coin-image) { z-index: 3; top: 43px; pointer-events: none; }
@media (max-width: 575.98px) { .profile-coin > span:not(.profile-coin-image) { top: 37px; } }
@keyframes profile-coin-shine { 0%, 18% { left: -75%; opacity: 0; } 30% { opacity: 1; } 70%, 100% { left: 145%; opacity: 0; } }
.profile-coin > span:not(.profile-coin-image) { position: absolute; top: 39px; right: 0; left: 0; display: block; width: auto; height: auto; color: #fff; background: transparent; font-size: 17px; font-weight: 900; line-height: 1; text-align: center; text-shadow: 0 1px 3px rgba(0,0,0,.85); }
@media (max-width: 575.98px) { .profile-coins { top: -54px; left: 2px; gap: 3px; } .profile-coin { width: 36px; height: 36px; flex-basis: 36px; } .profile-coin > span:not(.profile-coin-image) { top: 34px; font-size: 14px; } }
.profile-actions { height: 42px; border: 0; border-radius: 8px; background: linear-gradient(to right bottom, #5d65c5, #123291); box-shadow: 0 3px 9px rgba(18,50,145,.22); }
.profile-actions { display: flex; gap: 2px; padding: 2px; border-radius: 10px; background: transparent; }
.profile-actions button { flex-direction: row; gap: 4px; min-width: 0; padding: 0 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 9px; color: #fff; background: linear-gradient(135deg, #315db6, #0b3b91); font-size: 11px; font-weight: 800; white-space: nowrap; }
.profile-actions button:last-child { border-left: 0; }
.profile-actions i { color: #fff; font-size: 16px; }
.profile-action-count { color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
#profileAddFriend.profile-add-friend { width: min(220px, 78%); height: 30px; min-height: 30px; margin-top: 6px; margin-bottom: 12px; font-size: 12px; }
.profile-actions { width: min(330px, 100%); height: 36px; margin-bottom: 10px; gap: 4px; padding: 0; }
.profile-actions button { height: 36px; padding: 0 9px; }
.profile-actions #profileIgnore { flex: .65 1 0; padding-right: 5px; padding-left: 5px; }
.profile-actions #profileMessage { flex: 1 1 0; }
.profile-actions #profileFollowers, .profile-actions #profileFollow { flex: 1.25 1 0; }
@media (max-width: 360px) { .profile-actions button { gap: 3px; padding: 0 2px; font-size: 9px; } .profile-actions i { font-size: 14px; } }
.spectrum-button { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, rgba(159,93,255,.28), transparent 65%), linear-gradient(145deg,#292044,#171529 65%,#111421) !important; border: 1px solid rgba(185,151,255,.55) !important; box-shadow: 0 0 18px rgba(142,82,255,.2), inset 0 1px 1px rgba(255,255,255,.15), inset 0 -8px 20px rgba(112,68,210,.12); }
.spectrum-button::before { content: ""; position: absolute; z-index: 4; pointer-events: none; top: -50%; bottom: -50%; left: -100%; width: 65%; transform: skewX(-22deg); background: linear-gradient(90deg,transparent,rgba(255,255,255,.08) 25%,rgba(255,255,255,.65) 50%,rgba(210,185,255,.22) 70%,transparent); filter: blur(2px); animation: coinShine 2.5s ease-in-out infinite; }
.spectrum-button::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(circle at 50% 30%,rgba(183,139,255,.28),transparent 70%); opacity: .35; transition: opacity .3s; }
.spectrum-button:hover { border-color: #bd9aff !important; box-shadow: 0 0 25px rgba(159,93,255,.35),0 5px 16px rgba(0,0,0,.35),inset 0 1px 1px rgba(255,255,255,.2); }
.spectrum-button:hover::after { opacity: 1; }
@keyframes coinShine { 0%,12% { left: -100%; } 65%,100% { left: 150%; } }
.spectrum-button .stars { position: absolute; top: 3px; left: 0; right: 0; height: 32px; z-index: 3; pointer-events: none; }
.spectrum-button .star { position: absolute; color: #e6d5ff; text-shadow: 0 0 7px #b78aff,0 0 13px #9a6cff; animation: starMove var(--duration) ease-in-out infinite alternate; animation-delay: var(--delay); }
.spectrum-button .star:nth-child(1) { top: 5px; right: 19px; font-size: 10px; --duration: 1.1s; --delay: 0s; --x: -7px; --y: 9px; }
.spectrum-button .star:nth-child(2) { top: 12px; right: 39px; font-size: 7px; --duration: .8s; --delay: .2s; --x: 8px; --y: -8px; }
.spectrum-button .star:nth-child(3) { top: 1px; left: 23px; font-size: 11px; --duration: 1.3s; --delay: .1s; --x: 10px; --y: 10px; }
.spectrum-button .star:nth-child(4) { top: 17px; left: 14px; font-size: 8px; --duration: .9s; --delay: .35s; --x: -8px; --y: -9px; }
.spectrum-button .star:nth-child(5) { top: 7px; left: 47px; font-size: 6px; --duration: .7s; --delay: .15s; --x: -9px; --y: 7px; }
.spectrum-button .star:nth-child(6) { top: 19px; right: 13px; font-size: 6px; --duration: 1s; --delay: .4s; --x: 8px; --y: -10px; }
.spectrum-button .star:nth-child(7) { top: 2px; right: 56px; font-size: 6px; --duration: .85s; --delay: .3s; --x: 7px; --y: 8px; }
.spectrum-button .star:nth-child(8) { top: 23px; left: 36px; font-size: 6px; --duration: 1.2s; --delay: .5s; --x: -5px; --y: -8px; }
@keyframes starMove { 0% { transform: translate(0,0) scale(.55) rotate(0); opacity: .2; } 50% { opacity: 1; } 100% { transform: translate(var(--x),var(--y)) scale(1.3) rotate(90deg); opacity: .65; } }
.spectrum-button .icon-wrap { position: relative; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; filter: drop-shadow(0 0 8px #ad83ff); }
.spectrum-button .icon-wrap svg { width: 38px; height: 38px; overflow: visible; }
.spectrum-button .button-label { position: relative; z-index: 5; color: #eee5ff; font-size: 12px; font-weight: 800; text-shadow: 0 0 9px #a77aff; }
.iphone_btn2.spectrum-button { min-height: 82px; height: 82px; border-radius: 0 !important; }
.profile-page-info .profile-support.spectrum-button { position: relative; align-self: flex-start; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 3px; width: 92px; height: 42px; min-height: 42px; margin: 0 16px 9px auto; padding: 3px 3px; border-radius: 10px !important; cursor: default; }
.profile-page-info .profile-support .button-label { order: 1; font-size: 9px; white-space: nowrap; }
.profile-page-info .profile-support .icon-wrap { order: 2; flex: 0 0 21px; width: 21px; height: 25px; }
.profile-page-info .profile-support .icon-wrap svg { width: 21px; height: 25px; }
.profile-page-info .profile-support .stars { top: 0; height: 100%; }
.spectrum-button .star:nth-child(1) { --duration: 2.7s; }
.spectrum-button .star:nth-child(2) { --duration: 2.2s; }
.spectrum-button .star:nth-child(3) { --duration: 3.1s; }
.spectrum-button .star:nth-child(4) { --duration: 2.5s; }
.spectrum-button .star:nth-child(5) { --duration: 2.8s; }
.spectrum-button .star:nth-child(6) { --duration: 3.3s; }
.spectrum-button .star:nth-child(7) { --duration: 2.4s; }
.spectrum-button .star:nth-child(8) { --duration: 3.5s; }
.profile-page-info .profile-support.spectrum-button { margin-right: 4px; }
.profile-tabs { align-items: stretch; background: linear-gradient(to right bottom, #123456, #091e36); border-color: rgba(255,255,255,.22); }
.profile-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.82); border-bottom-color: transparent; background: transparent; font-size: 11px; }
.profile-tabs button i { color: #fff; font-size: 17px; }
.profile-tabs button.active { color: #fff; border-bottom-color: #7ec8ff; background: linear-gradient(to bottom, rgba(69,151,224,.2), rgba(18,52,86,.15)); }
.profile-tab-content { background: rgb(18,52,86); }
.profile-tab-content.daily { background: linear-gradient(to right bottom, #6587a4, #1685d0); }
.profile-tab-content.about { display: block; background: rgb(18,52,86); }
.profile-about-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; height: 100%; direction: rtl; }
.profile-about-item { display: flex; min-width: 0; min-height: 100px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 10px 6px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; color: #fff; background: rgba(255,255,255,.07); text-align: center; }
.profile-about-item strong { color: #fff; font-size: 17px; font-weight: 800; }
.profile-about-item span { color: rgba(255,255,255,.88); font-size: 12px; }
.profile-about-item span i { margin-left: 4px; color: #a9d7ff; }
.profile-device-item { width: 100%; font: inherit; cursor: pointer; }
.profile-about-device-icon { color: #b8e0ff; font-size: 26px; }
.profile-page-info:has(.profile-tab-content.about) { flex: 1 1 auto; min-height: 0; padding-bottom: 0; }
.profile-page-info:has(.profile-tab-content.about) .profile-tab-content.about { flex: 1 1 auto; min-height: 0; width: calc(100% + 24px); margin: 0 -12px; padding: 14px 12px; border-radius: 0; }
.profile-tabs button { flex-basis: 16.666%; padding-right: 1px; padding-left: 1px; font-size: 10px; }
.profile-tab-content.daily { display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.profile-daily-create { min-width: 190px; min-height: 42px; padding: 8px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 9px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-weight: 800; box-shadow: 0 4px 12px rgba(18,50,145,.25); }
.profile-daily-create i { margin-left: 6px; }
.profile-daily-empty { color: rgba(255,255,255,.9); font-size: 13px; }
.profile-tab-content.about { overflow: hidden; padding: 4px 10px; }
.profile-tab-content.about .profile-about-grid { grid-template-columns: minmax(0,1fr); align-content: start; gap: 0; height: auto; }
.profile-tab-content.about .profile-about-item { min-height: 50px; flex-direction: row; justify-content: flex-start; gap: 10px; padding: 5px 7px; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); border-radius: 0; background: transparent; }
.profile-tab-content.about .profile-about-item strong { font-size: 15px; }
.profile-tab-content.about .profile-about-item span { font-size: 13px; }
.profile-tab-content.about .profile-about-item span i { color: #fff; }
.profile-about-label { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; color: #fff !important; font-size: 14px !important; font-weight: 800; }
.profile-id-label { font-size: 16px !important; }
.profile-copy-value { max-width: min(360px,calc(100% - 150px)); min-width: 0; overflow: hidden; padding: 5px 10px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; color: #fff; background: rgba(255,255,255,.14); font: inherit; font-size: 14px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.profile-copy-value:hover { background: rgba(255,255,255,.22); }
.profile-url-value { direction: ltr; font-size: 11px; font-weight: 600; }
.profile-tab-content.about.settings .profile-about-grid { grid-template-columns: repeat(3,minmax(0,1fr)); align-content: center; gap: 8px; width: 100%; }
.profile-tab-content.about.settings .profile-settings-item { display: flex; min-width: 0; min-height: 104px !important; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 8px 3px; border: 0 !important; border-radius: 0; color: #fff; background: transparent !important; text-align: center; font: inherit; cursor: pointer; }
.profile-tab-content.about.settings .profile-settings-item > i { color: #fff; font-size: 28px; }
.profile-tab-content.about.settings .profile-settings-item strong { color: #fff; font-size: 12px; line-height: 1.35; }
.profile-tab-content.about.settings .profile-settings-item:focus-visible { outline: 2px solid rgba(255,255,255,.85); outline-offset: -2px; }
.additional-settings-backdrop { position: fixed; inset: 0; z-index: 12000; display: none; background: rgba(0,0,0,.76); }
.additional-settings-backdrop.is-open { display: block; }
.additional-settings-panel { position: fixed; top: 3vh; left: 50%; z-index: 12001; display: none; width: min(500px,calc(100vw - 20px)); max-height: 90vh; overflow-y: auto; padding: 0; transform: translateX(-50%); border: 1px solid #d6dce2; border-radius: 4px; color: #183451; background: #fff; box-shadow: 0 18px 55px rgba(0,0,0,.42); direction: rtl; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
.additional-settings-panel.is-open { display: block; }
body.additional-settings-open { overflow: hidden; }
.additional-settings-head { position: relative; display: flex; min-height: 66px; align-items: center; justify-content: flex-start; margin: 0; padding: 0 12px; border-bottom: 1px solid #d9dee4; background: #fff; }
.additional-settings-head strong { color: #252a30; font-size: 20px; font-weight: 700; }
.additional-settings-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 14px; }
.additional-setting-card { display: flex; min-width: 0; height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px 3px 9px; border: 0; border-radius: 10px; color: #fff; background-image: linear-gradient(to right bottom,#485C71,#133BB3); text-align: center; cursor: pointer; }
.additional-setting-card > i { color: #fff; font-size: 23px; }
.additional-setting-card > i { display: none; }
.additional-setting-card > span { color: #fff; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size: 16px; font-weight: 700; line-height: 1.25; }
.additional-setting-toggle { position: relative !important; width: 64px !important; height: 35px !important; min-width: 64px !important; max-width: 64px !important; min-height: 35px !important; flex: 0 0 35px !important; margin: 0 !important; padding: 0 !important; appearance: none !important; -webkit-appearance: none !important; display: inline-block !important; border: 0 !important; border-radius: 18px !important; cursor: pointer; background: #f00 !important; transition: background .3s ease-in-out; }
.additional-setting-toggle::before { position: absolute; top: 3px; left: 3px; width: 29px; height: 29px; border-radius: 50%; background: #fff; content: ''; transition: transform .3s ease-in-out; }
.additional-setting-toggle:checked { background: #08ad7c !important; }
.additional-setting-toggle:checked::before { transform: translateX(29px); }
.additional-settings-foot { display: flex; min-height: 71px; align-items: center; justify-content: flex-end; padding: 12px 15px; border-top: 1px solid #d9dee4; background: #fff; }
.additional-settings-foot button { min-width: 60px; min-height: 38px; padding: 5px 12px; border: 0; border-radius: 3px; color: #fff; background: #6c7a80; font-size: 13px; }
.additional-setting-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 575.98px) { .additional-settings-panel { top: 3vh; width: calc(100vw - 20px); max-height: 90vh; padding: 0; } .additional-settings-grid { gap: 8px; padding: 12px; } .additional-setting-card { height: 78px; padding: 6px 2px 9px; } .additional-setting-card > span { font-size: 16px; } .additional-settings-head { min-height: 58px; } .additional-settings-head strong { font-size: 19px; } .additional-settings-foot { min-height: 64px; } }
.profile-story-dialog { width: min(420px,calc(100vw - 28px)); }
.profile-story-content { display: flex; gap: 12px; padding: 12px; border: 1px solid rgba(151,194,255,.4); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#1c315f,#123456 72%,#101b35); box-shadow: 0 16px 50px rgba(0,0,0,.42); }
.profile-story-head { position: relative; display: flex; min-height: 42px; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.18); }
.profile-story-head button { position: absolute; right: 0; padding: 5px 10px; border: 1px solid rgba(255,255,255,.42); border-radius: 7px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-size: 12px; font-weight: 700; }
.profile-story-content textarea { min-height: 130px; resize: vertical; padding: 10px; border: 1px solid #d5dce6; border-radius: 9px; color: #111; background: #fff; font: inherit; }
.profile-story-actions { display: flex; justify-content: flex-start; gap: 8px; }
.profile-story-actions button { min-width: 82px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); font-weight: 700; }
.profile-story-actions .profile-story-submit { border: 0; background: linear-gradient(to right bottom,#5d65c5,#123291); }
.account-settings-dialog { width: min(500px,calc(100vw - 16px)); max-width: 500px; margin: 10px auto; }
.account-settings-content { max-height: calc(100dvh - 20px); overflow: hidden; border: 1px solid #d8e1ec; border-radius: 14px; color: #183451; background: #fff; box-shadow: 0 18px 54px rgba(0,0,0,.32); font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; }
.account-settings-head { position: relative; display: flex; min-height: 52px; flex: 0 0 52px; align-items: center; justify-content: center; border-bottom: 1px solid rgba(255,255,255,.2); color: #fff; background: linear-gradient(115deg,#5d65c5 0%,#4936a2 48%,#4e1068 100%); }
.account-settings-head strong { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 17px; font-weight: 900; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.account-settings-head button { position: absolute; top: 9px; right: 10px; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.6); border-radius: 8px; color: #fff; background: rgba(255,255,255,.12); font-size: 17px; }
.account-settings-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 10px 14px 14px; }
.account-settings-section { display: grid; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e3e9f0; }
.account-settings-section:last-child { border-bottom: 0; }
.account-settings-section h3 { margin: 0; color: #123456; font-size: 16px; font-weight: 900; }
.account-settings-section label { display: grid; gap: 5px; color: #183451; font-size: 14px; font-weight: 800; }
.account-settings-section input:not([type=checkbox]) { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #b9c7d7; border-radius: 8px; outline: 0; color: #111827; background: #fff; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size: 16px; font-weight: 700; line-height: 1.45; }
.account-settings-section input::placeholder,.account-username-row input::placeholder { color: #738195; opacity: 1; font-weight: 500; }
.account-settings-section input:focus { border-color: #78baff; box-shadow: 0 0 0 3px rgba(69,151,224,.2); }
.account-settings-section p { margin: 0; color: #53677d; font-size: 13px; font-weight: 600; line-height: 1.5; }
.account-settings-hint { color: #53677d; font-size: 12px; font-weight: 600; line-height: 1.45; }
.account-settings-action { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; padding: 6px 12px; border: 1px solid rgba(18,50,145,.12); border-radius: 8px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-size: 12px; font-weight: 800; }
.account-protection-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #40556b; font-size: 11px; }
.account-protection-row input { position: relative; flex: 0 0 42px; width: 42px; height: 23px; appearance: none; border: 1px solid #c4cfdb; border-radius: 14px; background: #e5eaf0; opacity: 1; }
.account-protection-row input::before { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #dce7f6; content: ''; }
.account-delete-section { text-align: center; }
.account-username-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px; }
.account-username-row input { width: 100%; min-height: 42px; padding: 8px 11px; border: 1px solid #b9c7d7; border-radius: 8px; color: #111827; background: #fff; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif; font-size: 16px; font-weight: 700; }
.account-username-row .account-settings-action { min-width: 130px; }
.account-settings-section > label + .account-settings-action { margin-top: 2px; }
.account-delete-button { min-height: 38px; border: 1px solid rgba(255,255,255,.32); border-radius: 8px; color: #fff; background: linear-gradient(135deg,#a83242,#712431); font-size: 12px; font-weight: 800; }
.profile-page-status, .profile-page-status.online { color: #111 !important; }
.profile-page-room { min-height: 18px; margin-bottom: 10px; }
#profileViewModal { padding: 0 !important; overflow: hidden; overscroll-behavior-x: none; }
#profileViewModal .profile-view-dialog { position: fixed; inset: 0 auto 0 0; width: 100vw; max-width: 520px; height: 100dvh; margin: 0; transform: none !important; touch-action: pan-y; }
#profileViewModal .profile-view-content { width: 100%; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; touch-action: pan-y; }
.nb-panel-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 8px 12px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); }
.nb-panel-head strong { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.nb-panel-head strong i { font-size: 18px; }
.nb-panel-head button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255,255,255,.75); border-radius: 7px; color: #fff; background: rgba(255,255,255,.12); font-size: 22px; line-height: 1; }
.nb-panel-section-title { padding: 9px 12px 5px; color: #123456; font-weight: 800; }
.nb-panel-note { padding: 8px 12px; color: #657286; font-size: 13px; }
.notif-friend-link { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; border: 0; border-top: 1px solid #d8e0eb; color: #fff; background: #123456; font-weight: 800; text-align: right; }
.notif-friend-link span { display: flex; align-items: center; gap: 8px; }
.notif-friend-link span i { color: #c3e3ff; font-size: 18px; }
.notif-friend-link b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; color: #fff; background: #dc3545; font-size: 12px; }
.friend-requests-dialog { width: min(500px, calc(100vw - 24px)); max-width: 500px; margin: 12px auto; }
.friend-requests-content { overflow: hidden; border: 1px solid rgba(151,194,255,.5); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#1c315f,#123456 72%,#101b35); box-shadow: 0 16px 50px rgba(0,0,0,.42); }
.friend-requests-header { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.16); }
.friend-requests-header h3 { display: flex; align-items: center; gap: 8px; margin: 0; color: #fff; font-size: 16px; font-weight: 800; }
.friend-requests-header h3 i { color: #b8dfff; }
.friend-requests-header button { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #0093db; border-radius: 8px; color: #fff; background: #087ab3; font-size: 18px; font-weight: 800; }
.friend-requests-list { max-height: min(65vh,520px); overflow-y: auto; }
.friend-requests-empty { padding: 30px 16px; color: #fff; text-align: center; font-weight: 700; }
.friend-request-row { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid rgba(255,255,255,.14); }
.friend-request-row img { width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.6); border-radius: 7px; object-fit: cover; }
.friend-request-text { color: #fff; font-size: 13px; font-weight: 700; }
.friend-request-actions { display: flex; gap: 6px; }
.friend-request-actions button { min-width: 48px; padding: 7px 9px; border: 0; border-radius: 7px; color: #fff; font-size: 12px; font-weight: 800; }
.friend-request-actions .accept { background: #16834a; }
.friend-request-actions .reject { background: #b93446; }
.friend-request-row.is-processing { opacity: .55; }
@media (min-width: 576px) { #profileViewModal .profile-view-dialog { position: relative; inset: auto; width: min(100vw,520px); max-width: 520px; height: min(850px,calc(100dvh - 32px)); margin: 16px auto; } }
@media (max-width: 575.98px) { #profileViewModal .profile-view-dialog { position: fixed; inset: 0 auto 0 0; width: 100vw; max-width: 100vw; height: 100dvh; margin: 0; } .friend-requests-dialog { width: calc(100vw - 20px); margin: 10px auto; } .friend-request-row { grid-template-columns: 40px minmax(0,1fr); } .friend-request-row img { width: 40px; height: 40px; } .friend-request-actions { grid-column: 2; } }
.friend-requests-header { direction: ltr; }
.friend-requests-header h3 { direction: rtl; }
.nb-panel-head { direction: ltr; }
.nb-panel-head strong { direction: rtl; }
.notif-menu-row { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 9px 12px; border: 0; border-bottom: 1px solid #e4e8ee; color: #123456; background: #fff; font-size: 14px; font-weight: 800; text-align: right; }
.notif-menu-row:hover { background: #f6f8fb; }
.notif-menu-row span { display: flex; align-items: center; gap: 8px; }
.notif-menu-row span i { width: 20px; color: #123456; font-size: 17px; text-align: center; }
.notif-menu-row b { display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 11px; color: #fff; background: #dc3545; font-size: 11px; }
.friend-requests-list { max-height: 70vh; overflow-y: auto; }
.nb-panel .friend-requests-empty { color: #123456; }
.nb-panel .friend-request-text { color: #123456; }
.notif-content-card { margin: 9px; overflow: hidden; border: 1px solid #d9e0e9; border-radius: 10px; color: #123456; background: #fff; box-shadow: 0 2px 7px rgba(14,35,63,.08); }
.notif-menu-card { padding: 0; }
.notif-menu-card .notif-menu-row:last-child { border-bottom: 0; }
.notif-records-card, .notif-friends-card { min-height: 64px; }
.notif-records-card .nt-row:last-child { border-bottom: 0; }
.notif-empty-message { display: grid; min-height: 64px; place-items: center; padding: 16px 12px; color: #123456; font-size: 14px; font-weight: 700; text-align: center; }
.notif-friends-card .friend-requests-list { max-height: 60vh; }
.nb-panel { right: 8px; left: auto; }
.friend-event-row { gap: 10px; }
.friend-event-avatar { flex: 0 0 42px; width: 42px; height: 42px; border: 1px solid #d7dee8; border-radius: 5px; object-fit: cover; }
.profile-tab-content.friends { display: block; flex: 1 1 auto; min-height: 0; width: calc(100% + 24px); margin: 0 -12px -18px; padding: 0; border-radius: 0; color: #123456; background: #fff; text-align: right; }
.profile-friends-view { display: flex; width: 100%; height: 100%; min-height: 180px; flex-direction: column; background: #fff; }
.profile-friends-head { position: relative; display: flex; flex: 0 0 42px; align-items: center; justify-content: center; border-bottom: 1px solid #dbe2eb; color: #123456; background: #fff; }
.profile-friends-head strong { font-size: 15px; font-weight: 800; }
.profile-friends-head button { position: absolute; top: 5px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #0093db; border-radius: 7px; color: #fff; background: #087ab3; font-size: 21px; line-height: 1; }
.profile-friends-list { flex: 1 1 auto; overflow-y: auto; background: #fff; }
.profile-friend-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 62px; padding: 8px 12px; border: 0; border-bottom: 1px solid #e4e8ee; color: #123456; background: #fff; text-align: right; }
.profile-friend-row img { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #d5dde8; border-radius: 5px; object-fit: cover; }
.profile-friend-row strong { font-size: 14px; font-weight: 800; }
.profile-friends-empty { padding: 24px 12px; color: #526174; text-align: center; }
.profile-view-content { position: relative; }
.profile-friends-overlay { position: absolute; inset: 0; z-index: 20; display: none; min-height: 100%; flex-direction: column; overflow: hidden; background: #fff; }
.profile-friends-overlay.is-open { display: flex; }
.profile-friends-overlay-head { position: relative; display: flex; flex: 0 0 52px; align-items: center; justify-content: center; border-bottom: 1px solid #dce3ec; color: #123456; background: #fff; }
.profile-friends-overlay-head h3 { margin: 0; font-size: 16px; font-weight: 800; }
.profile-friends-overlay-head button { position: absolute; top: 7px; right: 8px; min-height: 36px; padding: 4px 10px; border: 1px solid #0093db; border-radius: 8px; color: #fff; background: #087ab3; font-size: 12px; font-weight: 800; }
.profile-friends-overlay-list { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 0; background: #fff; }
.profile-friends-loading { padding: 18px; color: #526174; text-align: center; }
.profile-friends-overlay-list .profile-friend-row { min-height: 68px; padding: 9px 14px; }
#profileFriendsBackdrop { position: fixed; inset: 0; z-index: 10003; display: none; background: rgba(0,0,0,.7); }
#profileFriendsBackdrop.is-open { display: block; }
#profileFriendsOverlay.profile-friends-overlay { position: fixed; inset: 1px auto auto 50%; z-index: 10004; display: none; width: min(520px,calc(100vw - 4px)); height: auto; max-height: calc(100dvh - 2px); min-height: 0; margin: 0; transform: translateX(-50%); border: 1px solid rgba(18,52,86,.24); border-radius: 9px; background: #fff; box-shadow: 0 12px 40px rgba(0,0,0,.38); }
#profileFriendsOverlay.profile-friends-overlay.is-open { display: flex; }
#profileFriendsOverlay .profile-friends-overlay-head { flex: 0 0 50px; }
#profileFriendsOverlay .profile-friends-overlay-list { flex: 0 1 auto; max-height: calc(80dvh - 52px); padding: 0; }
#profileFriendsOverlay .profile-friends-empty, #profileFriendsOverlay .profile-friends-loading { min-height: 52px; padding: 16px; }
@media (max-width: 575.98px) { #profileFriendsOverlay.profile-friends-overlay { width: calc(100vw - 10px); } }
#profileFriendsOverlay.profile-friends-overlay { top: 30px; width: min(500px,calc(100vw - 10px)); max-height: calc(100dvh - 38px); }
.profile-add-friend { height: 44px; min-height: 44px; font-size: 15px; }
.profile-actions { height: 50px; }
.profile-actions button { font-size: 12px; }
.profile-actions i { font-size: 18px; }
.profile-actions { width: min(330px, 100%); height: 36px; margin-bottom: 10px; gap: 4px; padding: 0; background: transparent; }
.profile-actions button { height: 36px; padding: 0 9px; }
.profile-actions #profileIgnore { flex: .65 1 0; padding-right: 5px; padding-left: 5px; }
.profile-actions #profileFollowers, .profile-actions #profileFollow { flex: 1.25 1 0; }
#notifBadge { top: 3px; right: 4px; left: auto; z-index: 1; }
#notifBadge.shake-animation { animation: notifBadgeShake 2s ease-in-out infinite; transform-origin: center; }
@keyframes notifBadgeShake { 0%,100% { transform: translate(0,0) rotate(0); } 3%,9% { transform: translate(.4px,0) rotate(0); } 6%,12% { transform: translate(-.4px,0) rotate(0); } 15%,99% { transform: translate(0,0) rotate(0); } }
.pm-panel-backdrop { position: fixed; inset: 0; z-index: 10003; display: none; background: rgba(0,0,0,.72); }
.pm-panel-backdrop.is-open { display: block; }
#pmPanel { position: fixed; top: calc(var(--nav-h) * .2); right: auto; left: 50%; z-index: 10004; width: min(500px,calc(100vw - 10px)); height: 20dvh; min-height: 150px; max-height: 190px; display: flex; flex-direction: column; overflow: hidden; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.24); border-radius: 12px; color: #fff; background-image: linear-gradient(to right bottom,rgb(65,4,87),rgb(18,50,145)); }
.pm-panel-head { position: relative; display: flex; height: 42px; align-items: center; justify-content: center; padding: 4px 10px; color: #fff; font-weight: 800; }
.pm-panel-head strong { position: absolute; left: 50%; transform: translateX(-50%); font-size: 15px; white-space: nowrap; }
.pm-panel-close { position: absolute; top: 5px; right: 8px; display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 60px; height: 30px; padding: 2px 8px; border: 1px solid rgba(255,255,255,.85); border-radius: 8px; color: #fff; background: #0093db; font-size: 11px; font-weight: 800; }
.pm-panel-toggle-row { display: flex; height: 39px; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; color: #fff; }
.pm-panel-toggle-row label { font-size: 14px; font-weight: 800; }
.pm-panel-toggle-row input { position: relative; appearance: none; flex: 0 0 50px; width: 50px; height: 28px; margin: 0; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(10,20,46,.62); cursor: pointer; transition: background .2s,border-color .2s,box-shadow .2s; }
.pm-panel-toggle-row input::before { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .2s; }
.pm-panel-toggle-row input:checked { border-color: #b8f5c8; background: linear-gradient(135deg,#36b95c,#187b3a); box-shadow: 0 0 8px rgba(58,201,101,.35); }
.pm-panel-toggle-row input:checked::before { transform: translateX(22px); }
.pm-panel-divider { height: 1px; margin: 0 8px; background: rgba(255,255,255,.9); }
#pmPanelList { flex: 1 1 auto; height: auto; min-height: 0; overflow-y: auto; color: #fff; }
#pmPanelList .empty { display: grid; height: 100%; place-items: center; color: rgba(255,255,255,.92); font-weight: 700; }
#pmPanel .pm-row { min-height: 58px; color: #fff; border-bottom-color: rgba(255,255,255,.15); background: transparent; }
#pmPanel .pm-row:hover { background: rgba(255,255,255,.12); }
#pmPanel .pm-row .ls { color: rgba(255,255,255,.72); }
@media (max-width: 575.98px) { #pmPanel { width: calc(100vw - 10px); } .pm-panel-head strong { font-size: 13px; } .pm-panel-close { min-width: 54px; padding: 2px 5px; font-size: 10px; } .pm-panel-toggle-row { gap: 8px; } .pm-panel-toggle-row label { font-size: 12px; } }
@media (min-width: 768px) { .nb-panel { right: 10px; left: auto; } }
@media (prefers-reduced-motion: reduce) { .spectrum-button::before,.spectrum-button .star { animation-duration: 8s; } }
.msg_wrong { z-index: 10006; }
#btnEmoji { color: #aeb6c2; }
#btnEmoji i { color: #aeb6c2; font-size: 1.35rem; }
#composer #msgInput, #composer.is-expanded #msgInput { padding-right: 50px; }
#btnEmoji { right: 7px; background: #fff; }
#btnEmoji:hover { background: #fff; }
#msgInput { box-sizing: border-box; padding-top: 9px; padding-bottom: 9px; line-height: 24px; }
#msgInput.has-overflow { padding-top: 6px; padding-bottom: 6px; line-height: 24px; }
.composer-tools-backdrop { position: fixed; inset: 0; z-index: 11000; display: none; background: rgba(0,0,0,.72); }
.composer-tools-backdrop.is-open { display: block; }
.composer-tools-menu { position: fixed; top: 50%; left: 50%; z-index: 11001; display: flex; width: min(580px,calc(100vw - 20px)); height: min(332px,calc(100dvh - 24px)); flex-direction: column; padding: 10px 12px 12px; transform: translate(-50%,-50%); border: 1px solid rgba(185,151,255,.32); border-radius: 14px; color: #fff; background: linear-gradient(145deg,#292044 0%,#211a3b 52%,#111a35 100%); box-shadow: 0 16px 44px rgba(0,0,0,.56), 0 0 24px rgba(93,76,180,.16); direction: rtl; box-sizing: border-box; }
.composer-tools-head { position: relative; display: flex; flex: 0 0 43px; align-items: center; justify-content: center; margin-bottom: 8px; border-bottom: 1px solid rgba(210,190,255,.2); }
.composer-tools-head strong { font-size: 17px; font-weight: 800; }
.composer-tools-head button { position: absolute; top: 3px; right: 0; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 3px 10px; border: 1px solid rgba(255,255,255,.48); border-radius: 8px; color: #fff; background: linear-gradient(to right bottom,#5d65c5,#123291); font-size: 12px; font-weight: 800; }
.composer-tools-grid { display: grid; flex: 1 1 auto; min-height: 0; grid-template-columns: repeat(3,minmax(0,1fr)); grid-auto-rows: minmax(54px,64px); align-content: start; gap: 6px; overflow-y: auto; }
.composer-tool-item { display: flex; min-height: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 5px 4px; border: 1px solid rgba(185,151,255,.2); border-radius: 9px; color: #fff; background: rgba(12,14,35,.42); font: inherit; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; transition: background .15s,border-color .15s; }
.composer-tool-item i { color: #fff; font-size: 22px; }
.composer-tool-item:hover { border-color: rgba(185,151,255,.58); background: linear-gradient(to right bottom,rgba(93,101,197,.7),rgba(42,28,105,.88)); }
.composer-tool-item:active { background: linear-gradient(to right bottom,#5d65c5,#123291); }
.composer-tools-menu.is-member .composer-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media (max-width: 575.98px) { .composer-tools-menu { padding: 8px; } .composer-tools-grid,.composer-tools-menu.is-member .composer-tools-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; } .composer-tool-item { gap: 3px; padding: 3px; font-size: 10px; } .composer-tool-item i { font-size: 18px; } .composer-tools-head strong { font-size: 15px; } }

/* تثبيت تصميم شبكة أزرار نافذة المستخدم بعد كل القواعد السابقة */
#umActions.grid-container { display: grid; grid-template-columns: repeat(3, minmax(0, 161.1px)); grid-auto-rows: 87.4px; justify-content: center; align-content: start; width: 100%; max-width: 100%; overflow: hidden; }
#umActions.grid-container .um-action { display: flex; width: 161.1px; height: 87.4px; min-height: 87.4px; align-items: center; justify-content: center; gap: 5px; padding: 6px 4px; border: 1px solid rgba(255,255,255,.28) !important; border-radius: 0 !important; background: linear-gradient(135deg, #284880, #123291) !important; }
#umActions.grid-container .um-action .um-action-icon-box { display: grid; flex: 0 0 52px; width: 52px; height: 52px; margin: 0; padding: 2px; place-items: center; border: 1px solid rgba(255,255,255,.75); border-radius: 7px; background: linear-gradient(to right bottom, #5d65c5, #123291); }
#umActions.grid-container .um-action .um-action-icon { width: 38px; height: 38px; }
#umActions.grid-container .um-action > span:last-child { max-width: 88px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1.2; }
#umActions.grid-container .um-action:hover { background: linear-gradient(135deg, #3d5fa0, #4936a2) !important; }
@media (max-width: 575.98px) { #umActions.grid-container { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 82px; } #umActions.grid-container .um-action { width: 100%; height: 82px; min-height: 82px; } }
