@import url("https://fonts.googleapis.com/css?family=Noto+Naskh+Arabic+UI");
@import url("https://fonts.googleapis.com/css?family=Noto+Kufi+Arabic");

/* =========================
   Base
========================= */
body {
  font-family: "Noto Kufi Arabic", sans-serif, "trebuchet ms", "lucida grande",
    "lucida sans unicode", arial, helvetica;
  line-height: 1.2;
}

input {
  -webkit-user-select: text;
}

#disabled_content,
#main_input,
#main_load_content {
  height: 38px;
  width: 100%;
}

#main_header,
#my_menu,
#page_wrapper,
.btable_height,
.input_table,
.intro_social_btn,
.out_page_container,
.page_drop_item,
.page_full,
.page_menu_item,
.split,
.ulist_item,
.user_item,
.warning_box {
  table-layout: fixed;
}

/* =========================
   Alignment / Layout helpers
========================= */
.bcell_mid_center,
.centered_element,
.tcenter,
.centered,
.main-slide-gift,
.offline-modals {
  text-align: center;
}

.inline {
  display: inline !important;
}

.iblock {
  display: inline-block;
}

.inline-block {
  display: inline-block !important;
}

.flexcenter,
.my_text2 {
  display: table-cell;
}

.absolute_center {
  margin: auto;
  position: absolute;
  inset: 0;
}

.form_split,
.clear,
.clear3,
.clear5,
.clear10,
.clear15,
.clear20,
.clear25,
.clear30,
.ptdate {
  clear: both;
}

.form_split {
  width: 100%;
}

.w100 {
  width: 100%;
}

.pl30 {
  padding-left: 30px;
}

/* =========================
   Text overflow table-cells
========================= */
.in_room_name,
.page_drop_text,
.page_menu_text,
.toplist_name {
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  overflow: hidden;
  display: table-cell;
}

.in_room_icon,
.profile_close {
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
}

/* =========================
   Sex / Status borders (cleaned)
========================= */
.other,
.sex-other {
  border: 2px solid #ccc;
}

/* default/neutral */
.nosex {
  border-color: #a1a1a1;
  color: #a1a1a1;
}

/* boy */
.boy,
.sex-boy {
  border-color: #03add8;
  color: #03add8;
}

/* girl */
.girl,
.girle,
.sex-girl {
  border-color: #f9f;
  color: #f9f;
}

.seenn {
  background: #ffe6f2;
  color: #330019;
}

/* =========================
   Buttons / Inputs
========================= */
#submit_button,
.send_btn {
  font-weight: 700;
  color: #fff !important;
}

#submit_button {
  width: 100%;
  float: right;
  height: 100% !important;
  box-shadow: none !important;
  padding: 0;
  border: none !important;
  font-size: 16px;
}

.send_btn {
  border-radius: 100px;
  background: #222;
}

/* =========================
   Chat / Quiz
========================= */
.chat_message,
.pro_title,
.quiz_bad,
.quiz_good,
.quiz_hint,
.quiz_question,
.ranking_lm {
  font-weight: 700;
}

.sub_gift .chat_message {
  color: #fff !important;
}

.chat_message {
  font-family: HelveticaNeue, "Noto Kufi Arabic", Arial, sans-serif;
  vertical-align: middle;
  display: inline;
}

.quiz_bad span,
.quiz_good span,
.quiz_hint span,
.quiz_question span {
  color: #fff;
}

.quiz_question {
  background: #03add8;
  color: #012832;
}

.quiz_bad {
  background: #c00;
  color: orange;
}

.quiz_good {
  background: #74b20e;
  color: #030;
}

.quiz_hint {
  background: #ac00e6;
  color: #39004d;
}

.quiz_text {
  border-radius: 3px;
  padding: 2px 10px;
  margin-top: 5px;
  display: inline-block;
}

.quiz_text .my_notice {
  background: transparent !important;
}

.quiz_leaderbox {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  overflow-y: auto;
}

/* =========================
   Profile / Lists
========================= */
.profile_close {
  display: table-cell;
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 15px;
  margin: 0 auto;
  z-index: 2;
  cursor: pointer;
}

.toplist_avatar,
.toplist_avatar2 {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  position: relative;
}

.toplist_avatar {
  width: 70px;
  height: 70px;
}

.toplist_avatar2 {
  width: 48px;
  height: 48px;
}

.topav_default {
  margin-left: 15px;
}

.topav_circle {
  border-radius: 50%;
  display: block;
  width: 36px;
  height: 36px;
}

.toplist_name {
  padding: 0 5px;
}

.in_room_element,
.toplist_item2 {
  display: table;
  table-layout: fixed;
  width: 100%;
}

.toplist_item2 {
  padding: 10px 5px 5px;
  margin-bottom: 5px;
  height: 64px;
}

.in_room_element {
  height: 40px;
  cursor: pointer;
  border-bottom: 1px solid #e2e2e2;
}

.in_room_count,
.in_room_icon {
  vertical-align: middle;
  display: table-cell;
}

.in_room_count {
  width: 65px;
  padding: 5px;
}

.in_room_icon {
  width: 40px;
  position: relative;
}

.noview {
  background: #2b2b2b12;
}

/* =========================
   Avatars / Frames
========================= */
.main_item {
  width: 38px;
  height: 100%;
  font-size: 20px;
  display: table-cell;
  position: relative;
}

#content,
#message_content {
  width: 100%;
  height: 100%;
  padding: 0 32px 0 12px;
  float: left;
  font-size: 16px;
  border-radius: 100px;
}

.grad_bigger_border,
.grad_small_border {
  border-radius: 1000px;
  background: gray;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grad_bigger_border {
  width: 36px;
  height: 36px;
}

.grad_small_border {
  width: 27px;
  height: 27px;
}

.small_av {
  height: 23px !important;
  width: 23px !important;
}

.user_item_frame_avatar_new {
  display: table-cell;
  vertical-align: middle;
  width: 48px;
  height: 48px;
  position: relative;
}

.user_item_frame_inner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: block;
  cursor: pointer;
}

.chat_frame_avatar {
  display: inline-block;
  position: relative;
  vertical-align: top;
  width: 33px;
}

.chat_frame_avatar_inner2 {
  height: 30px;
  width: 30px;
  border-radius: 50%;
  display: block;
  overflow: hidden;
  cursor: pointer;
}

.avatar_profile_round {
  width: 100px;
  height: 100px;
  cursor: pointer;
  display: block;
  border-radius: 100px;
  top: 30px;
  left: 14px;
}

.avatar_spin {
  border: none;
}

/* overlays */
.over,
.over2,
.over3,
.overlist,
.under,
.over_pro {
  position: absolute;
}

.over {
  z-index: 1;
  left: 0;
  top: 0;
}

.over2 {
  z-index: 1;
  left: 0;
  pointer-events: none;
}

.over3 {
  z-index: 1;
  left: -4px;
  pointer-events: none;
}

.overlist {
  z-index: 1;
  left: 0;
}

.over_pro {
  z-index: 1;
  left: 0;
  pointer-events: none;
}

.ul_fr_bg {
  width: 46px;
  top: -6px;
}

.ul_fr_av {
  left: 5px;
  top: 5px;
}

.ch_fr_av {
  left: 0;
  top: 4px;
}

.ch_fr_bg {
  width: 39px;
  top: -5px;
}

/* =========================
   Emo
========================= */
#emo_item {
  padding: 0;
  top: 6px;
  width: auto;
  height: 26px;
}

#emo_item,
#emo_item_priv,
.prev_right_btn {
  right: 12px;
  position: absolute;
}

/* =========================
   Gifts / Modals
========================= */
.gift___message {
  background-image: linear-gradient(143.3deg, #d81b60 33.1%, #ed6b9a 74.9%) !important;
  outline: #d9e167 dashed 1px;
  outline-offset: -4px;
  box-shadow: inset 0 0 10px #e7d074;
  padding: 8px;
}

.round5,
.sub_gift {
  border-radius: 5px;
}

.sub_gift {
  background: linear-gradient(to top, #77a7ef, #024f63) !important;
  padding: 10px 0;
  box-shadow: 0 0 10px #008eff;
}

.gift_image {
  cursor: pointer;
  height: 80px;
  width: 80px;
}

.modal_top {
  border-radius: 5px 5px 0 0;
}

.modal_pad {
  padding: 0 0 20px;
}

#over_modal_content,
#small_modal_content {
  padding: 15px 15px 0;
}

.modal_back {
  backdrop-filter: blur(3px);
}

#large_modal,
#small_modal {
  -webkit-tap-highlight-color: transparent;
}

/* =========================
   Misc UI
========================= */
.glens {
  height: 50px;
}


.chat_avatar {
  width: 33px;
}

.icon_action {
  display: inline-block;
  margin: 0 3px;
  font-size: 16px;
  width: 16px;
  color: #9b9b9b;
}

.other_logs {
  padding: 7px 8px;
}

.logmsg {
  background: rgba(107, 61, 85, 0.13);
  color: red;
  padding: 3px;
  font-size: 1.1em;
}

/*.my_notice {
  background: #ff9;
  color: #000;
  padding: 0;
}
*/
.pro_title {
  padding-bottom: 3px;
}

.text_small {
  font-size: 13px;
}

.adnoyer_log {
  padding: 3px;
  background: linear-gradient(0deg, #2ca98587, transparent);
  border: 1px solid beige;
  margin: 3px 0;
}

.chat_ico_inv {
  position: absolute;
  top: 14px;
  right: -2px;
  background: #fff;
  border-radius: 10px;
  font-size: 15px;
}

.user_item_flag img {
  width: 18px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 2px;
}

.label {
  margin: 5px 0;
  font-size: 16px;
}

.selectboxit-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pdetails_icon {
  display: table-cell;
  vertical-align: middle;
  width: 22px;
}

.chat_video_container_old {
  width: 173px;
  max-width: 100% !important;
  position: relative;
  margin-top: 5px;
}

.bg_pro_cover {
  display: table;
  width: 100%;
  position: relative;
  height: inherit;
  transition: 1.5s;
}

.lheight15 {
  line-height: 17px !important;
  vertical-align: middle;
}

.pro_msg {
  background: #8080803d;
  border-radius: 5px;
  border: 1px solid #2c2c2c;
  box-shadow: 0 3px 5px -3px #000;
}

/* placeholders */
.room_icon_placeholder {
  width: 20px;
  height: 20px;
  margin: 9px 10px;
  box-sizing: border-box;
}

.placeholder {
  background-color: #eee;
  animation: placeholder 0.8s ease-in-out infinite;
}

/* borders list items */
.border_bottom,
.box_title,
.list_element,
.listing_element,
.panel_bar,
.post_element,
.ulist_item,
.user_item {
  border-bottom: 1px solid #ededed;
}

.listing_element {
  padding: 5px 0;
}

.aclist:first-child,
.avitem:first-child,
.background_reply:first-child,
.elem_in:first-child,
.list_element:first-child,
.listing_element:first-child,
.page_drop_item:first-child,
.panel_list:first-child,
.post_element:first-child,
.status_option:first-child,
.sub_list:first-child,
.sub_list_item:first-child,
.sub_menu_item:first-child,
.ulist_item:first-child {
  border-top: none !important;
}

.aclist:last-child,
.avitem:last-child,
.background_reply:last-child,
.elem_in:last-child,
.list_element:last-child,
.listing_element:last-child,
.page_drop_item:last-child,
.panel_list:last-child,
.post_element:last-child,
.status_option:last-child,
.sub_list:last-child,
.sub_list_item:last-child,
.sub_menu_item:last-child,
.ulist_item:last-child,
.user_item:last-child {
  border-bottom: none !important;
}

/* =========================
   Friends UI
========================= */
.friends-container {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.friend {
  display: flex;
  align-items: center;
  background-color: #ededed;
  padding: 10px;
  margin: 5px 0;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.friend:hover {
  background-color: #f6f6f6;
}

.profile-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
}

.friend-info {
  flex-grow: 1;
}

.friend-info h4 {
  margin: 0;
  font-size: 14px;
  color: #222;
}

.friend-info p {
  margin: 5px 0 0;
  color: #a3a3a3;
  font-size: 11px;
}

.friend-actions {
  margin-left: auto;
}

.friend-actions button {
  background-color: #3a3b3c;
  color: #fff;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.friend-actions button:hover {
  background-color: #4e4f50;
}

.friend-actions .fa {
  color: #222;
  font-size: 24px;
}

/* =========================
   Code editor
========================= */
.user_item_sex {
  width: 24px;
  text-align: center;
  vertical-align: middle;
  display: table-cell;
  font-size: 20px;
}

.code-editor-container {
  display: flex;
  flex-direction: row-reverse;
  height: 300px;
}

.line-counter {
  flex: 0 0 auto;
  padding: 10px;
  background-color: #1e1e1e;
  color: #ccc;
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
  border-left: 1px solid #ccc;
}

.textarea-container {
  flex: 1 1 auto;
  direction: ltr;
}

#code-editor {
  font-family: monospace;
  font-size: 14px;
  line-height: 1.5;
  padding: 10px;
  border: none;
  border-radius: 0;
  background-color: #1e1e1e;
  color: #fff;
  width: 100%;
  height: 100%;
  resize: none;
  direction: ltr;
  text-align: left;
}

/* =========================
   Backup card UI
========================= */
.backup-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 15px;
  padding: 20px 10px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.backup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.backup-date {
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.btn {
  padding: 10px 20px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #007bff;
  color: #fff;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.no-backup {
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333;
  margin-top: 15px;
}

/* =========================
   Icons grid
========================= */
.icon-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  align-items: center;
  color: #fff;
  text-shadow: 2px 2px 2px rgb(0 0 0);
  font-weight: 700;
  text-align: center;
  justify-items: center;
  direction: rtl;
}

.icon-box {
  width: 70px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-family: sans-serif;
  direction: ltr;
  position: relative;
}

.icon {
  background-color: #42404069;
  color: #fff;
  border-radius: 12%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  border: 2px solid #f2f2f2a6;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mic-muted-icon {
  position: absolute;
  top: 37%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  color: #fff;
  opacity: 0.8;
  display: none;
}

.avatar_mic {
  width: 40px;
  height: 40px;
  border-radius: 12%;
  display: block;
  cursor: pointer;
  position: relative;
  z-index: 0;
}

.overlay-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.gcard_price,
.notify_icon {
  position: absolute;
}



/* loading border */
.loading_av {
  animation: loading_av 1s linear infinite;
  background-image: linear-gradient(0deg, #f0d, #07f, red, #f0d, #07f);
  background-size: 100% 400%;
  padding: 1px;
}

/* =========================
   Scrollbar
========================= */
::-webkit-scrollbar {
  width: 0.4em;
}

::-webkit-scrollbar-thumb {
  background: #d3d3d3;
}

* {
  scrollbar-width: thin;
}

/* =========================
   Keyframes (deduped)
========================= */
@keyframes loading_av {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

@keyframes placeholder {
  0% {
    background-color: #eee;
  }
  50% {
    background-color: #ccc;
  }
  100% {
    background-color: #eee;
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 100%;
  }
}

@keyframes sparks-1 {
  0% {
    right: 380px;
    bottom: 100px;
    opacity: 0;
  }
  33% {
    right: 390px;
    bottom: 110px;
    opacity: 0.5;
    transform: scale(1.1);
  }
  70% {
    right: 400px;
    bottom: 120px;
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    right: 410px;
    bottom: 130px;
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes sparks-2 {
  0% {
    right: 360px;
    bottom: 130px;
    opacity: 0;
  }
  33% {
    right: 370px;
    bottom: 140px;
    opacity: 0.5;
    transform: scale(1.1);
  }
  70% {
    right: 380px;
    bottom: 150px;
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    right: 390px;
    bottom: 160px;
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes sparks-3 {
  0% {
    right: 300px;
    bottom: 130px;
    opacity: 0;
  }
  33% {
    right: 320px;
    bottom: 150px;
    opacity: 0.5;
    transform: scale(1.1);
  }
  70% {
    right: 340px;
    bottom: 170px;
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    right: 360px;
    bottom: 190px;
    opacity: 0;
    transform: scale(1.1);
  }
}

@keyframes big-light {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(380deg);
  }
}

@keyframes big-car {
  0%,
  100% {
    height: 300px;
  }
  50% {
    height: 280px;
  }
}

@keyframes spark-animation {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

/* =========================
   Media queries
========================= */
@media (min-width: 300px) {
  body {
    font-family: sans-serif, "trebuchet ms", "lucida grande", "lucida sans unicode",
      arial, helvetica;
  }

  .chat_message {
    font-family: HelveticaNeue, "Noto Naskh Arabic UI", Arial, sans-serif;
    font-size: 15px;
  }
}

@media (min-width: 600px) {
  body {
    font-family: "Noto Kufi Arabic", sans-serif, "trebuchet ms", "lucida grande",
      "lucida sans unicode", arial, helvetica;
  }

  .chat_message {
    font-family: HelveticaNeue, "Noto Kufi Arabic", Arial, sans-serif;
  }
}

/* =========================
   Your added styles (kept & formatted)
========================= */
.join-room-message {
  position: relative;
  top: 3px;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  padding: 1px 9px;

  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;

  color: #fafafa;

  border-radius: 10px 3px 10px 3px;

  background:
    linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0%,
      rgba(255,255,255,0.015) 45%,
      rgba(0,0,0,0.16) 100%
    );

  border: 1px solid rgba(255,255,255,0.05);

  backdrop-filter: blur(2px);

  box-shadow:
    0 1px 4px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.02);

  text-shadow: 0 1px 1px rgba(0,0,0,0.15);

  overflow: hidden;

  transition: 0.18s ease;
}

/* لمعة خفيفة جدًا */
.join-room-message::before {
  content: "";

  position: absolute;
  top: 0;
  left: -130%;

  width: 45%;
  height: 100%;

  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,0.05),
    transparent
  );

  transform: skewX(-25deg);

  transition: 0.55s ease;
}

.join-room-message:hover::before {
  left: 140%;
}
.icon_status {
  display: inline-block;
  vertical-align: sub;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #1a73e8;
}



	.flex-box1,
.gcard {
	align-items: center
}

.centered,
.centered_element,
.main-slide-gift,
.offline-modals {
	text-align: center
}

.gcard_price,
.notify_icon,
.sparks {
	position: absolute
}

.fborder,
.gtag {
	border: 1px solid
}

.gcard_img {
	width: 60px;
	max-height: 60px;
	margin: 0 auto
}

.gtag {
	background: #fff;
	z-index: 2
}

.gcard_price {
	bottom: 5px;
	padding: 1px 3px;
	border-radius: 50px;
	left: 0;
	right: 0;
	margin: auto
}

.btable_auto {
	display: table;
	table-layout: auto
}

.gcard_pwrap {
	width: 14px
}

.gcard_pwrap img {
	width: 14px;
	height: 14px;
	display: block
}

.bclear {
	clear: both
}

.pagarrow {
	background: rgb(0, 0, 0, .08)
}

.pagarrow,
.paglist {
	padding: 10px 15px;
	font-weight: 700;
	display: inline-block;
	margin: 2px 5px;
	border-radius: 5px;
	cursor: pointer
}

.sparks {
	background-repeat: no-repeat;
	background-position: left 0 bottom 0
}

.sparks-1 {
	background-image: url(../default_images/icons/spark-1.png);
	width: 45px;
	height: 86px;
	right: 0;
	left: 0;
	top: 0;
	background-position: left 0 bottom 0;
	animation-name: sparks-1;
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
	animation-timing-function: linear
}

.sparks-2,
.sparks-3 {
	width: 50px;
	top: 0;
	background-position: left 0 bottom 0;
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	right: 0
}

@keyframes sparks-1 {
	0% {
		right: 380px;
		bottom: 100px;
		opacity: 0
	}

	33% {
		right: 390px;
		bottom: 110px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		right: 400px;
		bottom: 120px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		right: 410px;
		bottom: 130px;
		opacity: 0;
		transform: scale(1.1)
	}
}

.sparks-2 {
	background-image: url(../default_images/icons/spark-2.png);
	height: 58px;
	left: -26px;
	animation-name: sparks-2;
	animation-delay: .5s
}

@keyframes sparks-2 {
	0% {
		right: 360px;
		bottom: 130px;
		opacity: 0
	}

	33% {
		right: 370px;
		bottom: 140px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		right: 380px;
		bottom: 150px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		right: 390px;
		bottom: 160px;
		opacity: 0;
		transform: scale(1.1)
	}
}

.sparks-3 {
	background-image: url(../default_images/icons/spark-3.png);
	height: 40px;
	left: 0;
	animation-name: sparks-3;
	animation-delay: 1s
}

@keyframes sparks-3 {
	0% {
		right: 300px;
		bottom: 130px;
		opacity: 0
	}

	33% {
		right: 320px;
		bottom: 150px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		right: 340px;
		bottom: 170px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		right: 360px;
		bottom: 190px;
		opacity: 0;
		transform: scale(1.1)
	}
}

.gift_selicon {
	width: 20px;
	height: 20px
}

.gift_pricing {
	font-size: 30px
}

.notify_icon {
	width: 22px !important;
	height: 22px !important;
	top: 22px;
	right: -2px;
	border-radius: 50%;
	background: #fff;
	padding: 1px
}

.flex-box1,
.flex-box2 {
	display: flex;
	position: relative
}

.flex-shrink {
	display: flex;
	font-weight: 700;
	justify-content: space-between;
	line-height: 20px;
	margin-bottom: 8px;
	padding: 0 12px
}

.flex-box2 {
	align-items: center;
	flex-shrink: 0;
	justify-content: center;
	background: linear-gradient(90deg, #ffdd64 5.91%, #ffc700);
	border-radius: 18px;
	padding: 3px 20px;
	box-shadow: 0 0 10px grey
}

.gift_selected {
	height: 110px;
	max-width: 100%;
	border-radius: 10px;
	display: block;
	margin: 0 auto
}

.gift_selicon img {
	width: 30px;
	height: 30px
}

.bcell_mid {
	display: table-cell;
	vertical-align: middle
}

.offline-modals {
	padding: 34px 30px 18px;
	max-width: 100%;
	transition: height .2s;
	border-radius: 24px;
	position: fixed;
	left: 0;
	bottom: 0;
	z-index: 10;
	width: 100%;
	height: 615px
}

.offline-modal-titbgs {
	position: absolute;
	top: 150px;
	left: 0;
	width: 100%;
	height: 172px;
	transform: translateY(-100%)
}

.offline-modal-titbgs .over-gift-light {
	height: 390px;
	animation-name: big-light;
	animation-duration: 40s;
	animation-iteration-count: infinite;
	animation-timing-function: linear
}

@keyframes big-light {
	0% {
		transform: rotate(0)
	}

	100% {
		transform: rotate(380deg)
	}
}

.over-gift-ico {
	position: absolute;
	left: 0;
	right: 0;
	margin: 0 auto;
	height: 300px;
	top: 20px;
	z-index: 99;
	animation-name: big-car;
	animation-duration: 3s;
	animation-iteration-count: infinite
}

.over-gift-spark-1,
.over-gift-spark-2,
.over-gift-spark-3 {
	animation-duration: 1.5s;
	animation-iteration-count: infinite;
	animation-timing-function: linear;
	right: 0;
	left: 0;
	position: absolute
}

@keyframes big-car {

	0%,
	100% {
		height: 300px
	}

	50% {
		height: 280px
	}
}

.over-gift-spark-1 {
	animation-name: osparks-1;
	bottom: -135px
}

.over-gift-spark-2 {
	animation-name: osparks-2;
	bottom: -125px
}

.over-gift-spark-3 {
	animation-name: osparks-3;
	bottom: -145px
}

@keyframes osparks-1 {
	0% {
		left: 0;
		bottom: -135px;
		opacity: 0
	}

	33% {
		left: -10px;
		bottom: -125px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		left: -20px;
		bottom: -115px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		left: -30px;
		bottom: -105px;
		opacity: 0;
		transform: scale(1.1)
	}
}

@keyframes osparks-2 {
	0% {
		left: 0;
		bottom: -125px;
		opacity: 0
	}

	33% {
		left: -10px;
		bottom: -115px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		left: -20px;
		bottom: -105px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		left: -30px;
		bottom: -90px;
		opacity: 0;
		transform: scale(1.1)
	}
}

@keyframes osparks-3 {
	0% {
		left: 0;
		bottom: -145px;
		opacity: 0
	}

	33% {
		left: -10px;
		bottom: -135px;
		opacity: .5;
		transform: scale(1.1)
	}

	70% {
		left: -20px;
		bottom: -125px;
		opacity: 1;
		transform: scale(1.1)
	}

	100% {
		left: -30px;
		bottom: -115px;
		opacity: 0;
		transform: scale(1.1)
	}
}

.image-slide-gift,
.main-slide-gift {
	flex: 1
}

.image-slide-gift img {
	height: 26px;
	border-radius: 50%
}

.container-slide-gift {
	padding: 5px 10px;
	word-wrap: break-word;
	display: table;
	table-layout: fixed;
	max-width: 100%;
	overflow: hidden;
	position: absolute;
	z-index: 99;
	direction: rtl;
	width: 245px;
	background: url(../images/assets/sp-border.png) center -20% no-repeat, url(../images/assets/sp-border.png) center 116% no-repeat #ffd400;
	margin: 10px 0 0;
	border-radius: 0 25px 25px 0;
	left: -300px
}

.container-slide-gift .chat_message {
	font-family: HelveticaNeue, noto naskh arabic ui, Arial, sans-serif;
	font-size: 15px
}




/* performance guard for iPhone / Safari */
@supports (-webkit-touch-callout: none) {
  .story_body_blur, .story_video_blur, .story_blur, .vero_blur_bg, .backblur, .glass, .glass_bg {
    filter: none !important;
    -webkit-filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}




/* =========================
   Compact Equal Chat Avatars - Perfect Balance
========================= */

.chat_log {
    display: flex !important;
    align-items: flex-start !important;
}

/* مساحة ثابتة */
.chat_log > .chat_avatar,
.chat_log > .avtrig.chat_avatar,
.chat_log .chat_avatar,
.chat_log .flexcenter {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;

    height: 50px !important;
    min-height: 50px !important;

    padding: 0 !important;
    margin: 2px 0 0 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: visible !important;
}

/* كل الصور نفس المقاس */
.chat_log .chat_avatar img.cavatar,
.chat_log .chat_avatar img.small_av,
.chat_log .chat_avatar img.avav,
.chat_log img.cavatar.avav,
.chat_log img.small_av.cavatar,
.system_log img.cavatar {
    width: 42px !important;
    height: 42px !important;

    min-width: 42px !important;
    min-height: 42px !important;

    max-width: 42px !important;
    max-height: 42px !important;

    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* الإطار أكبر بشيء بسيط فقط */
.chat_log .grad_small_border {
    width: 47px !important;
    height: 47px !important;

    min-width: 47px !important;
    min-height: 47px !important;

    max-width: 47px !important;
    max-height: 47px !important;

    padding: 2.5px !important;

    border-radius: 50% !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* الصورة داخل الإطار */
.chat_log .grad_small_border img.cavatar,
.chat_log .grad_small_border img.small_av,
.chat_log .grad_small_border img.avav {
    width: 42px !important;
    height: 42px !important;
}

/* الفريم */
.chat_log .chat_frame_avatar {
    width: 50px !important;
    height: 50px !important;

    min-width: 50px !important;
    min-height: 50px !important;

    position: relative !important;
    overflow: visible !important;
}

/* الصورة داخل الفريم */
.chat_log .chat_frame_avatar .chat_frame_avatar_inner2,
.chat_log .chat_frame_avatar .ch_fr_av {
    width: 42px !important;
    height: 42px !important;

    position: absolute !important;

    top: 4px !important;
    left: 4px !important;

    border-radius: 50% !important;
    object-fit: cover !important;
    display: block !important;
}

/* الفريم الخارجي */
.chat_log .chat_frame_avatar .ch_fr_bg {
    width: 50px !important;
    height: 50px !important;

    min-width: 50px !important;
    min-height: 50px !important;

    max-width: 50px !important;
    max-height: 50px !important;

    position: absolute !important;
    top: 0 !important;
    left: 0 !important;

    display: block !important;
}

/* النص */
.chat_log .my_text {
    flex: 1 1 auto !important;
    min-width: 0 !important;

    padding-top: 3px !important;
    padding-right: 8px !important;
}

/* موبايل */
@media screen and (max-width: 480px) {

    .chat_log > .chat_avatar,
    .chat_log > .avtrig.chat_avatar,
    .chat_log .chat_avatar,
    .chat_log .flexcenter {
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;

        height: 46px !important;
        min-height: 46px !important;
    }

    .chat_log .chat_avatar img.cavatar,
    .chat_log .chat_avatar img.small_av,
    .chat_log .chat_avatar img.avav,
    .chat_log img.cavatar.avav,
    .chat_log img.small_av.cavatar,
    .system_log img.cavatar {
        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;
        min-height: 38px !important;

        max-width: 38px !important;
        max-height: 38px !important;
    }

    .chat_log .grad_small_border {
        width: 43px !important;
        height: 43px !important;

        min-width: 43px !important;
        min-height: 43px !important;
    }

    .chat_log .grad_small_border img.cavatar,
    .chat_log .grad_small_border img.small_av,
    .chat_log .grad_small_border img.avav {
        width: 38px !important;
        height: 38px !important;
    }

    .chat_log .chat_frame_avatar {
        width: 46px !important;
        height: 46px !important;
    }

    .chat_log .chat_frame_avatar .chat_frame_avatar_inner2,
    .chat_log .chat_frame_avatar .ch_fr_av {
        width: 38px !important;
        height: 38px !important;

        top: 9px !important;
        left: 4px !important;
    }

    .chat_log .chat_frame_avatar .ch_fr_bg {
        width: 46px !important;
        height: 46px !important;
    }
}



/* =========================
   Global Radius System
========================= */

/* كل الموديلات */
.modal,
.modal_wrap,
.modal_in,
.popup,
.popup_content,
.boxed,
.boom_box,
.chat_panel,
.chat_modal,
.chat_popup {
    border-radius: 20px !important;
}

/* البوكسات العامة */
/*
.input_wrap,
.chat_input_container,
.post_element,
.user_item,
.list_element,
.room_element,
.setting_element,
.profile_card,
.panel_element,
.menu_drop,
.dropdown-menu,
.sub_list,
.chat_message,
.chat_private,
.chat_log,
.chat_container,
.page_element,
.page_menu,
.side_menu,
.boom_form,
.boom_select,
.boom_button {
    border-radius: 20px !important;
}
*/
/* الانبوتات */
input,
textarea,
select {
    border-radius: 20px !important;
}

/* الأزرار */
button,
.theme_btn,
.default_btn,
.ok_btn,
.cancel_btn,
.like_btn,
.send_btn {
    border-radius: 20px !important;
}

/* الصور والصناديق */
img:not(.chat_rank):not(.list_rank):not(.pro_ranking):not(.list_flag):not(.story_avatar),
.avatar,
.user_avatar,
.profile_avatar,
.cover_image,
.avav,
.acav {
    border-radius: 20px !important;
}

/* منع التأثير على الرتب والأعلام */
.chat_rank,
.list_rank,
.pro_ranking,
.list_flag {
    border-radius: 0 !important;
}

/* القوائم المنسدلة */
.dropdown-content,
.menu_list,
.user_menu,
.chat_menu {
    border-radius: 20px !important;
}

/* Keep modal rounding consistent on shell/body */
#small_modal_in,
#large_modal_in,
#over_modal_in,
#over_emodal_in {
    border-radius: 20px !important;
}

#small_modal_content,
#large_modal_content,
#over_modal_content,
#over_emodal_content {
    border-radius: 0 0 20px 20px !important;
}

.modal_close,
.modal_top {
    border-radius: 20px 20px 0 0 !important;
}

/* نعومة عامة */
.modal,
.boom_box,
.chat_panel,
.page_element,
.menu_drop,
.dropdown-menu {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}

/* ===================================
   Profile Layout Refinement
=================================== */

.modal_wrap_top.pro_top .profile_top .btable_auto {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    text-align: center !important;
}

.modal_wrap_top.pro_top .profile_avatar {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto !important;
    width: 130px !important;
    min-width: 130px !important;
    margin: 0 auto !important;
    position: relative !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.modal_wrap_top.pro_top .profile_avatar_inner {
    width: 130px;
    height: 130px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal_wrap_top.pro_top .profile_avatar_inner.has-border {
    height: 136px;
}

.modal_wrap_top.pro_top .avatar_spin {
    width: 130px;
    height: 130px;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative;
    z-index: 2;
}

.modal_wrap_top.pro_top .avatar_profile,
.modal_wrap_top.pro_top .avatar_profile_round {
    width: 130px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
}

.modal_wrap_top.pro_top .profile_avatar_frame {
    width: 130px;
    height: 130px;
    position: relative;
}

.modal_wrap_top.pro_top .profile_avatar_frame.has-border .avatar_profile_round {
    border-radius: 0 !important;
    -webkit-clip-path: circle(34% at 50% 54%);
    clip-path: circle(34% at 50% 54%);
    object-fit: cover !important;
}

.modal_wrap_top.pro_top .profile_border_overlay {
    width: 138px !important;
    height: 138px !important;
    max-width: none !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.modal_wrap_top.pro_top .state_profile {
    position: absolute !important;
    bottom: 6px !important;
    right: 2px !important;
    width: 18px !important;
    height: 18px !important;
    z-index: 6;
}

.modal_wrap_top.pro_top .state_note {
    left: 2px !important;
    bottom: 6px !important;
    z-index: 6;
}

.modal_wrap_top.pro_top .profile_tinfo {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
}

.modal_wrap_top.pro_top .pro_name {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-top: 0 !important;
}

.modal_wrap_top.pro_top .pro_rank {
    font-size: 14px !important;
    margin-bottom: 4px !important;
}

.modal_wrap_top.pro_top .pro_mood {
    width: 100% !important;
    margin: 6px 0 0 !important;
    font-size: 13px !important;
    text-align: center !important;
}

.modal_wrap_top.pro_top #profile_like {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
}

.modal_wrap_top.pro_top .profile_top .tiny_button {
    border-radius: 30px !important;
    padding: 5px 13px !important;
    margin: 3px !important;
}

.bg_pro_cover {
    padding-top: 5px !important;
    padding-bottom: 2px !important;
}

.pro_top {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .modal_wrap_top.pro_top .profile_top .btable_auto {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        text-align: center !important;
    }

    .modal_wrap_top.pro_top .profile_tinfo {
        width: 100% !important;
        align-items: center !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .modal_wrap_top.pro_top .pro_name,
    .modal_wrap_top.pro_top .pro_rank,
    .modal_wrap_top.pro_top .pro_mood {
        text-align: center !important;
    }

    .modal_wrap_top.pro_top #profile_like {
        justify-content: center !important;
    }
}

.modal_menu{
    border-radius:20px !important;
}

/* Profile shadow shell: force rounded glow instead of rectangle */
.profile_shell,
.profile_shell[class*="shgrad"] {
    border-radius: 20px !important;
    overflow: visible !important;
}

.profile_shell > .modal_wrap_top.pro_top {
    border-radius: 20px 20px 0 0 !important;
    overflow: hidden !important;
}

/* Profile shell: unified 20px top/bottom corners */
#mprofilemenu,
#meditprofile {
    border-radius: 0 0 20px 20px !important;
    overflow: hidden !important;
}

.profile_shell > #mprofilemenu,
.profile_shell > #meditprofile {
    border-radius: 0 0 20px 20px !important;
}

#mprofilemenu .pro_menu_wrap .modal_menu,
#meditprofile .pro_menu_wrap .modal_menu {
    border-radius: 0 !important;
}

#mprofilemenu .modal_zone,
#meditprofile .modal_zone {
    border-radius: 0 0 20px 20px !important;
}

/* ===== يكتب الآن فوق بوكس الكتابة بدون تحريك البوكس ===== */
:root{
  --main-typing-gap: 4px; /* المسافة فوق البوكس */
  --main-typing-offset-x: 0px; /* تحريك يمين/يسار */
  --main-typing-max-width: min(92vw, 420px);
  --main-typing-scale: 1;
  --typing-slot-height: 14px;
  --public-typing-slot-height: 30px;
}

#top_chat_container{
  position: relative;
  overflow: visible;
}

#priv_input{
  position: relative;
  overflow: visible;
}

#main_typing_zone,
#private_typing_zone{
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 2px);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: var(--typing-slot-height);
  max-height: none;
  padding: 0 8px;
  overflow: visible;
  pointer-events: none;
  visibility: hidden;
}

#main_typing_zone{
  z-index: 120;
}

#private_typing_zone{
  z-index: 170;
}

/* public typing: fixed at far right above main input */
.public-typing-zone{
  position: relative !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  min-height: var(--public-typing-slot-height) !important;
  max-height: var(--public-typing-slot-height) !important;
  padding-top: 4px !important;
  padding-bottom: 2px !important;
  justify-content: flex-start !important;
  align-items: center !important;
  visibility: hidden;
  z-index: 140 !important;
}

.public-typing-zone.is-active{
  visibility: visible !important;
}

.public-typing-indicator{
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  transform: scale(var(--main-typing-scale)) !important;
}

.public-typing-zone .public-typing-indicator .main-typing-wrap{
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
}

#main_typing_zone.is-active,
#private_typing_zone.is-active{
  visibility: visible;
}

#main_typing_indicator,
#private_typing_indicator{
  position: relative;
  width: max-content;
  max-width: var(--main-typing-max-width);
  text-align: center;
  transform: translateX(var(--main-typing-offset-x)) scale(var(--main-typing-scale));
  padding: 0 !important;
  margin: 0 !important;
  pointer-events: none;
}

#main_typing_indicator{
  z-index: 121;
}

#private_typing_indicator{
  z-index: 171;
}

#main_typing_indicator:empty,
#private_typing_indicator:empty{
  display: none !important;
}

#main_typing_indicator .main-typing-wrap,
#private_typing_indicator .main-typing-wrap{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.05);
}

#main_typing_indicator .main-typing-avatars,
#private_typing_indicator .main-typing-avatars{
  display: inline-flex;
  align-items: center;
}

#main_typing_indicator .main-typing-avatar,
#private_typing_indicator .main-typing-avatar{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.85);
  margin-inline-end: -6px;
}

#main_typing_indicator .main-typing-more,
#private_typing_indicator .main-typing-more{
  margin-inline-start: 8px;
  font-size: 11px;
  font-weight: 700;
  opacity: .72;
}

#main_typing_indicator .main-typing-body,
#private_typing_indicator .main-typing-body{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#main_typing_indicator .main-typing-label,
#private_typing_indicator .main-typing-label{
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: .86;
}

#main_typing_indicator .main-typing-dots,
#private_typing_indicator .main-typing-dots{
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

#main_typing_indicator .main-typing-dots i,
#private_typing_indicator .main-typing-dots i{
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: .3;
  animation: typingDotPulse 1s infinite ease-in-out;
}

#main_typing_indicator .main-typing-dots i:nth-child(2){ animation-delay: .15s; }
#main_typing_indicator .main-typing-dots i:nth-child(3){ animation-delay: .3s; }

@keyframes typingDotPulse{
  0%,80%,100% { transform: translateY(0); opacity: .3; }
  40% { transform: translateY(-2px); opacity: 1; }
}

@media (max-width: 768px){
  :root{
    --main-typing-gap: 3px;
    --main-typing-max-width: 95vw;
    --typing-slot-height: 18px;
    --public-typing-slot-height: 26px;
  }
  #main_typing_indicator .main-typing-wrap,
  #private_typing_indicator .main-typing-wrap{
    padding: 5px 9px;
    gap: 7px;
  }
  #main_typing_indicator .main-typing-avatar,
  #private_typing_indicator .main-typing-avatar{
    width: 18px;
    height: 18px;
  }
  #main_typing_indicator .main-typing-label,
  #private_typing_indicator .main-typing-label{
    font-size: 11px;
  }
}


.lens_icon::before{
  background-image: url('../default_images/lens/20.gif');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;

  display: inline-block;
}

/* =========================================================
   LEVEL SYSTEM - TEMP GLOBAL SAFE ADDON
   ضع هذا البلوك في آخر temp.css / custom.css
   ========================================================= */

/* container safety */
.chat_avatar,
.chat_frame_avatar,
.grad_small_border,
.grad_bigger_border,
.private_avatar,
.chat_savatar,
.get_info.chat_avatar,
.avtrig.chat_avatar{
    position: relative !important;
    overflow: visible !important;
}

.chat_log .flexcenter{
    position: relative !important;
    overflow: visible !important;
}

/* badge base */
.user_level_mini,
.chat_level_mini{
    position: absolute !important;
    top: -6px !important;
    right: 8px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;

    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
    font-family: Arial, Helvetica, sans-serif !important;

    text-align: center !important;
    white-space: nowrap !important;

    z-index: 4 !important;
    pointer-events: none !important;

    border: 1px solid rgba(255,255,255,.55) !important;
    box-shadow:
        0 2px 7px rgba(0,0,0,.35),
        inset 0 1px 1px rgba(255,255,255,.28) !important;
}

/* keep badge stable when quote exists */
.has_quote .user_level_mini,
.has_quote .chat_level_mini{
    top: -6px !important;
    right: 8px !important;
    left: auto !important;
    transform: none !important;
}

/* framed avatars */
.chat_frame_avatar .user_level_mini,
.chat_frame_avatar .chat_level_mini{
    top: -5px !important;
    right: 8px !important;
    z-index: 4 !important;
}

/* gradient border avatars */
.grad_small_border .user_level_mini,
.grad_small_border .chat_level_mini,
.grad_bigger_border .user_level_mini,
.grad_bigger_border .chat_level_mini{
    top: -8px !important;
    right: -8px !important;
}

/* whisper card smaller alignment */
.chat_log.whisper_card .user_level_mini,
.chat_log.whisper_card .chat_level_mini{
    top: -5px !important;
    right: -5px !important;
}

/* mobile tuning */
@media screen and (max-width: 480px){
    .user_level_mini,
    .chat_level_mini{
        top: -5px !important;
        right: 8px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
        line-height: 17px !important;
    }
}

/* ===== LEVEL BADGE COLORS ===== */
.level_elite{
    background: linear-gradient(135deg,#0B0F17 0%,#111827 42%,#000000 78%,#1f2937 100%) !important;
    color:#fff !important;
}
.level_sapphire{
    background: linear-gradient(135deg,#dbeafe 0%,#3B82F6 45%,#1E3A8A 85%,#dbeafe 100%) !important;
    color:#fff !important;
}
.level_tahiti{
    background: linear-gradient(135deg,#f3e8ff 0%,#C77DFF 40%,#7B2CBF 75%,#f3e8ff 100%) !important;
    color:#fff !important;
}
.level_ruby{
    background: linear-gradient(135deg,#ffe4e6 0%,#C1121F 45%,#780000 85%,#ffe4e6 100%) !important;
    color:#fff !important;
}
.level_emerald{
    background: linear-gradient(135deg,#d1fae5 0%,#10B981 45%,#047857 85%,#d1fae5 100%) !important;
    color:#102015 !important;
}
.level_diamond{
    background: linear-gradient(135deg,#ffffff 0%,#E9EEF5 45%,#B7C3D6 85%,#ffffff 100%) !important;
    color:#111827 !important;
}
.level_gold{
    background: linear-gradient(135deg,#fef3c7 0%,#F7C948 42%,#D99A1C 78%,#fef3c7 100%) !important;
    color:#111827 !important;
}
.level_silver{
    background: linear-gradient(135deg,#ffffff 0%,#D1D5DB 35%,#9CA3AF 68%,#E5E7EB 100%) !important;
    color:#111827 !important;
}
.level_normal{
    background: linear-gradient(135deg,#6B7280 0%,#4B5563 52%,#374151 100%) !important;
    color:#fff !important;
}

/* ===== USER LIST LEVEL BACKGROUNDS IF USED BY TEMP ===== */
.level_bg_elite,
.level_bg_elite:hover{
    background: linear-gradient(135deg,#0B0F17 0%,#111827 50%,#000000 100%) !important;
    color:#fff !important;
}
.level_bg_sapphire,
.level_bg_sapphire:hover{
    background: linear-gradient(135deg,#60A5FA 0%,#3B82F6 50%,#1E3A8A 100%) !important;
    color:#fff !important;
}
.level_bg_tahiti,
.level_bg_tahiti:hover{
    background: linear-gradient(135deg,#D8B4FE 0%,#C77DFF 45%,#7B2CBF 100%) !important;
    color:#fff !important;
}
.level_bg_ruby,
.level_bg_ruby:hover{
    background: linear-gradient(135deg,#FB7185 0%,#C1121F 50%,#780000 100%) !important;
    color:#fff !important;
}
.level_bg_emerald,
.level_bg_emerald:hover{
    background: linear-gradient(135deg,#34D399 0%,#10B981 50%,#047857 100%) !important;
    color:#102015 !important;
}
.level_bg_diamond,
.level_bg_diamond:hover{
    background: linear-gradient(135deg,#F8FAFC 0%,#CBD5E1 50%,#94A3B8 100%) !important;
    color:#111827 !important;
}
.level_bg_gold,
.level_bg_gold:hover{
    background: linear-gradient(135deg,#FDE68A 0%,#F7C948 50%,#D99A1C 100%) !important;
    color:#111827 !important;
}
.level_bg_silver,
.level_bg_silver:hover{
    background: linear-gradient(135deg,#E5E7EB 0%,#9CA3AF 50%,#6B7280 100%) !important;
    color:#111827 !important;
}
.level_bg_normal,
.level_bg_normal:hover{
    background: linear-gradient(135deg,#9CA3AF 0%,#6B7280 50%,#374151 100%) !important;
    color:#fff !important;
}

/* whisper chat log */
.chat_log.whisper_card{
    border-left: 3px solid rgba(120, 120, 120, 0.55);
}

/* whisper final style (force first visual priority) */
.chat_log.whisper_card{
    border-left: 3px solid #999 !important;
    border-right: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(90deg, rgba(153,153,153,.10) 0%, rgba(153,153,153,.03) 55%, rgba(153,153,153,0) 100%) !important;
    box-shadow: inset 0 0 0 1px rgba(153,153,153,.35) !important;
}

.chat_log.whisper_card .chat_message_block{
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.chat_log.whisper_card .chat_message{
    color: #999 !important;
    font-weight: 700 !important;
    font-style: italic !important;
}

.chat_log.whisper_card .my_notice{
    background: rgba(153,153,153,.18) !important;
    color: #999 !important;
    font-weight: 700 !important;
    font-style: italic !important;
}

.chat_log.whisper_card,
.chat_log.whisper_card .my_text,
.chat_log.whisper_card .chat_message,
.chat_log.whisper_card .my_notice,
.chat_log.whisper_card .cdate,
.chat_log.whisper_card .chat_rank,
.chat_log.whisper_card .cqname,
.chat_log.whisper_card .cqmess,
.chat_log.whisper_card .whisper_notice,
.chat_log.whisper_card .whisper_notice_inline{
    font-size: 15px !important;
}

.chat_log.whisper_card .whisper_notice{
    display: block !important;
    margin-bottom: 1px !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.chat_log.whisper_card .whisper_notice_inline{
    display: inline !important;
    margin: 0 0 0 6px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

.chat_log.whisper_card .whisper_sep_icon{
    color: #999 !important;
    margin: 0 5px !important;
}

.chat_log.whisper_card,
.chat_log.whisper_card .chat_rank,
.chat_log.whisper_card .cdate,
.chat_log.whisper_card .chat_message,
.chat_log.whisper_card .cqname,
.chat_log.whisper_card .cqmess,
.chat_log.whisper_card .my_text,
.chat_log.whisper_card .chat_message_block{
    color: #999 !important;
}

.whisper_box_modal{
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0,0,0,.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 14px;
}

.whisper_box_card{
    width: 100%;
    max-width: 420px;
    border-radius: 12px;
    overflow: hidden;
}

.whisper_box_head{
    padding: 10px 12px;
    border-bottom: 1px solid rgba(153,153,153,.25);
}

.whisper_box_user{
    display: flex;
    align-items: center;
    gap: 8px;
}

.whisper_box_avatar{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.whisper_box_usertext p{
    margin: 0;
}

.whisper_head_icon{
    margin: 0 6px;
}

.whisper_box_close{
    width: 34px;
    text-align: right;
    cursor: pointer;
}

.whisper_box_body{
    padding: 12px;
}

#whisper_box_input{
    width: 100%;
    height: 42px;
    border-radius: 8px;
    border: 1px solid rgba(153,153,153,.4);
    background: transparent;
    padding: 0 12px;
    color: inherit;
}

.whisper_box_actions{
    padding: 0 12px 12px;
    text-align: right;
}

/* ===== PROFILE LEVEL STRIP COLORS ===== */
.profile_level_strip{
    width: 100% !important;
    min-height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px 18px 0 0 !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 40px !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 15px !important;
    overflow: hidden !important;
    position: relative !important;
    z-index: 5 !important;
    color:#fff;
}
.profile_level_strip span{
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}



/* =========================================================
   FINAL SAFE PATCH - LEVELS / AVATARS / FRAMES STABILITY
   Added safely at the end only - does not remove old rules
   ========================================================= */

/* ---- Core safety: allow level badges and frames to breathe ---- */
.chat_avatar,
.chat_frame_avatar,
.grad_small_border,
.grad_bigger_border,
.private_avatar,
.chat_savatar,
.get_info.chat_avatar,
.avtrig.chat_avatar,
.chat_log .flexcenter,
.user_item_frame_avatar_new,
.toplist_avatar,
.toplist_avatar2{
    position: relative !important;
    overflow: visible !important;
}

/* ---- Protect rank / flag / frame / status images from global image radius ---- */
.chat_rank,
.list_rank,
.pro_ranking,
.list_flag,
.user_item_flag img,
.profile_border_overlay,
.ch_fr_bg,
.ul_fr_bg,
.over,
.over2,
.over3,
.overlist,
.over_pro,
.state_profile,
.state_note,
.notify_icon,
.mic-muted-icon{
    border-radius: 0 !important;
    object-fit: contain !important;
    max-width: none;
}

/* ---- Keep avatars clean and consistent only where they should be rounded ---- */
.chat_log img.cavatar,
.chat_log img.small_av,
.chat_log img.avav,
.chat_frame_avatar_inner2,
.ch_fr_av,
.ul_fr_av,
.user_item_frame_inner,
.avatar_profile,
.avatar_profile_round,
.avatar_mic,
.profile-img,
.topav_circle{
    object-fit: cover !important;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* ---- Chat avatar level badge: stronger safe layer ---- */
.user_level_mini,
.chat_level_mini{
    position: absolute !important;
    top: -6px !important;
    right: 7px !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;

    min-width: 18px !important;
    height: 18px !important;
    padding: 0 5px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border-radius: 999px !important;
    box-sizing: border-box !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 18px !important;
    letter-spacing: 0 !important;

    text-align: center !important;
    white-space: nowrap !important;

    z-index: 4 !important;
    pointer-events: none !important;

    border: 1px solid rgba(255,255,255,.62) !important;
    box-shadow:
        0 2px 7px rgba(0,0,0,.38),
        inset 0 1px 1px rgba(255,255,255,.30) !important;

    -webkit-font-smoothing: antialiased;
}

/* framed chat avatars */
.chat_frame_avatar .user_level_mini,
.chat_frame_avatar .chat_level_mini{
    top: -5px !important;
    right: 7px !important;
}

/* gradient border avatars */
.grad_small_border .user_level_mini,
.grad_small_border .chat_level_mini,
.grad_bigger_border .user_level_mini,
.grad_bigger_border .chat_level_mini{
    top: -8px !important;
    right: -7px !important;
}

/* quote / whisper safe offsets */
.has_quote .user_level_mini,
.has_quote .chat_level_mini,
.chat_log.whisper_card .user_level_mini,
.chat_log.whisper_card .chat_level_mini{
    top: -6px !important;
    right: 6px !important;
    left: auto !important;
}

/* ---- Frame alignment: keep old sizes but stabilize rendering ---- */
.chat_log .chat_frame_avatar{
    overflow: visible !important;
    flex: 0 0 auto !important;
}

.chat_log .chat_frame_avatar .chat_frame_avatar_inner2,
.chat_log .chat_frame_avatar .ch_fr_av{
    border-radius: 50% !important;
    object-fit: cover !important;
    overflow: hidden !important;
}

.chat_log .chat_frame_avatar .ch_fr_bg{
    object-fit: contain !important;
    pointer-events: none !important;
}

/* ---- User list / mini avatars safety ---- */
.user_item .user_level_mini,
.user_item .chat_level_mini,
.ulist_item .user_level_mini,
.ulist_item .chat_level_mini{
    top: -4px !important;
    right: 4px !important;
}

/* ---- Profile avatar and border protection ---- */
.modal_wrap_top.pro_top .profile_avatar,
.modal_wrap_top.pro_top .profile_avatar_inner,
.modal_wrap_top.pro_top .profile_avatar_frame{
    overflow: visible !important;
}

.modal_wrap_top.pro_top .profile_border_overlay{
    object-fit: contain !important;
    pointer-events: none !important;
    z-index: 5 !important;
}

.modal_wrap_top.pro_top .state_profile,
.modal_wrap_top.pro_top .state_note{
    border-radius: 50% !important;
    object-fit: contain !important;
    pointer-events: auto !important;
}

/* ---- Membership / profile level strip stability ---- */
.profile_membership_frame{
    position: relative !important;
    overflow: hidden !important;
    border-radius: 20px !important;
}

.profile_membership_frame > .profile_shell{
    overflow: hidden !important;
    border-radius: 0 0 20px 20px !important;
}

.profile_membership_frame .top_membership_bar,
.profile_level_strip{
    position: relative !important;
    z-index: 20 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.profile_level_strip span,
.profile_membership_frame .top_membership_title{
    display: block !important;
    max-width: 100% !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* ---- Level colors: final readable pass ---- */
.level_elite{
    background: linear-gradient(135deg,#05070c 0%,#111827 42%,#000 78%,#1f2937 100%) !important;
    color:#fff !important;
}
.level_sapphire{
    background: linear-gradient(135deg,#dbeafe 0%,#3b82f6 44%,#1e3a8a 84%,#dbeafe 100%) !important;
    color:#fff !important;
}
.level_tahiti{
    background: linear-gradient(135deg,#f3e8ff 0%,#c77dff 40%,#7b2cbf 76%,#f3e8ff 100%) !important;
    color:#fff !important;
}
.level_ruby{
    background: linear-gradient(135deg,#ffe4e6 0%,#c1121f 45%,#780000 85%,#ffe4e6 100%) !important;
    color:#fff !important;
}
.level_emerald{
    background: linear-gradient(135deg,#d1fae5 0%,#10b981 45%,#047857 85%,#d1fae5 100%) !important;
    color:#102015 !important;
}
.level_diamond{
    background: linear-gradient(135deg,#fff 0%,#e9eef5 45%,#b7c3d6 85%,#fff 100%) !important;
    color:#111827 !important;
}
.level_gold{
    background: linear-gradient(135deg,#fef3c7 0%,#f7c948 42%,#d99a1c 78%,#fef3c7 100%) !important;
    color:#111827 !important;
}
.level_silver{
    background: linear-gradient(135deg,#fff 0%,#d1d5db 35%,#9ca3af 68%,#e5e7eb 100%) !important;
    color:#111827 !important;
}
.level_normal{
    background: linear-gradient(135deg,#6b7280 0%,#4b5563 52%,#374151 100%) !important;
    color:#fff !important;
}

/* ---- Safe backgrounds if used in temp/user list ---- */
.level_bg_elite,
.level_bg_elite:hover{ background: linear-gradient(135deg,#05070c 0%,#111827 50%,#000 100%) !important; color:#fff !important; }
.level_bg_sapphire,
.level_bg_sapphire:hover{ background: linear-gradient(135deg,#60a5fa 0%,#3b82f6 50%,#1e3a8a 100%) !important; color:#fff !important; }
.level_bg_tahiti,
.level_bg_tahiti:hover{ background: linear-gradient(135deg,#d8b4fe 0%,#c77dff 45%,#7b2cbf 100%) !important; color:#fff !important; }
.level_bg_ruby,
.level_bg_ruby:hover{ background: linear-gradient(135deg,#fb7185 0%,#c1121f 50%,#780000 100%) !important; color:#fff !important; }
.level_bg_emerald,
.level_bg_emerald:hover{ background: linear-gradient(135deg,#34d399 0%,#10b981 50%,#047857 100%) !important; color:#102015 !important; }
.level_bg_diamond,
.level_bg_diamond:hover{ background: linear-gradient(135deg,#f8fafc 0%,#cbd5e1 50%,#94a3b8 100%) !important; color:#111827 !important; }
.level_bg_gold,
.level_bg_gold:hover{ background: linear-gradient(135deg,#fde68a 0%,#f7c948 50%,#d99a1c 100%) !important; color:#111827 !important; }
.level_bg_silver,
.level_bg_silver:hover{ background: linear-gradient(135deg,#e5e7eb 0%,#9ca3af 50%,#6b7280 100%) !important; color:#111827 !important; }
.level_bg_normal,
.level_bg_normal:hover{ background: linear-gradient(135deg,#9ca3af 0%,#6b7280 50%,#374151 100%) !important; color:#fff !important; }

/* ---- Effect layer stability if this CSS touches profile effects ---- */
.user-effect,
#userEffectContainer,
#userEffectVideo,
#userEffectImage{
    background: transparent !important;
    backface-visibility: hidden;
    transform: translateZ(0);
}

#userEffectVideo,
#userEffectImage{
    object-fit: cover !important;
}

/* ---- Safari / mobile performance safety ---- */
@supports (-webkit-touch-callout: none){
    .user_level_mini,
    .chat_level_mini,
    .avatar_profile,
    .avatar_profile_round,
    .chat_frame_avatar_inner2,
    .ch_fr_av{
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
    }
}

@media screen and (max-width: 480px){
    .user_level_mini,
    .chat_level_mini{
        top: -5px !important;
        right: 6px !important;
        min-width: 17px !important;
        height: 17px !important;
        padding: 0 4px !important;
        font-size: 9px !important;
        line-height: 17px !important;
    }

    .chat_frame_avatar .user_level_mini,
    .chat_frame_avatar .chat_level_mini{
        top: -5px !important;
        right: 6px !important;
    }

    .grad_small_border .user_level_mini,
    .grad_small_border .chat_level_mini,
    .grad_bigger_border .user_level_mini,
    .grad_bigger_border .chat_level_mini{
        top: -6px !important;
        right: -6px !important;
    }

    .profile_level_strip,
    .profile_membership_frame .top_membership_bar{
        min-height: 38px !important;
        font-size: 15px !important;
    }
}

/* Top save notification (v10 style) */
#top_notify{
    position: fixed;
    top: 10px;
    right: auto;
    left: 10px;
    width: min(300px, calc(100vw - 20px));
    z-index: 10030;
    pointer-events: none;
}
.top_notify{
    pointer-events: auto;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    animation: topNotifyIn .22s ease-out;
}
.top_notify_wrap{
    padding: 8px 10px !important;
}
.top_notify_text{
    font-size: 13px;
    line-height: 1.3;
    font-weight: 500;
}
.top_notify_icon{
    width: 20px;
    text-align: center;
    font-size: 14px;
}
.top_notify_icon i{
    display: inline-block;
    vertical-align: middle;
}
.top_notify_btn{
    width: 24px;
    text-align: center;
    cursor: pointer;
    opacity: .72;
    font-size: 11px;
}
.top_notify_btn:hover{
    opacity: 1;
}
.top_notify_type_1{
    color: #2da44e;
}
.top_notify_type_2{
    color: #d29922;
}
.top_notify_type_3{
    color: #cf222e;
}
@keyframes topNotifyIn{
    from{
        opacity: 0;
        transform: translateY(-8px);
    }
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 768px){
    #top_notify{
        top: 8px;
        right: auto;
        left: 8px;
        width: min(280px, calc(100vw - 16px));
    }
    .top_notify_text{
        font-size: 12px;
    }
}

/* ===================================
   Final avatar/frame fix (profile + chat)
=================================== */

/* profile avatar stays circular in all states */
.modal_wrap_top.pro_top .avatar_spin{
    border-radius: 50% !important;
    overflow: hidden !important;
}

.modal_wrap_top.pro_top .avatar_profile,
.modal_wrap_top.pro_top .avatar_profile_round{
    border-radius: 50% !important;
}

/* keep framed profile container rounded */
.modal_wrap_top.pro_top .profile_avatar_frame{
    border-radius: 50% !important;
}

/* hide frame image if it is empty or missing src */
.chat_frame_avatar .ch_fr_bg:not([src]),
.chat_frame_avatar .ch_fr_bg[src=""],
.profile_border_overlay:not([src]),
.profile_border_overlay[src=""]{
    display: none !important;
}
