/* ==========================================================================
   TgSuperstars EN v2 — shared chrome layer: header (RU site-nav), ticker, footer, support FAB.
   Used by EVERY EN v2 page: commercial (before en-v2.css) and blog/article/legal/page/404
   (after en.css, see template-parts/en/v2/blog-v2.php). No --en-* tokens here on purpose:
   en-v2.css repaints them for the order screen, en.css keeps them for the article body.
   Extracted 1:1 from en-v2.css (24.09.2026), rules and order unchanged.
   ========================================================================== */

/* ---- RU header.php inline CSS ------------------------------------------ */
html, body { background-color: #0F0F1A; color: #fff; }
html { scroll-padding-top: 96px; }
.scrollbar-thin { scrollbar-width: thin; scrollbar-color: #3d3d50 transparent; }
.scrollbar-thin::-webkit-scrollbar { width: 6px; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: #3d3d50; border-radius: 999px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
#tgs-mobile-menu { max-height: calc(100vh - 70px); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
#tgs-mobile-menu summary::-webkit-details-marker { display: none; }
.tgs-v2 [hidden] { display: none !important; }
.tgs-v2 .tgs-dropdown-panel.opacity-100 { opacity: 1; visibility: visible; }
.tgs-v2 .tgs-dropdown-panel.translate-y-0 { transform: translateY(0); }
.tgs-v2-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: #8E6FF7; color: #fff; }
.tgs-v2-skip:focus { left: 12px; }
.tgs-v2 main { display: block; }
.tgs-v2 :focus-visible { outline: 2px solid #8E6FF7; outline-offset: 2px; }
/* ---- Ticker: static true facts (RU markup .purchase-ticker*) ---------- */
.tgs-v2-ticker .purchase-ticker__track { --purchase-ticker-duration: 60s; }
.tgs-v2-ticker .purchase-ticker__item i { font-size: 1rem; }
/* ---- Header v3 ticker: RU look 1:1 (style.css .purchase-ticker*), real recent orders (template-parts/en/v2/nav-v3.php).
   Animation starts only after en-ticker.js has cloned the set (otherwise -50% of a single set shows a gap). */
.tgs-v3-ticker[hidden] { display: none !important; }
.tgs-v3-ticker .purchase-ticker__track { animation: none; }
.tgs-v3-ticker.tgs-v3-ticker--run .purchase-ticker__track { animation: purchase-ticker-scroll var(--purchase-ticker-duration, 36s) linear infinite; }
.tgs-v3-ticker.tgs-v3-ticker--run .purchase-ticker__viewport:hover .purchase-ticker__track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .tgs-v3-ticker .purchase-ticker__track { animation: none !important; } }

/* ---- Footer ----------------------------------------------------------- */
.tgs-v2-foot-coins { gap: 4px; }
.tgs-coin-sm { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 9999px; color: #fff; font-size: 12px; font-weight: 800; }
.tgs-v2-foot-copy p { margin: 0; }
/* Grid as on the RU footer: md:grid-cols-3 (lg:grid-cols-5 is not in the RU Tailwind subset -> 3 columns x 2 rows at 1440) */
@media (max-width: 767px) {
  .tgs-v2-foot-copy { text-align: center; }
}

/* ---- Support FAB (copy of the RU functions.php inline block) --------- */
.support-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 9990;
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 12px;
  background: linear-gradient(135deg, #A78BFA, #8E6FF7);
  color: #fff !important; border-radius: 9999px; text-decoration: none !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif; font-weight: 600;
  box-shadow: 0 14px 36px -10px rgba(124, 58, 237, .55), 0 4px 14px -4px rgba(0, 0, 0, .45);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
  -webkit-tap-highlight-color: transparent;
}
.support-fab:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 18px 42px -10px rgba(124, 58, 237, .7), 0 4px 16px -4px rgba(0, 0, 0, .5); }
.support-fab:active { transform: translateY(0); }
.support-fab__icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); position: relative; flex-shrink: 0; }
.support-fab__icon svg { width: 19px; height: 19px; color: #fff; stroke: #fff; }
.support-fab__online { position: absolute; top: -2px; right: -2px; width: 12px; height: 12px; border-radius: 50%; background: #22C55E; border: 2px solid #0F0F1A; z-index: 1; }
.support-fab__online::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: rgba(34, 197, 94, .55); animation: support-fab-pulse 2s ease-out infinite; z-index: -1; }
.support-fab__label { display: flex; flex-direction: column; line-height: 1.15; }
.support-fab__title { font-size: 14px; font-weight: 600; color: #fff; }
.support-fab__sub { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 5px; margin-top: 2px; }
.support-fab__sub::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px rgba(34, 197, 94, .9); }
@keyframes support-fab-pulse { 0% { transform: scale(.85); opacity: .9; } 80% { transform: scale(1.9); opacity: 0; } 100% { transform: scale(1.9); opacity: 0; } }
@media (max-width: 640px) {
  .support-fab { padding: 0; width: 56px; height: 56px; justify-content: center; gap: 0; }
  .support-fab__label { display: none; }
  .support-fab__icon { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .support-fab__online::after { animation: none; }
  .support-fab { transition: none; }
}
body.seo-landing-purchase-modal-open .support-fab { display: none; }

/* Support FAB steps aside while the purchase card is on screen (phones/tablets): it covered the Total */
@media (prefers-reduced-motion: no-preference) { .support-fab { transition: transform .22s ease, box-shadow .22s ease, filter .22s ease, opacity .2s ease; } }
body.tgs-fab-off .support-fab { opacity: 0; pointer-events: none; transform: translateY(16px); }
