﻿
:root {
  --profile-frame-radius: 22px;
  --pf-left: 8%;
  --pf-top: 10%;
  --pf-size: clamp(140px, 18vw, 210px);
}

.settings-modal.shell {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  background: transparent;
  border: none;
  box-shadow: none;
}

.settings-body {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.settings-modal.shell--history,
.settings-modal.shell--history .settings-body {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.settings-modal.shell--history .settings-body {
  overflow: hidden;
  padding: 12px;
  align-items: stretch;
  justify-content: stretch;
}

.settings-modal.shell--history .settings-scroll-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px 6px 6px;
  align-items: flex-start;
  justify-content: stretch;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.settings-modal.shell--history .settings-scroll-shell::-webkit-scrollbar {
  width: 10px;
}

.settings-modal.shell--history .settings-scroll-shell::-webkit-scrollbar-track {
  margin-block: 16px;
  background: transparent;
}

.settings-modal.shell--history .settings-scroll-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: color-mix(in srgb, var(--border-medium) 72%, transparent);
  background-clip: padding-box;
}

.settings-modal.shell--history .settings-scroll-shell::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--link-color) 46%, var(--border-medium) 54%);
  background-clip: padding-box;
}

.settings-modal.shell--people,
.settings-modal.shell--people .settings-body {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.settings-modal.shell--people .settings-header,
.settings-modal.shell--people .settings-close,
.settings-modal.shell--people .settings-title {
  display: none !important;
}

.settings-modal.shell--people .settings-body {
  overflow: hidden;
  padding: 12px;
  align-items: stretch;
  justify-content: stretch;
}

.settings-modal.shell--people .settings-scroll-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px 6px 6px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.settings-modal.shell--people .settings-scroll-shell::-webkit-scrollbar {
  width: 10px;
}

.settings-modal.shell--people .settings-scroll-shell::-webkit-scrollbar-track {
  margin-block: 16px;
  background: transparent;
}

.settings-modal.shell--people .settings-scroll-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: color-mix(in srgb, var(--border-medium) 72%, transparent);
  background-clip: padding-box;
}

.settings-modal.shell--people .settings-scroll-shell::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--link-color) 46%, var(--border-medium) 54%);
  background-clip: padding-box;
}

.settings-modal.shell--notifications,
.settings-modal.shell--notifications .settings-body {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.settings-modal.shell--notifications .settings-header,
.settings-modal.shell--notifications .settings-close,
.settings-modal.shell--notifications .settings-title {
  display: none !important;
}

.settings-modal.shell--notifications .settings-body {
  overflow: hidden;
  padding: 12px;
  align-items: stretch;
  justify-content: stretch;
}

.settings-modal.shell--notifications .settings-scroll-shell {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 10px 6px 6px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.settings-modal.shell--notifications .settings-scroll-shell::-webkit-scrollbar {
  width: 10px;
}

.settings-modal.shell--notifications .settings-scroll-shell::-webkit-scrollbar-track {
  margin-block: 16px;
  background: transparent;
}

.settings-modal.shell--notifications .settings-scroll-shell::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid transparent;
  background: color-mix(in srgb, var(--border-medium) 72%, transparent);
  background-clip: padding-box;
}

.settings-modal.shell--notifications .settings-scroll-shell::-webkit-scrollbar-thumb:hover {
  background: color-mix(in srgb, var(--link-color) 46%, var(--border-medium) 54%);
  background-clip: padding-box;
}

.social-confirm-overlay {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 10, 24, 0.72);
}

.social-confirm-card {
  width: min(420px, 100%);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 23, 50, 0.98), rgba(10, 13, 30, 0.98));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
}

.social-confirm-card__identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.social-confirm-card__avatar,
.social-confirm-card__avatar-fallback {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  flex-shrink: 0;
}

.social-confirm-card__avatar {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.social-confirm-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-confirm-card__avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
}

.social-confirm-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.social-confirm-card__title {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
}

.social-confirm-card__name {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 700;
}

.social-confirm-card__copy {
  color: var(--color-text-dim);
  font-size: 0.85rem;
  line-height: 1.7;
}

.social-confirm-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.social-confirm-card__action {
  min-width: 110px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.social-confirm-card__action--confirm {
  border-color: rgba(255, 169, 76, 0.28);
  background: linear-gradient(135deg, rgba(201, 98, 35, 0.96), rgba(255, 152, 61, 0.94));
  color: #fff;
}

.social-confirm-card__action--warn {
  border-color: rgba(255, 169, 76, 0.28);
  background: linear-gradient(135deg, rgba(201, 98, 35, 0.96), rgba(255, 152, 61, 0.94));
  color: #fff;
}

.social-confirm-card__action--danger {
  border-color: rgba(255, 102, 102, 0.3);
  background: linear-gradient(135deg, rgba(147, 32, 48, 0.98), rgba(220, 58, 77, 0.94));
  color: #fff;
}

.social-confirm-card__action[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.settings-modal.shell--messages,
.settings-modal.shell--messages .settings-body,
.messages-hub-root {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.settings-modal.shell--messages .settings-body,
.messages-hub-root {
  flex: 1 1 auto;
  display: flex;
}

.member-modal--messages {
  padding: 0;
  overflow: hidden;
  background: rgba(7, 10, 24, 0.98);
}

.profile-hero-uid {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: min(calc(100% - 36px), 420px);
  padding: 0;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1;
  z-index: 3;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.profile-hero-uid--centered {
  left: 50%;
  top: calc(var(--pf-top) + var(--pf-size) + 100px);
  transform: translateX(-50%);
}

.profile-hero-uid__value {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-hero-uid.is-copied {
  color: #66df97;
}

.profile-hero-uid.is-copied::after {
  content: 'تم النسخ';
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(9, 12, 30, 0.96);
  color: #fff;
  font-size: 0.68rem;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.profile-hero-blank {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 12px;
  background: transparent;
}

.profile-hero-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--profile-frame-radius);
  background: transparent;
  overflow: hidden;
}

.profile-hero-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden;
  direction: ltr;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-hero-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.profile-hero-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.profile-hero-scroll::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 4px;
}

.profile-hero-canvas {
  position: relative;
  width: 100%;
  min-height: 100%;
  height: 100%;
  direction: rtl;
}

.profile-banner-zone {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--pf-top) + (var(--pf-size) * 0.72));
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 1;
}

.profile-banner-zone__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  display: block;
  pointer-events: none;
}

.profile-background-zone {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--pf-top) + (var(--pf-size) * 0.72) + 1px);
  bottom: 0;
  border-radius: 0 0 22px 22px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.profile-background-zone__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
  opacity: 0.78;
}

.profile-menu-btn {
  position: relative;
  width: 22px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
  z-index: 3;
  flex: 0 0 auto;
  cursor: pointer;
}

.profile-menu-btn span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.profile-menu-anchor {
  position: absolute;
  right: 18px;
  top: calc(var(--pf-top) + (var(--pf-size) * 0.72) + 10px);
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 4;
}

.profile-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  transform: none;
  min-width: 154px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(12, 16, 37, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
  z-index: 4;
}

.profile-menu-popover[hidden] {
  display: none !important;
}

.profile-menu-popover__item {
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.profile-menu-popover__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.profile-menu-popover__item[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.profile-edit-banner-tools,
.profile-edit-avatar-tools,
.profile-edit-frame-tools,
.profile-edit-name-tools,
.profile-edit-background-tools {
  position: absolute;
  z-index: 4;
}

.profile-edit-banner-tools {
  top: 38px;
  right: 28px;
}

.profile-edit-avatar-tools {
  left: calc(var(--pf-left) + var(--pf-size) - 48px);
  top: calc(var(--pf-top) + var(--pf-size) - 62px);
}

.profile-edit-frame-tools {
  left: calc(var(--pf-left) + var(--pf-size) - 10px);
  top: calc(var(--pf-top) + 10px);
}

.profile-edit-name-tools {
  left: calc(var(--pf-left) + (var(--pf-size) / 2) + 64px);
  top: calc(var(--pf-top) + var(--pf-size) + 4px);
}

.profile-edit-background-tools {
  right: 24px;
  bottom: 108px;
}

.profile-edit-tool {
  min-width: 108px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 16, 37, 0.96);
  color: var(--color-text);
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

.profile-edit-tool--icon {
  min-width: 34px;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
}

.profile-edit-tool--icon .icon {
  width: 14px;
  height: 14px;
}

.profile-edit-tool--primary {
  background: linear-gradient(135deg, #2b7cff, #26c5ff);
  border-color: transparent;
  color: #fff;
}

.profile-hero-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--pf-top) + (var(--pf-size) * 0.72));
  border-top: 1px solid var(--color-border);
  z-index: 2;
}

.profile-hero-circle {
  position: absolute;
  width: var(--pf-size);
  height: var(--pf-size);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  left: var(--pf-left);
  top: var(--pf-top);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: rgba(16, 20, 46, 0.92);
  overflow: visible;
  z-index: 3;
}

.profile-hero-circle__image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 50%;
  transform-origin: center center;
  will-change: transform;
  pointer-events: none;
}

.profile-hero-circle__frame {
  position: absolute;
  inset: -12%;
  z-index: 4;
  pointer-events: none;
}

.profile-hero-circle__frame.is-empty {
  display: none;
}

.profile-hero-circle__frame-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  display: block;
}

.profile-side-panel {
  position: absolute;
  left: calc(var(--pf-left) - 0.5%);
  top: calc(var(--pf-top) + var(--pf-size) + 22px);
  width: calc(var(--pf-size) + 10px);
  bottom: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: rgba(14, 17, 37, 0.3);
}

.profile-hero-name {
  margin: 0;
  color: var(--color-text);
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
}

.profile-name-editor {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.profile-name-editor__input {
  width: min(220px, 100%);
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: clamp(1.2rem, 1.6vw, 1.8rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  direction: inherit;
  unicode-bidi: plaintext;
}

.profile-name-editor__input::placeholder {
  color: var(--color-text-dim);
}

.profile-hero-text {
  position: absolute;
  width: var(--pf-size);
  left: calc(var(--pf-left) + (var(--pf-size) / 2));
  top: calc(var(--pf-top) + var(--pf-size) + 22px);
  transform: translateX(-50%);
  text-align: center;
  z-index: 3;
}

.profile-meta-icons {
  position: absolute;
  left: calc(var(--pf-left) + var(--pf-size) + 22px);
  top: calc(var(--pf-top) + (var(--pf-size) * 0.72) + 10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 3;
}

.profile-meta-icon {
  width: 44px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(12, 15, 34, 0.92);
  color: #fff;
  cursor: default;
  z-index: 3;
}

.profile-meta-icon--flag {
  overflow: hidden;
}

.profile-meta-icon .icon {
  width: 16px;
  height: 16px;
}

.profile-meta-icon__flag {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 11px;
}

.profile-meta-icons--other-copy {
  gap: 10px;
}

.profile-meta-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.profile-meta-action {
  min-width: 22px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.profile-meta-action[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
}

.profile-meta-action .icon {
  width: 22px;
  height: 22px;
  transform: scale(1.36);
  transform-origin: center center;
}

.profile-actions-row {
  position: absolute;
  right: 18px;
  top: calc(var(--pf-top) + var(--pf-size) + 14px);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

.profile-action-chip {
  min-width: 76px;
  height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(12, 15, 34, 0.96);
  cursor: pointer;
  color: var(--color-text);
}

.profile-action-chip--disabled:disabled {
  cursor: default;
  opacity: 0.55;
}

.profile-bio-slot {
  position: absolute;
  left: calc(var(--pf-left) + var(--pf-size) + 28px);
  right: 18px;
  top: calc(var(--pf-top) + var(--pf-size) + 82px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 0 22px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: rgba(12, 15, 34, 0.94);
  z-index: 2;
}

.profile-bio-slot__text {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  unicode-bidi: plaintext;
}

.profile-bio-slot__value {
  display: inline-block;
  max-width: 100%;
  text-align: center;
  direction: inherit;
  unicode-bidi: plaintext;
}

.profile-tabs-zone {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  top: calc(var(--pf-top) + var(--pf-size) + 160px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--color-border);
  z-index: 2;
}

.profile-tabs-zone__hint {
  color: rgba(255, 255, 255, 0.18);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
}

.profile-edit-footer-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 286px;
  min-height: 84px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(12, 15, 34, 0.94);
}

.profile-edit-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.profile-edit-footer-frame.profile-edit-footer-frame--attention {
  animation: profile-edit-attention 0.9s ease;
}

@keyframes profile-edit-attention {
  0% { box-shadow: 0 0 0 0 rgba(43, 124, 255, 0); }
  30% { box-shadow: 0 0 0 2px rgba(43, 124, 255, 0.75); }
  60% { box-shadow: 0 0 0 2px rgba(38, 197, 255, 0.65); }
  100% { box-shadow: 0 0 0 0 rgba(43, 124, 255, 0); }
}

.profile-hero-frame--self .profile-actions-row {
  display: none;
}

.profile-hero-frame--self .profile-side-panel {
  display: none;
}

.profile-hero-frame--self .profile-bio-slot {
  left: 50%;
  top: calc(var(--pf-top) + var(--pf-size) + 50px);
  right: auto;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 120px));
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-hero-frame--self .profile-hero-uid--centered {
  top: calc(var(--pf-top) + var(--pf-size) + 98px);
}

.profile-hero-frame--self .profile-bio-slot__text {
  font-size: 0.98rem;
}

.profile-hero-frame--other-copy .profile-bio-slot {
  left: 50%;
  top: calc(var(--pf-top) + var(--pf-size) + 50px);
  right: auto;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 120px));
  min-height: 46px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-hero-frame--other-copy .profile-bio-slot__text {
  font-size: 0.98rem;
}

.profile-hero-frame--other-copy .profile-hero-uid--centered {
  top: calc(var(--pf-top) + var(--pf-size) + 98px);
}

.profile-hero-frame--other-copy .profile-tabs-zone {
  top: calc(var(--pf-top) + var(--pf-size) + 116px);
}

.profile-hero-frame--edit .profile-bio-slot {
  left: 18px;
  right: 18px;
  width: auto;
  transform: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(12, 15, 34, 0.94);
  padding: 10px 14px;
  min-height: 54px;
}

.profile-bio-editor {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-bio-editor__edit {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-dim);
  cursor: pointer;
  flex-shrink: 0;
  order: 2;
}

.profile-bio-editor__input {
  width: 100%;
  min-height: 28px;
  height: 28px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.98rem;
  line-height: 28px;
  text-align: center;
  direction: inherit;
  unicode-bidi: plaintext;
  overflow: hidden;
}

.profile-avatar-sheet {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(6, 8, 19, 0.78);
  z-index: 6;
}

.profile-avatar-sheet__card {
  width: min(720px, 100%);
  max-height: min(84vh, 640px);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(12, 15, 34, 0.98);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34);
}

.profile-avatar-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-avatar-sheet__header-actions {
  display: inline-flex;
  align-items: center;
  direction: rtl;
  gap: 10px;
  padding: 6px;
  border-radius: 16px;
}

.profile-avatar-sheet__header-actions--attention {
  animation: profile-avatar-sheet-attention 0.9s ease;
}

@keyframes profile-avatar-sheet-attention {
  0% { box-shadow: 0 0 0 0 rgba(43, 124, 255, 0); }
  30% { box-shadow: 0 0 0 2px rgba(43, 124, 255, 0.72); }
  60% { box-shadow: 0 0 0 2px rgba(38, 197, 255, 0.62); }
  100% { box-shadow: 0 0 0 0 rgba(43, 124, 255, 0); }
}

.profile-media-adjuster {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-media-adjuster__preview {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.profile-media-adjuster__surface {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 12, 30, 0.94);
  cursor: grab;
}

.profile-media-adjuster__surface:active {
  cursor: grabbing;
}

.profile-media-adjuster__preview--avatar .profile-media-adjuster__surface {
  width: 136px;
  height: 136px;
  border-radius: 50%;
}

.profile-media-adjuster__preview--frame .profile-media-adjuster__surface {
  width: 136px;
  height: 136px;
  border-radius: 50%;
}

.profile-media-adjuster__preview--banner .profile-media-adjuster__surface {
  height: 92px;
  border-radius: 18px;
}

.profile-media-adjuster__preview--background .profile-media-adjuster__surface {
  height: 150px;
  border-radius: 18px;
}

.profile-media-adjuster__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform-origin: center center;
  will-change: transform;
}

.profile-media-adjuster__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform;
  display: block;
}

.profile-media-adjuster__preview--frame .profile-media-adjuster__image {
  border-radius: 50%;
}

.profile-media-adjuster__frame {
  position: absolute;
  inset: -12%;
  z-index: 3;
  pointer-events: none;
}

.profile-media-adjuster__frame.is-empty {
  display: none;
}

.profile-media-adjuster__frame-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
  display: block;
}

.profile-media-adjuster__controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-media-adjuster__scale {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
}

.profile-media-adjuster__scale input {
  width: 100%;
}

.profile-media-adjuster__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.profile-media-adjuster__hint {
  color: var(--color-text-dim);
  font-size: 0.8rem;
  margin-inline-start: auto;
}

.profile-media-adjuster__zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-avatar-sheet__title {
  color: var(--color-text);
  font-size: 1.05rem;
  font-weight: 800;
}

.profile-avatar-sheet__close,
.profile-avatar-sheet__action {
  min-width: 74px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(12, 16, 37, 0.96);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.profile-avatar-sheet__action--apply {
  background: linear-gradient(135deg, #2d68ff, #26c5ff);
  border-color: rgba(67, 172, 255, 0.42);
  color: #fff;
}

.profile-avatar-sheet__action--cancel {
  background: rgba(12, 16, 37, 0.96);
  color: var(--color-text);
}

.profile-avatar-sheet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 14px;
  overflow-y: auto;
  padding-inline-end: 4px;
  min-height: 0;
}

.profile-avatar-sheet__grid--media {
  flex: 1 1 auto;
  align-content: start;
}

.profile-avatar-sheet__grid::-webkit-scrollbar {
  width: 4px;
}

.profile-avatar-sheet__grid::-webkit-scrollbar-track {
  background: transparent;
}

.profile-avatar-sheet__grid::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 4px;
}

.profile-avatar-option,
.profile-avatar-upload-soon {
  min-height: 96px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(17, 20, 42, 0.96);
  cursor: pointer;
}

.profile-avatar-option img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
}

.profile-avatar-sheet--frame .profile-avatar-option img {
  width: 100%;
  height: 76px;
  object-fit: contain;
  border-radius: 0;
}

.profile-avatar-option--none {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(17, 20, 42, 0.96);
}

.profile-avatar-option__none {
  color: var(--color-text-dim);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-flag-sheet__grid {
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
}

.profile-flag-sheet__search {
  display: flex;
  align-items: center;
}

.profile-flag-search {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 13, 30, 0.96);
  color: var(--color-text);
  font: inherit;
  padding: 0 14px;
  outline: none;
}

.profile-flag-option {
  min-height: 112px;
  flex-direction: column;
  gap: 10px;
}

.profile-flag-option img {
  height: 44px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  border-radius: 4px;
}

.profile-flag-option__name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.35;
  text-align: center;
}

.profile-flag-sheet__empty {
  color: var(--color-text-dim);
  font-size: 0.9rem;
  text-align: center;
  padding: 6px 0 2px;
}

.profile-avatar-sheet--avatar .profile-avatar-option img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-option.is-active {
  border-color: #2db1ff;
  box-shadow: 0 0 0 1px rgba(45, 177, 255, 0.45);
}

.profile-avatar-upload-soon {
  flex-direction: column;
  gap: 8px;
  cursor: default;
  color: var(--color-text-dim);
}

.profile-avatar-upload-soon__title {
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 700;
}

.profile-avatar-upload-soon__hint {
  font-size: 0.86rem;
}

.profile-hero-frame--self .profile-tabs-zone {
  top: calc(var(--pf-top) + var(--pf-size) + 116px);
}

.settings-modal.shell--blank .settings-sidebar { display: none; }
.settings-modal.shell--blank .settings-content { padding: 0; }

@media (max-width: 920px) {
  .profile-banner-zone {
    top: 0;
    left: 0;
    right: 0;
    height: calc(var(--pf-top) + (var(--pf-size) * 0.72));
  }

  .profile-menu-anchor {
    right: 14px;
  }

  .profile-actions-row {
    right: 14px;
    gap: 8px;
  }

  .profile-action-chip {
    min-width: 64px;
    padding: 0 14px;
  }

  .profile-meta-icons--other-copy {
    gap: 10px;
  }

  .profile-meta-actions-group {
    gap: 14px;
  }

  .profile-bio-slot {
    left: 18px;
    top: calc(var(--pf-top) + var(--pf-size) + 132px);
  }

  .profile-hero-uid--centered {
    top: calc(var(--pf-top) + var(--pf-size) + 176px);
    max-width: calc(100% - 44px);
  }

  .profile-tabs-zone {
    top: calc(var(--pf-top) + var(--pf-size) + 218px);
  }

  .profile-meta-action .icon {
    width: 20px;
    height: 20px;
    transform: scale(1.24);
  }

  .profile-hero-frame--other-copy .profile-meta-icons {
    left: calc(var(--pf-left) + var(--pf-size) + 14px);
  }

  .profile-side-panel {
    width: calc(var(--pf-size) + 4px);
  }
}

.messages-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(9, 10, 26, 0.75);
}

.messages-shell--list-only {
  grid-template-columns: 1fr;
}

.messages-shell--thread-only {
  grid-template-columns: 1fr;
}

.messages-shell--loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--color-border);
  background: rgba(14, 16, 36, 0.88);
}

.messages-shell--list-only .messages-sidebar {
  border-left: 0;
}

.messages-shell--list-only .messages-sidebar__footer,
.messages-shell--list-only .messages-panel,
.messages-shell--list-only .messages-panel__notice--list {
  display: none;
}

.messages-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
}

.messages-sidebar__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.messages-shell .settings-cta {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: linear-gradient(135deg, #7266ff, #1ab6ff);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
}

.settings-cta--ghost {
  background: transparent;
  color: var(--color-text);
}

.history-panel__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.history-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  direction: rtl;
  text-align: right;
}

.history-panel__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--link-color) 12%, transparent), transparent 42%),
    linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.history-panel__eyebrow,
.profile-stats-panel__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--link-color);
}

.history-panel__title {
  margin-top: 6px;
}

.history-panel__hero-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.history-panel__state {
  min-height: 112px;
  align-items: center;
  border-radius: 22px;
  background: var(--surface-elevated);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.history-panel__state--error {
  border-color: color-mix(in srgb, var(--danger-color) 28%, transparent);
}

.history-panel__state-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
}

.history-panel__stat-card {
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background:
    linear-gradient(180deg, var(--surface-elevated), var(--surface-muted));
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.history-panel__stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 700;
}

.history-panel__stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.history-panel__stat-value--win {
  color: var(--color-success);
}

.history-panel__stat-value--loss {
  color: var(--color-danger);
}

.history-panel__stat-value--draw {
  color: var(--color-warning);
}

.history-panel__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-panel__row {
  cursor: pointer;
  align-items: center;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}

.history-panel__row:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--link-color) 28%, transparent);
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-hover));
  box-shadow: var(--shadow-md);
}

.history-panel__row:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.history-panel__row-text {
  gap: 6px;
}

.history-panel__row-title {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 900;
}

.history-panel__row-meta {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.7;
}

.history-panel__row-date {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.history-panel__row-action {
  align-self: center;
}

.history-panel__result-badge {
  min-width: 88px;
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  border: 1px solid transparent;
}

.history-panel__result-badge--win {
  color: var(--color-success);
  background: rgba(46, 204, 113, 0.12);
  border-color: rgba(46, 204, 113, 0.2);
}

.history-panel__result-badge--loss {
  color: var(--color-danger);
  background: rgba(231, 76, 60, 0.12);
  border-color: rgba(231, 76, 60, 0.2);
}

.history-panel__result-badge--draw {
  color: var(--color-warning);
  background: rgba(243, 156, 18, 0.12);
  border-color: rgba(243, 156, 18, 0.2);
}

.profile-stats-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  min-height: 100%;
  direction: rtl;
  text-align: right;
}

.profile-stats-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--link-color) 12%, transparent), transparent 42%),
    linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.profile-stats-panel__back {
  min-width: 92px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--surface-elevated) 80%, transparent);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.profile-stats-panel__heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.profile-stats-panel__title {
  font-size: 1.16rem;
  font-weight: 900;
  color: var(--text-main);
}

.profile-stats-panel__subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-stats-panel__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 2px;
  flex-wrap: wrap;
}

.profile-stats-panel__tab {
  min-width: 96px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-medium);
  background: var(--surface-color);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.profile-stats-panel__tab.is-active {
  color: var(--text-main);
  border-color: var(--link-color);
  background: var(--surface-hover);
  box-shadow: var(--shadow-sm);
}

.profile-stats-panel__body {
  flex: 1 1 auto;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.profile-stats-panel__stats {
  margin-bottom: 0;
}

.profile-stats-panel__notice {
  margin-top: 16px;
  border-radius: 20px;
  background: var(--surface-muted);
  border-color: var(--border-light);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--border-light) 70%, transparent);
}

@media (max-width: 780px) {
  .history-panel__hero,
  .profile-stats-panel__header,
  .people-panel__hero {
    flex-direction: column;
    align-items: stretch;
  }

  .history-panel__stats,
  .profile-stats-panel__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .history-panel__row {
    align-items: flex-start;
    gap: 14px;
  }

  .history-panel__row-action {
    align-self: flex-start;
  }
}

.messages-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 16px;
  padding: 0 12px;
  height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(8, 10, 24, 0.85);
  color: var(--color-text-dim);
}

.messages-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.messages-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 10px;
}

.messages-sidebar__footer {
  padding: 10px 16px 14px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-dim);
  font-size: 0.78rem;
  line-height: 1.7;
}

.messages-thread {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(18, 20, 44, 0.75);
  color: var(--color-text);
  text-align: right;
  cursor: pointer;
}

.messages-thread:hover,
.messages-thread.is-active {
  border-color: rgba(122, 104, 255, 0.45);
  background: rgba(43, 46, 88, 0.72);
}

.messages-thread__avatar {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.messages-thread__avatar-img,
.messages-panel__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
  display: block;
}

.messages-thread__status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(18, 20, 44, 0.95);
}

.messages-thread__status--online {
  background: #16a34a;
}

.messages-thread__status--offline {
  background: #7f1d1d;
}

.messages-thread__body {
  flex: 1;
  min-width: 0;
}

.messages-thread__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.messages-thread__name {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text);
}

.messages-thread__time {
  font-size: 0.72rem;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.messages-thread__preview {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--color-text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.messages-thread__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7266ff, #1ab6ff);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.messages-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: rgba(12, 14, 34, 0.88);
}

.messages-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
}

.messages-panel__notice {
  padding: 10px 18px;
  border-bottom: 1px solid rgba(255, 118, 118, 0.25);
  background: rgba(92, 16, 28, 0.35);
  color: #ffd6d6;
  font-size: 0.84rem;
}

.messages-panel__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.messages-back-btn {
  height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: rgba(8, 10, 24, 0.7);
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
}

.messages-panel__avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  flex-shrink: 0;
}

.messages-panel__identity {
  min-width: 0;
}

.messages-panel__name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-text);
}

.messages-panel__uid {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

.messages-copy-btn {
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  font-size: 0.72rem;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
}

.messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.messages-bubble {
  max-width: 72%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  background: rgba(18, 22, 48, 0.95);
}

.messages-bubble--me {
  align-self: flex-start;
  background: rgba(55, 72, 165, 0.4);
  border-color: rgba(114, 102, 255, 0.45);
}

.messages-bubble--them {
  align-self: flex-end;
}

.messages-bubble--failed {
  border-color: rgba(255, 118, 118, 0.45);
}

.messages-bubble__text {
  font-size: 0.92rem;
  color: var(--color-text);
  line-height: 1.8;
  word-break: break-word;
}

.messages-bubble__time {
  margin-top: 6px;
  font-size: 0.68rem;
  color: var(--color-text-dim);
}

.messages-composer {
  border-top: 1px solid var(--color-border);
  padding: 14px 18px 16px;
}

.messages-composer__input {
  width: 100%;
  min-height: 92px;
  resize: none;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: rgba(8, 10, 24, 0.85);
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  line-height: 1.8;
  padding: 12px 14px;
  outline: none;
}

.messages-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.messages-composer__count {
  font-size: 0.76rem;
  color: var(--color-text-dim);
}

.messages-empty-side,
.messages-empty-feed,
.messages-empty-main {
  color: var(--color-text-dim);
  font-size: 0.9rem;
}

.messages-empty-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.messages-empty-main__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.messages-start-box {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messages-start-box__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.messages-start-box__input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: rgba(8, 10, 24, 0.85);
  color: var(--color-text);
  font-family: 'Cairo', sans-serif;
  font-size: 0.9rem;
  padding: 0 14px;
  outline: none;
}

.messages-start-note {
  max-width: 420px;
  color: var(--color-text-dim);
  font-size: 0.8rem;
  line-height: 1.8;
}

.notifications-center {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 18px;
  background: linear-gradient(180deg, rgba(12, 16, 36, 0.98), rgba(8, 10, 24, 0.98));
}

.notifications-center__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(20, 28, 62, 0.94), rgba(15, 68, 120, 0.76));
}

.notifications-center__hero-copy {
  min-width: 0;
}

.notifications-center__hero-title {
  color: var(--color-text);
  font-size: 1.08rem;
  font-weight: 800;
}

.notifications-center__hero-text {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  line-height: 1.65;
}

.notifications-center__hero-badge {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 107, 107, 0.96);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notifications-center__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.notifications-center__stat {
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.notifications-center__stat-value {
  color: var(--color-text);
  font-size: 1.1rem;
  font-weight: 800;
}

.notifications-center__stat-label {
  margin-top: 4px;
  color: var(--color-text-dim);
  font-size: 0.78rem;
}

.notifications-center__filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notifications-center__filter {
  min-width: 88px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
}

.notifications-center__filter.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(45, 104, 255, 0.94), rgba(38, 197, 255, 0.92));
  color: #fff;
}

.notifications-center__filter-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notifications-center__filter.is-active .notifications-center__filter-count {
  background: rgba(255, 255, 255, 0.18);
}

.notifications-center__list {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

.notifications-center__list::-webkit-scrollbar {
  width: 5px;
}

.notifications-center__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.notifications-center__card {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(15, 19, 42, 0.94);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.notifications-center__card.is-unread {
  border-color: rgba(255, 107, 107, 0.24);
  box-shadow: inset 3px 0 0 rgba(255, 107, 107, 0.9);
}

.notifications-center__card.is-openable {
  cursor: pointer;
}

.notifications-center__card.is-openable:hover,
.notifications-center__card.is-openable:focus-visible {
  border-color: rgba(80, 166, 255, 0.3);
  background: rgba(20, 28, 58, 0.96);
  transform: translateY(-1px);
  outline: none;
}

.notifications-center__card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.notifications-center__identity {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1 1 auto;
}

.notifications-center__avatar {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.notifications-center__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notifications-center__identity-text {
  min-width: 0;
  flex: 1 1 auto;
}

.notifications-center__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.notifications-center__title {
  color: var(--color-text);
  font-size: 0.96rem;
  font-weight: 800;
}

.notifications-center__status {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
}

.notifications-center__status--pending {
  background: rgba(255, 169, 76, 0.16);
  color: #ffd79b;
}

.notifications-center__status--accepted {
  background: rgba(59, 209, 127, 0.16);
  color: #a6f0c4;
}

.notifications-center__status--rejected,
.notifications-center__status--cancelled {
  background: rgba(255, 107, 107, 0.14);
  color: #ffc6cd;
}

.notifications-center__meta,
.notifications-center__submeta,
.notifications-center__time,
.notifications-center__summary,
.notifications-center__ready {
  color: var(--color-text-dim);
  font-size: 0.78rem;
}

.notifications-center__meta {
  margin-top: 6px;
}

.notifications-center__submeta {
  margin-top: 4px;
  opacity: 0.85;
}

.notifications-center__time {
  flex-shrink: 0;
  white-space: nowrap;
}

.notifications-center__card-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.notifications-center__summary {
  line-height: 1.8;
}

.notifications-center__ready {
  color: rgba(125, 210, 255, 0.96);
  font-weight: 700;
}

.notifications-center__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notifications-center__state {
  flex: 1 1 auto;
  min-height: 220px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

.notifications-center__state-title {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
}

.notifications-center__state-copy {
  max-width: 420px;
  color: var(--color-text-dim);
  font-size: 0.84rem;
  line-height: 1.8;
}

.notifications-center__state--error {
  border-style: solid;
  border-color: rgba(255, 171, 76, 0.24);
  background: rgba(201, 98, 35, 0.12);
}

.notifications-center {
  width: 100%;
  min-height: 100%;
  direction: rtl;
  text-align: right;
}

.notifications-center__hero,
.notifications-center__filters {
  margin-bottom: 10px;
}

.people-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  padding: 0;
  direction: rtl;
  text-align: right;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--link-color) 12%, transparent), transparent 32%),
    linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
}

.people-panel__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--link-color) 12%, transparent), transparent 42%),
    linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.people-panel__eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--link-color);
}

.people-panel__title {
  margin-top: 6px;
  color: var(--text-main);
  font-size: 1.14rem;
  font-weight: 900;
}

.people-panel__hero-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: color-mix(in srgb, var(--surface-elevated) 84%, transparent);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.people-panel__tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 2px 0;
}

.people-panel__tab {
  min-width: 88px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  background: var(--surface-color);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.people-panel__tab.is-active {
  background: var(--surface-hover);
  border-color: var(--link-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.people-panel__tab-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--danger-color) 82%, white 18%);
  color: var(--text-inverse);
  font-size: 0.73rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.people-panel__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.people-panel__search {
  flex: 1 1 340px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.people-panel__search-input {
  flex: 1 1 auto;
  height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--surface-muted);
  color: var(--text-main);
  font-family: 'Cairo', sans-serif;
  font-size: 0.92rem;
  padding: 0 14px;
  outline: none;
}

.people-panel__search-btn {
  min-width: 78px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--info-color) 80%, white 20%), color-mix(in srgb, var(--link-color) 80%, white 20%));
  color: var(--text-inverse);
  font: inherit;
  cursor: pointer;
}

.people-panel__hint {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

.people-panel__notice {
  padding: 12px 14px;
  border: 1px solid color-mix(in srgb, var(--warning-color) 28%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--warning-color) 10%, var(--surface-elevated) 90%);
  color: var(--warning-color);
  font-size: 0.84rem;
  line-height: 1.6;
}

.people-panel__body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: visible;
  padding-inline-end: 0;
}

.people-panel__body::-webkit-scrollbar {
  width: 5px;
}

.people-panel__body::-webkit-scrollbar-thumb {
  background: var(--color-border-light);
  border-radius: 999px;
}

.people-panel__empty {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.92rem;
  line-height: 1.9;
  border: 1px dashed var(--border-light);
  border-radius: 22px;
  background: var(--surface-muted);
  padding: 20px;
}

.people-panel__section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.people-panel__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.people-panel__section-title {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 800;
}

.people-panel__section-hint {
  color: var(--color-text-dim);
  font-size: 0.78rem;
}

.people-panel__section-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.people-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-elevated), var(--surface-color));
  box-shadow: var(--shadow-sm);
}

.people-card__identity {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: right;
  cursor: pointer;
}

.people-card__avatar {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--surface-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.people-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.people-card__avatar-icon {
  width: 24px;
  height: 24px;
}

.people-card__status {
  position: absolute;
  left: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(13, 17, 38, 0.96);
}

.people-card__status--online {
  background: #3bd17f;
}

.people-card__status--offline {
  background: #7f1d1d;
}

.people-card__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.people-card__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.people-card__name {
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: 800;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.people-card__relationship {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.people-card__relationship-icon {
  width: 15px;
  height: 15px;
  opacity: 0.92;
}

.people-card__meta,
.people-card__submeta {
  color: var(--color-text-dim);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.people-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.people-card__action {
  min-width: 86px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
  font: inherit;
  cursor: pointer;
}

.people-card__action--primary {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(45, 104, 255, 0.96), rgba(38, 197, 255, 0.94));
  color: #fff;
}

.people-card__action--ghost {
  background: transparent;
}

.people-card__action[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .social-confirm-overlay {
    padding: 16px;
  }

  .social-confirm-card__identity {
    align-items: flex-start;
  }

  .social-confirm-card__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .social-confirm-card__action {
    width: 100%;
  }

  .notifications-center {
    padding: 14px;
  }

  .notifications-center__hero,
  .notifications-center__card-head,
  .notifications-center__card-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .notifications-center__stats {
    grid-template-columns: 1fr;
  }

  .notifications-center__actions {
    width: 100%;
  }

  .notifications-center__actions .settings-cta {
    flex: 1 1 0;
  }

  .people-panel {
    padding: 14px;
  }

  .people-panel__toolbar {
    align-items: stretch;
  }

  .people-panel__search {
    flex-basis: 100%;
  }

  .people-card {
    flex-direction: column;
    align-items: stretch;
  }

  .people-card__actions {
    justify-content: stretch;
  }

  .people-card__action {
    flex: 1 1 140px;
  }
}

/* Neutral theme cleanup overrides */

.social-confirm-overlay,
.profile-avatar-sheet,
.notifications-center,
.people-panel {
  background: var(--bg-secondary);
}

.social-confirm-card,
.profile-avatar-sheet__card,
.member-modal--messages,
.profile-menu-popover,
.messages-panel,
.notifications-center__card,
.people-card {
  background: var(--surface-elevated);
  border-color: var(--border-medium);
  box-shadow: var(--shadow-lg);
}

.social-confirm-card__avatar,
.social-confirm-card__avatar-fallback,
.profile-meta-icon,
.profile-avatar-option,
.notifications-center__avatar,
.people-card__avatar {
  background: var(--surface-muted);
  color: var(--text-main);
}

.social-confirm-card__name,
.profile-bio-slot,
.messages-thread,
.messages-bubble,
.notifications-center__card,
.people-card {
  color: var(--text-main);
}

.social-confirm-card__action,
.profile-edit-tool,
.profile-avatar-sheet__close,
.profile-avatar-sheet__action,
.profile-flag-search,
.profile-stats-panel__back,
.profile-stats-panel__tab,
.messages-search,
.messages-back-btn,
.notifications-center__filter,
.people-panel__search-input,
.people-card__action {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.social-confirm-card__action--confirm,
.social-confirm-card__action--warn,
.social-confirm-card__action--danger,
.profile-edit-tool--primary,
.profile-avatar-sheet__action--apply,
.messages-shell .settings-cta,
.notifications-center__filter.is-active,
.people-panel__search-btn,
.people-card__action--primary {
  background: var(--link-color);
  border-color: var(--link-color);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

.profile-avatar-sheet__action--cancel {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.social-confirm-card__action--danger,
.messages-panel__notice,
.notifications-center__status--rejected,
.notifications-center__status--cancelled,
.notifications-center__state--error {
  background: var(--surface-muted);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.profile-hero-uid,
.profile-tabs-zone__hint,
.messages-thread__status,
.notifications-center__hero-text,
.people-panel__notice,
.people-panel__empty {
  color: var(--text-secondary);
}

.profile-hero-uid.is-copied {
  color: var(--success-color);
}

.profile-hero-uid.is-copied::after {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.profile-menu-popover__item:hover,
.messages-thread:hover,
.messages-thread.is-active,
.notifications-center__card.is-openable:hover,
.notifications-center__card.is-openable:focus-visible {
  background: var(--surface-hover);
  border-color: var(--link-color);
  color: var(--text-main);
}

.profile-hero-circle,
.profile-media-adjuster__surface,
.messages-sidebar,
.notifications-center__hero,
.notifications-center__stat,
.people-panel__tab,
.people-panel__search-input,
.people-card__relationship {
  background: var(--surface-color);
  border-color: var(--border-light);
}

.profile-side-panel,
.messages-shell,
.notifications-center__hero,
.people-panel {
  background: var(--surface-elevated);
}

.profile-action-chip,
.profile-edit-footer-frame,
.profile-hero-frame--edit .profile-bio-slot,
.history-panel__stat-card,
.messages-search,
.notifications-center__stat,
.people-panel__notice,
.people-panel__empty {
  background: var(--surface-muted);
  border-color: var(--border-light);
}

.profile-avatar-upload-soon,
.notifications-center__state {
  background: var(--surface-muted);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.profile-avatar-option--none {
  background: var(--surface-muted);
}

.profile-avatar-option.is-active {
  border-color: var(--link-color);
  box-shadow: var(--shadow-sm);
}

.history-panel__result-badge--win {
  background: var(--surface-muted);
  border-color: var(--success-color);
  color: var(--success-color);
}

.history-panel__result-badge--loss {
  background: var(--surface-muted);
  border-color: var(--danger-color);
  color: var(--danger-color);
}

.history-panel__result-badge--draw {
  background: var(--surface-muted);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.profile-stats-panel__tab {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-secondary);
}

.profile-stats-panel__tab.is-active {
  background: var(--surface-hover);
  border-color: var(--link-color);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.messages-thread__badge,
.notifications-center__hero-badge,
.people-panel__tab-badge {
  background: var(--danger-color);
  color: var(--text-inverse);
}

.messages-thread__status,
.notifications-center__ready {
  color: var(--link-color);
}

.messages-panel__notice {
  box-shadow: none;
}

.messages-bubble {
  background: var(--surface-color);
  border-color: var(--border-light);
  color: var(--text-main);
}

.messages-bubble--me {
  background: var(--surface-hover);
  border-color: var(--link-color);
  color: var(--text-main);
}

.messages-bubble--failed {
  border-color: var(--danger-color);
}

.messages-composer__input,
.messages-start-box__input {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.notifications-center__hero {
  background: var(--surface-color);
  border-color: var(--border-light);
}

.notifications-center__hero-badge {
  border-color: var(--danger-color);
}

.notifications-center__filter {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.notifications-center__filter-count {
  background: var(--surface-muted);
  color: var(--text-secondary);
}

.notifications-center__filter.is-active .notifications-center__filter-count {
  background: var(--surface-hover);
  color: var(--text-main);
}

.notifications-center__list::-webkit-scrollbar-thumb {
  background: var(--border-medium);
}

.notifications-center__card.is-unread {
  border-color: var(--danger-color);
  box-shadow: var(--shadow-sm);
}

.notifications-center__status--pending {
  background: var(--surface-muted);
  border-color: var(--warning-color);
  color: var(--warning-color);
}

.notifications-center__status--accepted {
  background: var(--surface-muted);
  border-color: var(--success-color);
  color: var(--success-color);
}

.people-panel__tab {
  background: var(--surface-color);
  border-color: var(--border-medium);
  color: var(--text-main);
}

.people-panel__tab.is-active {
  background: var(--surface-hover);
  border-color: var(--link-color);
  color: var(--text-main);
}

.people-panel__search-btn {
  box-shadow: var(--shadow-sm);
}

.people-card__status {
  border-color: var(--surface-color);
}

.people-card__status--online {
  background: var(--success-color);
}

.people-card__status--offline {
  background: #7f1d1d;
}

