/*! © 2026 INEASY (ineasy.site). Все права защищены / All rights reserved.
 * Копирование, изменение и использование без письменного разрешения запрещено.
 * Copying, modification or use without written permission is prohibited. */
/* "Plans" tab in the dock: links to /subscriptions.html, with its own crown icon and a gradient shimmer */
.nav-tab.nav-plans .nav-icon { --i: url(../icons/subs/crown.svg); }
.nav-tab.nav-plans { color: #c9b8ff; }
.nav-tab.nav-plans #navPlans {
  background: linear-gradient(90deg, #9fb9ff, #d6c4ff, #8fd8ff, #9fb9ff) 0 0 / 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-tab.nav-plans .nav-icon::before {
  background: linear-gradient(160deg, #e6dcff, #9b7bff);
  animation: plansFloat 3.2s ease-in-out infinite;
}
.nav-tab.nav-plans::after {
  content: ''; position: absolute; top: 6px; right: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: #b07bff; box-shadow: 0 0 6px rgba(176,123,255,.8); animation: plansPing 2.4s ease-in-out infinite;
}
.nav-tab.nav-plans:hover .nav-icon::before { animation-duration: 1.2s; }
@keyframes plansFloat { 50% { transform: translateY(-2px) rotate(-6deg); } }
@keyframes plansPing { 50% { opacity: .3; transform: scale(.7); } }

@media (max-width: 1179px) {
  .bottom-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); width: min(640px, calc(100% - 16px)); }
  .nav-tab { font-size: 0.54rem; letter-spacing: 0.01em; }
  .nav-tab.nav-plans::after { top: 8px; right: 14%; }
}


@media (prefers-reduced-motion: reduce) {
  .nav-tab.nav-plans .nav-icon::before, .nav-tab.nav-plans::after { animation: none; }
}


/* the channel banner is gone: the language switch alone sits on the right */
.community-callout { justify-content: flex-end; }

/* ---------- Telegram photo next to the ID, ringed by the plan ---------- */
.tg-avatar {
  position: relative; flex: none; display: inline-grid; place-items: center;
  width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; isolation: isolate;
  background: linear-gradient(160deg, #1b2a47, #0d1628); color: #cfe0ff; font: 700 13px/1 var(--font-display, 'Unbounded');
}
.tg-avatar img, .tg-avatar span { position: relative; z-index: 2; }
.tg-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.tg-avatar.has-photo #tgAvatarInitial { display: none; }
.tg-avatar::before, .tg-avatar::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.tg-avatar[data-plan="FREE"] { box-shadow: 0 0 0 1.5px rgba(160,175,200,.35); }

/* PRO: a living blue ring that turns and breathes */
.tg-avatar[data-plan="PRO"]::before {
  inset: -3px; z-index: 1;
  background: conic-gradient(#2759db, #66d9ff, #5b8cff, #2759db);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  animation: avSpin 3.2s linear infinite;
}
.tg-avatar[data-plan="PRO"]::after { inset: -6px; z-index: 0; background: radial-gradient(circle, rgba(91,140,255,.45), transparent 70%); animation: avBreath 2.6s ease-in-out infinite; }

/* MAX: violet-blue-pink ring, faster, a spark orbiting it and a stronger glow */
.tg-avatar[data-plan="MAX"]::before {
  inset: -3.5px; z-index: 1;
  background: conic-gradient(#4f6bff, #9b5cff, #ff7ad9, #c9a6ff, #4f6bff);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  animation: avSpin 2.2s linear infinite;
  filter: drop-shadow(0 0 4px rgba(176,123,255,.9));
}
.tg-avatar[data-plan="MAX"]::after {
  inset: -9px; z-index: 0;
  background:
    radial-gradient(circle at 50% 4px, #fff 0 1.6px, rgba(255,255,255,.0) 2.6px),
    radial-gradient(circle, rgba(155,92,255,.55), rgba(79,107,255,.18) 55%, transparent 72%);
  animation: avOrbit 2.8s linear infinite, avBreath 2.2s ease-in-out infinite;
}
@keyframes avSpin { to { transform: rotate(360deg); } } /* GPU: the ring turns, nothing repaints */
@keyframes avOrbit { to { transform: rotate(360deg); } }
@keyframes avBreath { 50% { opacity: .55; } }

/* small plan badge on the photo */
.tg-avatar[data-plan="PRO"] img + span::after, .tg-avatar[data-plan="MAX"] img + span::after { content: none; }
.tg-avatar[data-plan="PRO"], .tg-avatar[data-plan="MAX"] { margin-right: 10px; }

@media (prefers-reduced-motion: reduce) {
  .tg-avatar::before, .tg-avatar::after { animation: none !important; }
}

/* Desktop dock, tightest step (ui-fit.js): icons stay visible, only smaller, and the tabs pack closer.
   (shell.css used to hide every icon here, which looked like the icons vanished on PC.) */
@media (min-width: 1180px) {
  body.nav-tighter .nav-tab { gap: 4px; padding: 0 7px; }
  body.nav-tighter .nav-tab .nav-icon { display: inline-grid; width: 16px; height: 16px; }
  body.nav-tighter .nav-tab .nav-icon::before { width: 16px; height: 16px; }
}
