.gch-channels {
  width: 100%;
  max-width: 100%;
  margin: 32px 0 16px;
  padding: 18px 16px 16px;
  direction: rtl;
  text-align: center;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: #fff;
  border: 1px solid #e5ebf2;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(45, 66, 99, 0.07);
  box-sizing: border-box;
}

.gch-channels-title {
  margin: 0 0 4px;
  color: #2d4263;
  font-size: 15px;
  font-weight: 800;
}

.gch-channels-sub {
  margin: 0 0 14px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.gch-channels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.gch-ch-item {
  --gch-a: 0deg;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 92px;
  padding: 14px 8px;
  border-radius: 18px;
  text-decoration: none !important;
  background: #f8fafc;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gch-ch-item::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--gch-a), transparent 0 55%, var(--ch) 72%, transparent 88%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: gch-orbit 2.8s linear infinite;
  pointer-events: none;
  opacity: 0.9;
}

.gch-ch-item:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: 0 12px 22px rgba(45, 66, 99, 0.1);
}

.gch-ch-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  line-height: 1;
}

.gch-ch-icon i {
  color: #fff !important;
  font-size: 17px;
  line-height: 1;
  margin: 0;
}

.gch-ch-label {
  font-size: 12px;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.gch-ch-sub {
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  line-height: 1.2;
}

@keyframes gch-orbit {
  to {
    --gch-a: 360deg;
  }
}

@property --gch-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.gch-ch-icon .icon-twitch,
.gch-ch-icon .icon-discord {
  width: 1em !important;
  height: 1em !important;
  top: 0 !important;
  color: #fff !important;
  background-color: currentColor !important;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

@media (max-width: 600px) {
  .gch-channels {
    margin: 24px 0 12px;
    padding: 14px 10px 12px;
    border-radius: 16px;
  }

  .gch-channels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .gch-ch-item {
    min-height: 86px;
    padding: 12px 6px;
    border-radius: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gch-ch-item::before {
    animation: none;
  }
}
