/* ==========================================================================
   CENTERY TELEGRAM-GRADE CHANNELS & BROADCAST CHAT SYSTEM
   Unified High-End Design for Teacher Studio & Student Portal
   ========================================================================== */

:root {
  --ch-bg-canvas: #070c18;
  --ch-bg-panel: rgba(13, 20, 36, 0.85);
  --ch-bg-bubble: linear-gradient(145deg, #162238 0%, #0d1628 100%);
  --ch-bg-urgent: linear-gradient(145deg, rgba(239, 68, 68, 0.16) 0%, rgba(15, 23, 42, 0.98) 100%);
  --ch-border-subtle: rgba(255, 255, 255, 0.08);
  --ch-border-glow: rgba(99, 102, 241, 0.45);
  --ch-accent-primary: #6366f1;
  --ch-accent-gradient: linear-gradient(135deg, #6366f1, #4f46e5);
  --ch-accent-cyan: #0ea5e9;
  --ch-accent-amber: #f59e0b;
  --ch-accent-emerald: #10b981;
  --ch-accent-rose: #f43f5e;
  --ch-text-main: #f8fafc;
  --ch-text-muted: #94a3b8;
  --ch-text-dim: #64748b;
  --ch-radius-lg: 20px;
  --ch-radius-md: 14px;
  --ch-radius-sm: 10px;
}

/* ----------------------------------------------------
   1. MAIN WORKSPACE CONTAINER & DUAL SPLIT
   ---------------------------------------------------- */
.tg-workspace-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 18px;
  min-height: 640px;
  height: calc(100vh - 170px);
  max-height: 860px;
  border-radius: var(--ch-radius-lg);
  position: relative;
  font-family: 'Alexandria', 'Cairo', sans-serif;
  color: var(--ch-text-main);
}

@media (max-width: 960px) {
  .tg-workspace-container {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }
}

/* ----------------------------------------------------
   2. SIDEBAR / CHANNELS DRAWER
   ---------------------------------------------------- */
.tg-channels-sidebar {
  background: var(--ch-bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ch-border-subtle);
  border-radius: var(--ch-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.tg-sidebar-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--ch-border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
}

.tg-sidebar-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tg-sidebar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.tg-sidebar-title .icon-glow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.tg-count-pill {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.tg-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.tg-search-input {
  width: 100%;
  background: rgba(9, 14, 28, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 9px 36px 9px 12px;
  color: #fff;
  font-size: 0.84rem;
  font-family: inherit;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tg-search-input:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.tg-search-icon {
  position: absolute;
  right: 12px;
  font-size: 0.85rem;
  color: var(--ch-text-dim);
  pointer-events: none;
}

/* 2.1 CATEGORY FILTER TABS */
.tg-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--ch-border-subtle);
  background: rgba(10, 15, 29, 0.4);
}

.tg-filter-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.tg-filter-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.tg-filter-tab.active {
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.5);
  color: #818cf8;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.tg-channels-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.tg-channels-list::-webkit-scrollbar {
  width: 5px;
}
.tg-channels-list::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

/* Channel Card Item in Sidebar */
.tg-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--ch-radius-md);
  cursor: pointer;
  background: rgba(18, 27, 48, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.tg-channel-item:hover {
  background: rgba(30, 41, 68, 0.7);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}

.tg-channel-item.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.22) 0%, rgba(79, 70, 229, 0.12) 100%);
  border: 1.5px solid rgba(99, 102, 241, 0.6);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.22), inset 0 0 15px rgba(99, 102, 241, 0.08);
}

.tg-channel-item.active::before {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 4px;
  border-radius: 4px 0 0 4px;
  background: #6366f1;
  box-shadow: 0 0 10px #6366f1;
}

.tg-channel-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.tg-channel-item:hover .tg-channel-avatar {
  transform: scale(1.06);
}

.tg-channel-info {
  flex: 1;
  min-width: 0;
}

.tg-channel-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.tg-channel-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.tg-channel-msg-count {
  font-size: 0.72rem;
  color: var(--ch-text-dim);
  font-weight: 600;
  flex-shrink: 0;
}

.tg-channel-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.tg-channel-badges-group {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  min-width: 0;
}

.tg-channel-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.tg-channel-grade-pill {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.2);
  white-space: nowrap;
}

.tg-channel-subs-count {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ----------------------------------------------------
   3. CHAT MAIN CANVAS (TELEGRAM WALLPAPER & STREAM)
   ---------------------------------------------------- */
.tg-chat-canvas {
  background: var(--ch-bg-panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--ch-border-subtle);
  border-radius: var(--ch-radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55);
}

/* Chat Header */
.tg-chat-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--ch-border-subtle);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 70px;
}

.tg-header-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tg-header-avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(79, 70, 229, 0.15));
  border: 1.5px solid rgba(99, 102, 241, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.tg-live-dot {
  position: absolute;
  bottom: -2px;
  left: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0f172a;
  box-shadow: 0 0 8px #10b981;
  animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
  50% { transform: scale(1.15); box-shadow: 0 0 12px #10b981; }
  100% { transform: scale(0.95); box-shadow: 0 0 4px #10b981; }
}

.tg-header-title-box h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
}

.tg-header-subtitle {
  font-size: 0.78rem;
  color: var(--ch-text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tg-btn-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tg-btn-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}

/* Pinned Message Bar */
.tg-pinned-bar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.tg-pinned-content {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  flex: 1;
}

.tg-pinned-pin {
  font-size: 1.2rem;
  color: #fbbf24;
  animation: wobble 3s infinite ease-in-out;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}

.tg-pinned-snippet {
  font-size: 0.84rem;
  color: #fef08a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tg-unpin-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 0.76rem;
  cursor: pointer;
  text-decoration: underline;
  white-space: nowrap;
  opacity: 0.85;
}
.tg-unpin-btn:hover {
  opacity: 1;
  color: #fff;
}

/* Chat Feed with Telegram Wallpaper Pattern */
.tg-messages-feed {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: var(--ch-bg-canvas);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(14, 165, 233, 0.06) 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.tg-messages-feed::-webkit-scrollbar {
  width: 6px;
}
.tg-messages-feed::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 10px;
}

/* Floating Date Pill in Center */
.tg-date-divider {
  display: flex;
  justify-content: center;
  margin: 6px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.tg-date-pill {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}

/* Telegram Speech Bubble Card */
.tg-speech-bubble {
  max-width: 82%;
  width: fit-content;
  min-width: 280px;
  align-self: flex-start;
  background: var(--ch-bg-bubble);
  border: 1px solid var(--ch-border-subtle);
  border-radius: 20px 20px 4px 20px;
  padding: 16px 20px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: all 0.2s ease;
  animation: bubblePop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubblePop {
  0% { opacity: 0; transform: scale(0.96) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.tg-speech-bubble:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

/* Urgent Alert Modifier */
.tg-speech-bubble.is-urgent {
  background: var(--ch-bg-urgent);
  border: 1.5px solid rgba(239, 68, 68, 0.55);
  box-shadow: 0 8px 30px rgba(239, 68, 68, 0.25);
  animation: urgentGlow 3s infinite ease-in-out;
}

@keyframes urgentGlow {
  0%, 100% { box-shadow: 0 6px 24px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 8px 36px rgba(239, 68, 68, 0.38); }
}

.tg-bubble-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
}

.tg-bubble-sender {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tg-sender-badge-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.tg-sender-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.1px;
}

.tg-tag-notice {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tg-tag-pinned {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tg-bubble-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.tg-speech-bubble:hover .tg-bubble-actions {
  opacity: 1;
}

.tg-action-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #cbd5e1;
  padding: 4px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tg-action-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  transform: translateY(-1px);
}

.tg-action-btn.delete:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tg-bubble-body {
  font-size: 0.96rem;
  color: #f1f5f9;
  line-height: 1.8;
  white-space: pre-line;
  word-break: break-word;
  padding: 4px 0;
}

.tg-bubble-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--ch-text-dim);
}

.tg-check-icon {
  color: #38bdf8;
  font-weight: 900;
  font-size: 0.8rem;
}

/* ----------------------------------------------------
   4. COMPOSER AREA (INPUT & SEND STUDIO)
   ---------------------------------------------------- */
.tg-composer-area {
  padding: 16px 22px;
  border-top: 1px solid var(--ch-border-subtle);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.85) 0%, rgba(9, 14, 28, 0.98) 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-composer-chips {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.tg-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tg-toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
}

.tg-toggle-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.tg-toggle-chip input {
  display: none;
}

.tg-toggle-chip.active-pin {
  background: rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.2);
}

.tg-toggle-chip.active-notice {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2);
}

.tg-input-dock {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.tg-message-textarea {
  flex: 1;
  background: rgba(9, 14, 28, 0.9);
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: 16px;
  padding: 14px 18px;
  color: #fff;
  font-size: 0.94rem;
  font-family: inherit;
  resize: none;
  min-height: 52px;
  max-height: 140px;
  line-height: 1.6;
  transition: all 0.25s ease;
}

.tg-message-textarea:focus {
  outline: none;
  border-color: #6366f1;
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.22);
}

.tg-send-btn {
  padding: 0 24px;
  height: 52px;
  border-radius: 16px;
  background: var(--ch-accent-gradient);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.tg-send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(99, 102, 241, 0.55);
}

.tg-send-btn:active {
  transform: scale(0.96);
}

/* ----------------------------------------------------
   5. STUDENT PORTAL CHANNEL READER ADAPTATIONS
   ---------------------------------------------------- */
.tg-student-channel-pane {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tg-student-pills-bar {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 4px 12px;
  scrollbar-width: thin;
}

.tg-pill-channel {
  padding: 10px 18px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  background: rgba(30, 41, 59, 0.7);
  color: #cbd5e1;
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: all 0.22s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.tg-pill-channel:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(99, 102, 241, 0.4);
  color: #fff;
  transform: translateY(-1px);
}

.tg-pill-channel.active {
  background: linear-gradient(135deg, #0ea5e9, #0284c7);
  color: #fff;
  border-color: #38bdf8;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.tg-pill-badge {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.3);
  font-weight: 800;
}
