.ts-app.ts-app {
  --bg: #0f0b1a;
  --bg-toolbar-1: #1d1433;
  --bg-toolbar-2: #140e24;
  --border: #3a2a63;
  --border-soft: #2a1f48;
  --text: #f1ecff;
  --text-muted: #9d8fc4;
  --accent: #b36bff;
  --input-bg: #1a1230;
  --input-text: #f1ecff;
  --button-bg-1: #5b2fb3;
  --button-bg-2: #3f1f85;
  --button-bg-hover-1: #7a45e0;
  --button-bg-hover-2: #5b2fb3;
  --row-hover: #2a1f48;
  --client-text: #e6dcff;
  --self-text: #ffd166;
  --log-bg: #0b0814;
  --log-text: #d9ccff;
  --log-error: #ff5c7a;
}

.ts-app button { border-radius: 8px; }

/* مخفی کردن دکمه Donate (حدسی، بر اساس لینک) */
a[href*="ko-fi"] { display: none !important; }

/* فونت (Vazirmatn اگه نصب بود، وگرنه Tahoma) */
.ts-app { font-family: "Vazirmatn", "Segoe UI", Tahoma, system-ui, sans-serif; }

/* انتخاب متن و اسکرول‌بار */
::selection { background: #b36bff; color: #fff; }
* { scrollbar-width: thin; scrollbar-color: #5b2fb3 #120c20; }

/* فیلدها و دکمه‌ها */
.ts-app input, .ts-app select, .ts-app textarea { border-radius: 8px; }
.ts-app input:focus, .ts-app select:focus, .ts-app textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px #b36bff66;
}
.ts-app button { transition: transform .12s, box-shadow .12s; }
.ts-app button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px #b36bff55;
}

/* آیکون‌های رنگارنگ نوار ابزار رو هم‌رنگ تم کن (حدسی) */
.ts-app .ts-toolbar img {
  filter: grayscale(1) sepia(1) hue-rotate(230deg) saturate(4) brightness(1.1);
}

/* مخفی کردن صورتک (Whisper) و خورشید (Toggle theme) */
.ts-icon-button[title="Whisper targets"],
.ts-icon-button[aria-label="Whisper targets"],
.ts-icon-button[title="Toggle theme"],
.ts-icon-button[aria-label="Toggle theme"] {
  display: none !important;
}

/* بقیه آیکون‌های نوار ابزار هم‌رنگ تم (بنفش) */
.ts-icon-button > * {
  filter: grayscale(1) sepia(1) hue-rotate(230deg) saturate(3) brightness(1.15);
}

/* دکمه‌های آیکونی */
.ts-icon-button {
  border-radius: 10px;
  background: linear-gradient(180deg, #2b1d52, #1d1433);
  border: 1px solid #3a2a63;
}
.ts-icon-button:hover {
  background: linear-gradient(180deg, #4a2d96, #2b1d52);
}


/* ایموجی‌های متنی -> تک‌رنگ و هم‌رنگ متن (بدون ایموجی رنگی) */
.ts-app, .ts-app * { font-variant-emoji: text; }

/* نوار اخبار پایین (حدسی: هر کلاسی که با ts-news شروع بشه) */
[class*="ts-news"] { display: none !important; }

/* پوشه‌ها و کره‌های درخت کانال -> هم‌رنگ تم (حدسی) */
.ts-server-tree [class*="icon"],
.ts-server-tree img,
.ts-server-tree svg {
  filter: grayscale(1) sepia(1) hue-rotate(230deg) saturate(3) brightness(1.1);
}

/* پوشه‌های کانال -> بنفش (هر نوع آیکون کانال) */
.ts-row svg[data-pack-icon^="channel"] path,
.ts-row svg[data-pack-icon^="channel"] * {
  fill: #b36bff !important;
  stroke: #7a45e0 !important;
}

/* کره‌ی آبی کاربر در حالت بیکار -> بنفش */
.ts-talk-lamp-idle {
  filter: hue-rotate(60deg) saturate(1.2);
}

/* ردیف‌های درخت: گوشه‌گرد و فاصله بهتر */
.ts-row { border-radius: 8px; padding-block: 3px; }
.ts-row:hover { background: #2a1f48; }

/* آواتارها هم‌رنگ تم */
.ts-client-avatar {
  background: linear-gradient(135deg, #7a45e0, #b36bff) !important;
  color: #fff;
}

/* تب‌های چت */
.ts-chat-tab-active {
  background: #b36bff !important;
  color: #fff !important;
}
