/* Homepage bot + channel — store orange, two compact tiles */
.os-tg-banners {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
}

@media (min-width: 768px) {
  .os-tg-banners {
    gap: 0.65rem;
    margin-bottom: 0.95rem;
  }
}

.os-tg-tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.52rem 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  background:
    radial-gradient(ellipse 90% 80% at 100% -30%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 62%),
    var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 8%, transparent);
}

.os-tg-tile--channel {
  background:
    radial-gradient(ellipse 80% 80% at -10% 120%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 58%),
    var(--surface);
}

.os-tg-tile:hover,
.os-tg-tile:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
}

.os-tg-tile:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.os-tg-tile__glow {
  position: absolute;
  inset: auto -22% -60% auto;
  z-index: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%);
  pointer-events: none;
}

.os-tg-tile--channel .os-tg-tile__glow {
  inset: auto auto -55% -22%;
}

.os-tg-tile__mark,
.os-tg-tile__copy,
.os-tg-tile__cta {
  position: relative;
  z-index: 1;
}

.os-tg-tile__mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  border: 1px solid color-mix(in srgb, #fff 18%, var(--primary));
}

.os-tg-tile__copy {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.04rem;
}

.os-tg-tile__kicker {
  display: none;
  font-size: 0.58rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--muted);
}

.os-tg-tile__title {
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--foreground);
}

.os-tg-tile__handle {
  font-size: 0.58rem;
  font-weight: 650;
  color: color-mix(in srgb, var(--primary-light) 85%, var(--foreground));
  unicode-bidi: isolate;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-tg-tile__cta {
  display: none;
}

:dir(ltr) .os-tg-tile__chev {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .os-tg-tile {
    min-height: 4.35rem;
    padding: 0.72rem 0.9rem;
    gap: 0.7rem;
    border-radius: 1rem;
  }

  .os-tg-tile__mark {
    width: 2.35rem;
    height: 2.35rem;
  }

  .os-tg-tile__kicker {
    display: block;
  }

  .os-tg-tile__title {
    font-size: 0.9rem;
  }

  .os-tg-tile__handle {
    font-size: 0.68rem;
  }

  .os-tg-tile__cta {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.12rem;
    margin-inline-start: auto;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  }
}

/* PATCH: telegram glass community cards */
.os-tg-tile {
  border: 1px solid color-mix(in srgb, var(--primary) 22%, rgba(255, 255, 255, 0.14));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
    radial-gradient(ellipse 95% 95% at 100% -35%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 58%),
    radial-gradient(ellipse 85% 80% at 12% 130%, rgba(255, 255, 255, 0.055), transparent 54%),
    rgba(5, 5, 7, 0.86);
  backdrop-filter: blur(16px) saturate(1.18);
  -webkit-backdrop-filter: blur(16px) saturate(1.18);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(255, 106, 0, 0.08);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.os-tg-tile--channel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    radial-gradient(ellipse 85% 85% at -10% 120%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 58%),
    radial-gradient(ellipse 70% 75% at 105% -25%, rgba(255, 255, 255, 0.06), transparent 54%),
    rgba(5, 5, 7, 0.88);
}

.os-tg-tile:hover,
.os-tg-tile:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.34),
    0 0 0 1px color-mix(in srgb, var(--primary) 14%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
  transform: translateY(-1px);
}

.os-tg-tile__glow {
  inset: auto -20% -58% auto;
  width: 6.2rem;
  height: 6.2rem;
  background: radial-gradient(circle, color-mix(in srgb, var(--primary) 30%, transparent), transparent 68%);
  filter: blur(1px);
}

.os-tg-tile__mark {
  color: var(--primary-light);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
    rgba(0, 0, 0, 0.32);
  border: 1px solid color-mix(in srgb, var(--primary) 40%, rgba(255, 255, 255, 0.16));
  box-shadow:
    0 0 22px color-mix(in srgb, var(--primary) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.os-tg-tile__title {
  color: #fff;
}

@media (min-width: 768px) {
  .os-tg-tile__cta {
    color: color-mix(in srgb, var(--primary-light) 90%, #fff);
    border: 1px solid color-mix(in srgb, var(--primary) 34%, rgba(255, 255, 255, 0.14));
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
      rgba(0, 0, 0, 0.24);
  }
}


