﻿/* 
 * Fragujemy.com Global Styles - Modularized V4
 * Plik utworzony dla globalnych poprawek caÅ‚ego serwisu
 * 
 * CHANGES: UsuniÄ™to z body font-size, Å¼eby uniknÄ…Ä‡ konfliktÃ³w
 */

:root {
  /* Globalny mnoÅ¼nik rozmiaru czcionki */
  --font-scale: 1.15;
}

/* Cross-document View Transitions — smooth crossfade on every in-site
   navigation. This is a REAL navigation (scripts, CSS, footer all load
   normally), so it replaces the hand-rolled main-swapping SPA outright.
   Chromium 126+; unsupported browsers just get instant nav (no regression).
   ponytail: root crossfade of the near-identical shell is imperceptible, so
   the shell is left unnamed. If the sidebar ever flickers between pages, give
   .sidebar/.topbar a unique `view-transition-name` so only <main> animates. */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

/* 
 * 1. ZWIÄ˜KSZENIE CZCIONEK 
 * Zmieniamy rozmiary tekstu uÅ¼ywajÄ…c CSS variables i calc() 
 * do nadpisania istniejÄ…cych styli w komponentach
 */

.nav-item {
  font-size: calc(0.75rem * var(--font-scale));
}

/* Single source of truth for expanded-sidebar nav metrics. The per-page css_*.css
   copies drifted (homepage padded 9px/gap 11px, FAQ cramped 6px/gap 8px → tabs
   looked bigger on some pages, tight everywhere). global.css loads last, so these
   equal-specificity rules win the cascade and render the sidebar identically site-
   wide — with more breathing room. Collapsed mode (body.sb-col .nav-item, higher
   specificity) sets its own padding and is unaffected; hover keeps padding-left. */
.sb-nav { gap: 5px; }
.nav-item { gap: 12px; padding: 10px 12px; }

/* Icon size + resting label colour were NOT in the shared block, so the per-page
   css_*.css copies still won them: homepage used 21px icons / rgba(.6) text, the
   forks (faq/downloads/partners/news) shrank to 18px / rgba(.45) and read smaller
   and dimmer. Pin the homepage values here so every page matches. */
.nav-item { color: rgba(180, 200, 230, .6); }
.nav-item .material-symbols-outlined { font-size: 21px; }

.nav-item.nav-forum .material-symbols-outlined {
  color: var(--cyan);
}

.nav-item.nav-forum:hover,
.nav-item.nav-forum.active {
  background: rgba(0, 160, 255, 0.1);
  border-color: rgba(0, 160, 255, 0.2);
  color: #fff;
}

/* Single source of truth for the user-menu "Panel Admina" entry. Several per-page
   stylesheets ship a stale RED variant (or none at all → partners), so the link read
   white/red there instead of the site-wide orange. !important wins every page. */
.tb-drop-item.admin-link {
  color: rgba(255, 170, 0, .75) !important;
}

.tb-drop-item.admin-link .material-symbols-outlined {
  color: rgba(255, 150, 0, .6) !important;
}

.tb-drop-item.admin-link:hover {
  background: rgba(255, 170, 0, .08) !important;
  color: rgba(255, 190, 40, .95) !important;
}

/* Sidebar must stay scrollable and never "clamp" when the viewport shrinks at high
   browser zoom (or on short windows). .sb-nav is a flex child with overflow-y:auto,
   but flex items default to min-height:auto and refuse to shrink below their content —
   so once the nav + fixed logo exceeded the 100dvh sidebar (overflow:hidden) the bottom
   got clipped instead of scrolling, and the fixed-size logo looked like it was crowding
   the whole menu. Forcing the nav to shrink/scroll and pinning the logo/bottom heights
   fixes both the "clamped/unreadable" look and "can't scroll when zoomed". */
.sidebar { min-height: 0; }
.sidebar .sb-logo,
.sidebar .sb-bottom { flex-shrink: 0; }
.sidebar .sb-nav { min-height: 0; }

.nav-lbl {
  font-size: calc(0.7rem * var(--font-scale));
  padding: 16px 12px 6px;
}

.nav-sub-item {
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.topbar-bc {
  font-size: calc(0.85rem * var(--font-scale));
}

.sb-logo-name {
  font-size: calc(0.87rem * var(--font-scale));
}

.sb-logo-tag {
  font-size: calc(0.73rem * var(--font-scale));
}

.tb-login-btn {
  font-size: calc(0.85rem * var(--font-scale));
}

.tb-user-name {
  font-size: calc(0.9rem * var(--font-scale));
}

/* ZMIANA: UsuniÄ™to z body, Å¼eby nie nadpisywaÄ‡ media queries */
html {
  /* Solid dark canvas: the overscroll/rubber-band area (scrolling past 100% height on
     mobile) paints the <html> background, which was transparent -> browser default white.
     body's radial-gradient still paints the in-page look on top. Matches the gradient's
     outer stop (#060810) so the seam is invisible, and gives iOS Safari a solid color. */
  background: #060810;
}

body {
  font-size: calc(17px * var(--font-scale));
}

/* 
 * 2. KLASY POMOCNICZE / WSPÃ“LNE
 */

/* Standaryzacja nagÅ‚Ã³wkÃ³w widgetÃ³w - identyczna wysokoÅ›Ä‡ i wyrÃ³wnanie linii */
.widget-hdr {
  height: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: relative;
  box-sizing: border-box;
}

.widget-title {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  line-height: 1;
}

/* WyÅ›rodkowanie widgetu Partnerzy - USUNIÄ˜TO ABSOLUTE, ABY UNIKNÄ„Ä† NAKÅADANIA ICONY */
#w-str .widget-title,
.widget.w-twitch .widget-title {
  text-align: left;
  width: auto;
}

.widget.w-twitch .widget-hdr {
  justify-content: flex-start;
  border-bottom: 1px solid rgb(71 101 103 / 15%);
}

.widget.w-twitch .widget-hdr-icon {
  position: static;
  transform: none;
  color: #9146ff;
  margin-right: 8px;
}

.widget.w-twitch .widget-badge {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* WyrÃ³wnanie paddingu Statystyk i PartnerÃ³w */
.widget.w-cyan .widget-body,
.widget.w-twitch .widget-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
}

/* --- OPTIMIZED PREMIUM FOOTER (MINIMALISTIC) --- */
/* --- OPTIMIZED PREMIUM FOOTER (3-COLUMN LAYOUT) --- */
.site-footer-premium {
  position: relative;
  z-index: 10;
  background: rgba(10, 15, 25, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 15px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  box-sizing: border-box;
  animation: footerSlideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  margin-top: auto;
}

@keyframes footerSlideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.footer-top-border {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00c4ff, transparent);
}

/* Three Columns */
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.footer-logo {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.footer-copy {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-social-grid {
  flex: 1 1 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.footer-logo:hover {
  transform: translateX(5px);
}

.footer-logo img {
  height: 32px;
  filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.4));
}

.logo-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.logo-text span {
  color: #00c4ff;
  text-shadow: 0 0 10px #00c4ff;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.62rem;
  font-family: 'Rajdhani', sans-serif;
  line-height: 1.4;
  text-align: center;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-social-grid {
  display: flex;
  gap: 14px;
  align-items: center;
}

.f-social-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.f-social-icon img {
  width: 30px;
  height: 30px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

/* Discord icon already matches base size */

/* Hover Effects */
.f-social-icon:hover {
  transform: translateY(-5px) scale(1.1);
  background: rgba(255, 255, 255, 0.08);
}

.f-social-icon:hover img {
  opacity: 1;
  transform: scale(1.1);
}

/* Specific Brand Colors */
.f-social-icon.ds:hover {
  border-color: #5865F2;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.f-social-icon.ts:hover {
  border-color: #004586;
  box-shadow: 0 0 20px rgba(0, 69, 134, 0.5);
}

.f-social-icon.fb:hover {
  border-color: #1877F2;
  box-shadow: 0 0 20px rgba(24, 119, 242, 0.5);
}

.f-social-icon.tw:hover {
  border-color: #9146FF;
  box-shadow: 0 0 20px rgba(145, 70, 255, 0.5);
}

.f-social-icon.tt:hover {
  border-color: #00f2ea;
  box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
}

.f-social-icon.ig:hover {
  border-color: #E1306C;
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

/* Hover Tooltip Label */
.f-social-icon::after {
  content: attr(data-label);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #00c4ff;
  color: #000;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.f-social-icon:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* --- END PREMIUM FOOTER --- */

/* Specific brand colors on hover */
.f-social-icon.ds:hover {
  border-color: #5865F2;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

.f-social-icon.ds:hover::after {
  background: #5865F2;
  color: #fff;
}

.f-social-icon.tw:hover {
  border-color: #9146FF;
  box-shadow: 0 8px 25px rgba(145, 70, 255, 0.3);
}

.f-social-icon.tw:hover::after {
  background: #9146FF;
  color: #fff;
}

.f-social-icon.fb:hover {
  border-color: #1877F2;
  box-shadow: 0 8px 25px rgba(24, 119, 242, 0.3);
}

.f-social-icon.fb:hover::after {
  background: #1877F2;
  color: #fff;
}

.f-social-icon.tt:hover {
  border-color: #ff0050;
  box-shadow: 0 8px 25px rgba(255, 0, 80, 0.3);
}

.f-social-icon.tt:hover::after {
  background: #ff0050;
  color: #fff;
}

.f-social-icon.ig:hover {
  border-color: #E1306C;
  box-shadow: 0 8px 25px rgba(225, 48, 108, 0.3);
}

.f-social-icon.ig:hover::after {
  background: #E1306C;
  color: #fff;
}

.f-social-icon.ts:hover {
  border-color: #004a99;
  box-shadow: 0 8px 25px rgba(0, 74, 153, 0.3);
}

.f-social-icon.ts:hover::after {
  background: #004a99;
  color: #fff;
}

@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 12px;
    padding: 10px 24px;
  }

  .footer-copy {
    text-align: center;
  }

  .footer-col ul {
    justify-content: center;
  }

  .footer-col h4 {
    display: none;
    /* Ukryjmy nagÅ‚Ã³wki na mobajlu dla jeszcze wiÄ™kszego minimalizmu */
  }
}


/* ========================================= */
/* FIX: UNIFIED BUTTON SIZES (MODAL & PANEL) */
/* ========================================= */

.btn-openweb,
.demo-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 130px;
  padding: 0 20px;
  font-size: .88rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  box-sizing: border-box;
  margin: 0;
  line-height: 1;
  white-space: nowrap;
}

.demo-copy,
.demo-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  font-size: .81rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  box-sizing: border-box;
  min-width: 90px;
  margin: 0;
  line-height: 1;
}

/* 3. PROFILE DROPDOWN BADGES */
.tb-drop-badge {
  margin-left: auto;
  font-size: .65rem;
  background: rgba(255, 50, 50, .15);
  border: 1px solid rgba(255, 50, 50, .35);
  padding: 1px 5px;
  border-radius: 4px;
  color: #ff3030;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.podium-wrapper {
  margin: 30px -20px 40px;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(10, 15, 30, 0.7) 0%, rgba(5, 10, 20, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 180, 255, 0.15);
  border-bottom: 1px solid rgba(0, 180, 255, 0.15);
  position: relative;
  overflow: hidden;
}

.podium-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
}

.podium-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* â•â•â• TOPBAR SEARCH (Premium Glassmorphism) â•â•â• */
header.topbar .tb-search {
  /* Flow item in the topbar's middle grid track (see .topbar in css_main3).
     position:relative anchors the results dropdown; justify-self centers the box
     in its track; width:100% + max-width caps it at 320px but lets it shrink
     fluidly on narrow desktops so it never overlaps the breadcrumb.
     The mobile breakpoint (css_mobile, <=1024px) overrides this back to a tap-to-
     open icon, so this only affects real desktop widths. */
  position: relative;
  justify-self: center;
  height: 38px;
  width: 100%;
  max-width: 320px;
  min-width: 0;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 180, 255, 0.2);
  border-radius: 20px;
  display: flex;
  align-items: center;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s;
  overflow: visible;
  /* Pozwala wynikom wystawaÄ‡ poza kontener */
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  margin: 0;
  padding: 0;
}

header.topbar .tb-search:hover,
header.topbar .tb-search:focus-within,
header.topbar .tb-search.open {
  /* width is governed by the base rule (100%, capped 320px) now that the box is a
     flow item; only the visual emphasis changes on hover/focus. */
  background: rgba(5, 8, 15, 0.95);
  border-color: rgba(0, 180, 255, 0.6);
  box-shadow: 0 8px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 180, 255, 0.2);
}

header.topbar .tb-search .tb-search-icon {
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d2ff;
  cursor: pointer;
  font-size: 22px;
  transition: none;
  transform: none;
  margin: 0;
}

header.topbar .tb-search:hover .tb-search-icon,
header.topbar .tb-search:focus-within .tb-search-icon,
header.topbar .tb-search.open .tb-search-icon {
  color: #00d2ff;
  transform: none;
}

header.topbar .tb-search input.tb-search-input {
  width: auto;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  box-shadow: none;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  padding: 0 15px 0 0;
  opacity: 1;
  transition: width 0.4s, opacity 0.3s;
  flex: 1;
  visibility: visible;
}

header.topbar .tb-search:hover input.tb-search-input,
header.topbar .tb-search:focus-within input.tb-search-input,
header.topbar .tb-search.open input.tb-search-input {
  width: auto;
  padding: 0 15px 0 0;
  opacity: 1;
  visibility: visible;
}

header.topbar .tb-search .tb-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Custom results dropdown */
header.topbar .tb-search .tb-search-results {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  right: 0;
  background: rgba(10, 15, 25, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(0, 180, 255, 0.3);
  border-radius: 12px;
  max-height: 480px;
  overflow-y: auto;
  overflow-x: hidden;
  display: none;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  z-index: 10001;
  animation: tbUltraSlide 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes tbUltraSlide {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.topbar .tb-search .tb-sr-header {
  padding: 12px 15px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 180, 255, 0.6);
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 5px;
}

header.topbar .tb-search .tb-sr {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  text-decoration: none;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

header.topbar .tb-search .tb-sr:last-child {
  border-bottom: none;
}

header.topbar .tb-search .tb-sr:hover {
  background: rgba(0, 180, 255, 0.08);
}

header.topbar .tb-search .tb-sr-banned {
  background: rgba(255, 45, 85, 0.08);
  border-bottom-color: rgba(255, 45, 85, 0.2);
}
header.topbar .tb-search .tb-sr-banned:hover {
  background: rgba(255, 45, 85, 0.14);
}

header.topbar .tb-search .tb-sr-av {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

header.topbar .tb-search .tb-sr-info {
  flex: 1;
}

header.topbar .tb-search .tb-sr-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
}

header.topbar .tb-search .tb-sr-role {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

header.topbar .tb-search .tb-sr-visits {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
}

header.topbar .tb-search .tb-sr-visits span {
  font-size: 14px;
}

header.topbar .tb-search .tb-sr-empty {
  padding: 30px 15px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

header.topbar .tb-search.open .tb-search-results {
  display: flex;
}

.tb-sr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.tb-sr:last-child {
  border-bottom: none;
}

.tb-sr:hover {
  background: rgba(0, 180, 255, 0.12);
  transform: translateX(4px);
}

.tb-sr-av {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tb-sr-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tb-sr-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tb-sr-role {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
  opacity: 0.9;
}

.tb-sr-empty {
  padding: 30px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  font-size: 13px;
}

@media (max-width: 900px) {
  .tb-search {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 0 10px;
  }
}

.podium-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

/* 4. REDESIGNED PODIUM (PREMIUM BOX & FULL-WIDTH) */
.podium-wrapper {
  margin: 30px -20px 40px;
  padding: 50px 20px;
  background: linear-gradient(135deg, rgba(8, 12, 24, 0.75) 0%, rgba(4, 6, 12, 0.9) 100%);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-top: 1px solid rgba(0, 180, 255, 0.18);
  border-bottom: 1px solid rgba(0, 180, 255, 0.18);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 150, 255, 0.03);
  border-radius: 0;
}

.podium-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 210, 255, 0.4), transparent);
  z-index: 5;
}

.podium-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 10;
  animation: slideUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

/* â•â•â• ADMIN NOTIFICATIONS BELL â•â•â• */
.tb-admin-bell {
  position: relative;
  cursor: pointer;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  margin-right: 12px;
}

.tb-admin-bell:hover {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 180, 255, 0.15);
}

.tb-admin-bell .material-symbols-outlined {
  color: rgba(180, 200, 240, 0.6);
  font-size: 22px;
}

.tb-admin-bell:hover .material-symbols-outlined {
  color: #00d2ff;
}

.tb-admin-bell .tb-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff4a4a;
  border: 2px solid #0d121f;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
  z-index: 2;
}

.tb-bell-ringing {
  animation: tbBellRing 0.8s ease;
}

@keyframes tbBellRing {

  0%,
  100% {
    transform: rotate(0);
  }

  15% {
    transform: rotate(15deg);
  }

  30% {
    transform: rotate(-12deg);
  }

  45% {
    transform: rotate(10deg);
  }

  60% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(5deg);
  }
}

/* ═══ NOTIFICATIONS DROPDOWN ═══ */
.tb-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(12, 18, 34, .99), rgba(8, 12, 24, .99));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  z-index: 9999;
  cursor: default;
  font-family: 'Rajdhani', sans-serif;
}

.tb-notif-head {
  padding: 12px 16px;
  font-weight: 700;
  color: #cfe0ff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 15px;
}

.tb-notif-list { padding: 6px; }

.tb-notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: #7a8aa5;
  font-size: 14px;
}

.tb-notif-item {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbe6ff;
  cursor: pointer;
  transition: background .15s;
  border-left: 3px solid transparent;
}

.tb-notif-item:hover { background: rgba(0, 180, 255, .08); }

.tb-notif-item.unread {
  background: rgba(0, 180, 255, .06);
  border-left-color: #00d2ff;
}

/* Type-based distinction: colored left border + tint per notification kind. */
.tb-notif-item.notif-kind-report_new {
  border-left-color: #00d2ff;
  background: rgba(0, 180, 255, .04);
}
.tb-notif-item.notif-kind-report_new:hover { background: rgba(0, 180, 255, .1); }

.tb-notif-item.notif-kind-report_accepted {
  border-left-color: #ffbe50;
  background: rgba(255, 190, 80, .04);
}
.tb-notif-item.notif-kind-report_accepted:hover { background: rgba(255, 190, 80, .1); }

.tb-notif-item.notif-kind-report_closed {
  border-left-color: #33d17a;
  background: rgba(51, 209, 122, .04);
}
.tb-notif-item.notif-kind-report_closed:hover { background: rgba(51, 209, 122, .1); }

.tb-notif-item.notif-kind-report_sent {
  border-left-color: rgba(150, 180, 225, .25);
  background: rgba(255, 255, 255, .01);
}

.tb-notif-t { font-weight: 600; font-size: 14px; }
.tb-notif-b { font-size: 13px; color: #9fb0cc; margin-top: 2px; }
.tb-notif-time { font-size: 11px; color: #6b7a96; margin-top: 4px; }

/* ═══ MOBILE: bell + notifications dropdown ═══ */
@media (max-width: 768px) {

  /* The mobile topbar is a 52px flex row (≡ … 🔍 avatar). The bell's desktop
     margins (15px/12px) eat that scarce space — tighten it so it sits flush
     with the other 40px controls and never wraps/overflows. */
  .tb-admin-bell {
    margin-left: 4px;
    margin-right: 4px;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }

  .tb-admin-bell .material-symbols-outlined {
    font-size: 22px;
  }

  /* Full-width sheet pinned under the topbar, not a 340px popover that overflows
     a narrow viewport. top:58px clears the 52px mobile header. */
  .tb-notif-panel {
    position: fixed;
    top: 58px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 80px);
  }

  /* Larger, thumb-friendly tap targets (44px minimum). */
  .tb-notif-head {
    padding: 14px 16px;
    font-size: 16px;
  }

  .tb-notif-item {
    padding: 13px 12px;
  }

  .tb-notif-t {
    font-size: 15px;
  }

  .tb-notif-b {
    font-size: 13px;
  }
}


.rank-section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  color: #fff;
  margin-bottom: 25px;
  text-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.podium-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ps-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.ps-btn img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.4);
  transition: all 0.3s ease;
}

.ps-btn:hover,
.ps-btn.active {
  background: rgba(0, 150, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.4);
  box-shadow: 0 0 15px rgba(0, 120, 255, 0.2);
}

.ps-btn:hover img,
.ps-btn.active img {
  filter: grayscale(0) opacity(1);
  transform: scale(1.1);
}

.rank-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
  min-height: 420px;
  position: relative;
}

.podium-spot {
  flex: 1;
  max-width: 220px;
  background: rgba(20, 26, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.podium-spot:hover {
  transform: translateY(-8px);
  background: rgba(28, 36, 52, 0.8);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 150, 255, 0.1);
}

.podium-avatar {
  width: 90px;
  height: 90px;
  position: relative;
  margin-bottom: 20px;
  z-index: 5;
}

.podium-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #00d2ff;
  box-shadow: 0 0 20px rgba(0, 210, 255, 0.3);
  background: #060912;
}

.podium-medal {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #060912;
  border: 2px solid #00d2ff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  color: #fff;
  font-size: 0.9rem;
  z-index: 10;
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.5);
}

.podium-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 8px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-score {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.podium-score small {
  font-size: 0.8rem;
  opacity: 0.6;
  margin-left: 2px;
}

/* Spot-specific overrides */
.spot-1 {
  max-width: 250px;
  min-height: 360px;
  background: rgba(24, 32, 48, 0.8);
  border-color: rgba(0, 210, 255, 0.25);
  z-index: 5;
}

.spot-1 .podium-avatar {
  width: 125px;
  height: 125px;
}

.spot-1 .podium-medal {
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  background: var(--cyan);
  color: #000;
  top: -15px;
}

.podium-crown {
  position: absolute;
  top: -75px;
  left: 50%;
  transform: translateX(-50%);
  color: #00d2ff;
  z-index: 100;
  animation: crownFloat 3s ease-in-out infinite;
}

.podium-crown .material-symbols-outlined {
  font-size: 56px;
  filter: drop-shadow(0 0 15px rgba(0, 210, 255, 0.8));
}

.podium-stats {
  width: 100%;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ps-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  font-family: 'Rajdhani', sans-serif;
  color: rgba(255, 255, 255, 0.4);
}

.ps-row strong {
  color: #fff;
}

@keyframes crownFloat {

  0%,
  100% {
    transform: translateX(-50%) translateY(0) rotate(-5deg);
  }

  50% {
    transform: translateX(-50%) translateY(-10px) rotate(5deg);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .podium-wrapper {
    margin: 20px -15px;
    padding: 30px 15px;
  }

  .rank-podium {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .podium-spot {
    width: 100%;
    max-width: 320px;
    flex: none;
  }

  .spot-1 {
    order: -1;
  }
}

/* --- GLOBAL PREMIUM LOADING BAR --- */
.rank-loader-bar {
  width: 100%;
  max-width: 400px;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  margin: 20px auto;
}

.rank-loader-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  animation: bar-loading 1.2s infinite linear;
}

@keyframes bar-loading {
  0% {
    left: -40%;
  }

  100% {
    left: 100%;
  }
}

.rank-loader-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-top: 5px;
  font-weight: 700;
  text-align: center;
}

.status-expired-inline {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Rajdhani', sans-serif;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

/* --- SERVER CATEGORIES FIX (OVERRIDE) --- */
.srv-cat-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hdr-left {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: flex-start;
  /* Fix for regression spreading badge and name */
}

.cat-badge {
  box-shadow: 0 0 15px currentColor;
  font-weight: 900;
}

.cat-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-left: 2px;
}

.cat-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Sidebar Skinchanger Lock */
.nav-item.locked {
  cursor: not-allowed;
  position: relative;
}

.nav-item.locked .material-symbols-outlined:first-child {
  color: rgba(255, 255, 255, 0.6);
}

.nav-item.locked .nav-item-label,
.nav-item.locked .nav-lbl {
  color: #fff;
  opacity: 0.8;
}

.nav-item.locked::after {
  display: none;
}

/* Guard Overlay */
.fg-guard-overlay {
  position: fixed;
  inset: 0;
  background: #090b10;
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.fg-guard-card {
  background: rgba(20, 25, 35, 0.8);
  padding: 45px 30px;
  border-radius: 28px;
  border: 1px solid rgba(255, 75, 43, 0.2);
  backdrop-filter: blur(30px);
  max-width: 420px;
  width: 90%;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  animation: guardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes guardIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Language switcher (flag row in sidebar bottom) ────────────────────────
   The PL/EN/RU flag row lives in the shared sidebar component (fg_layout.js).
   Its classes (.lang-switcher / .lang-btn) had no styling in any global sheet,
   so on the homepage (which uses the component) the flags rendered unstyled and
   misplaced. ranks/index.html carried the correct rules in a page-local <style>;
   those exact rules are promoted here to global.css (loaded on every page) so the
   switcher looks identical everywhere the component mounts. */
.lang-switcher {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: flex-direction 0.3s;
  padding-bottom: 10px;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.3s;
  border-radius: 4px;
  overflow: hidden;
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.lang-btn.active {
  opacity: 1;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
  border: 1px solid rgba(0, 210, 255, 0.8);
}

/* Collapsed icon-rail: stack the flags vertically. The runtime collapse class is
   body.sb-col; .sidebar.collapsed is kept for parity with the original markup. */
body.sb-col .lang-switcher,
.sidebar.collapsed .lang-switcher {
  flex-direction: column;
  gap: 12px;
}

/* Sidebar Locks */
.fg-sidebar-lock {
  font-family: 'Material Symbols Outlined';
  font-size: 14px;
  color: #00d2ff;
  margin-left: auto;
  margin-right: 5px;
  opacity: 0.6;
  font-variation-settings: 'FILL' 1;
  pointer-events: none;
  display: inline-block;
  line-height: 1;
}
/* Report button (shared topbar chrome). Lives here, not in js_report.js, so it is
   styled at page load — the widget's modal styles inject lazily on first open. */
.tb-report-btn {
  /* inline-flex, not grid: older iOS Safari (pre-16, common on iPhone 11) mishandles
     display:grid on a <button>, which could collapse/hide the icon. Flex on buttons is
     reliable far earlier. */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 80, 80, .1);
  border: 1px solid rgba(255, 80, 80, .3);
  color: #ff5050;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s, transform .15s;
}
.tb-report-btn:hover {
  background: rgba(255, 80, 80, .2);
  transform: translateY(-1px);
}
.tb-report-btn svg { display: block; }

/* ── Cookie consent (acknowledgement) modal ── */
.fg-cc-backdrop {
  position: fixed; inset: 0; z-index: 100000;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(4, 8, 16, 0.72);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fgCcIn 0.3s ease both;
}
@keyframes fgCcIn { from { opacity: 0; } to { opacity: 1; } }
.fg-cc-card {
  width: 100%; max-width: 440px;
  background: linear-gradient(160deg, rgba(16,24,44,0.96), rgba(10,14,28,0.96));
  border: 1px solid rgba(255,255,255,0.1); border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  font-family: 'Poppins', system-ui, sans-serif; color: #e9eef7;
  animation: fgCcUp 0.34s cubic-bezier(.22,1,.36,1) both;
}
@keyframes fgCcUp { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.fg-cc-title { font-family: 'Orbitron', sans-serif; font-weight: 800; letter-spacing: 1px; font-size: 19px; margin-bottom: 12px; color: #fff; }
.fg-cc-text { font-size: 13.5px; line-height: 1.6; color: rgba(233,238,247,0.72); }
.fg-cc-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.fg-cc-links a { color: #00d2ff; text-decoration: none; font-weight: 600; }
.fg-cc-links a:hover { text-decoration: underline; }
.fg-cc-btn {
  margin-top: 22px; width: 100%; padding: 13px; border: none; border-radius: 11px; cursor: pointer;
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 15.5px; letter-spacing: 0.6px; text-transform: uppercase;
  color: #04121d; background: linear-gradient(135deg, #00e0ff 0%, #00a3ff 100%);
  box-shadow: 0 8px 22px rgba(0,180,255,0.28);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.fg-cc-btn:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 26px rgba(0,180,255,0.4); }
body.fg-cc-open { overflow: hidden; }
@media (max-width: 480px) { .fg-cc-card { padding: 22px 18px; } }

/* ── Footer must scroll with the page, not stay pinned to the viewport bottom ──
   The per-page fork stylesheets (css_faq/css_downloads/css_demos/css_servers/…)
   only carry the old scroll model: .main-content{overflow:hidden} + a scrolling
   .main-inner, with the footer as a sibling BELOW main-inner. That pins the footer
   to the bottom of the viewport while the content scrolls underneath it ("sticky
   footer when it shouldn't be"). css_main3 (homepage) fixed this with a later
   !important override; global.css loads last on every page, so define the same
   model here once for all forks. Home keeps its !important rule; css_mobile's
   !important mobile overrides still win on small screens. */
.main-content { overflow-y: auto; overflow-x: hidden; }
.main-inner { overflow: visible; flex: none; }

/* ── Footer policy links ── */
.footer-legal {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  text-align: center;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal a {
  color: rgba(233, 238, 247, 0.55);
  text-decoration: none;
  transition: color 0.18s ease;
}

.footer-legal a:hover {
  color: #00d2ff;
}

.footer-dot {
  color: rgba(233, 238, 247, 0.3);
}

/* ═══ ADMIN NOTIFICATIONS BELL ═══ */
.tb-admin-bell {
  position: relative;
  cursor: pointer;
  margin-left: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(15, 20, 30, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  margin-right: 12px;
}

.tb-admin-bell:hover {
  background: rgba(0, 180, 255, 0.1);
  border-color: rgba(0, 180, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4), 0 0 10px rgba(0, 180, 255, 0.15);
}

.tb-admin-bell .material-symbols-outlined {
  color: rgba(180, 200, 240, 0.6);
  font-size: 22px;
}

.tb-admin-bell:hover .material-symbols-outlined {
  color: #00d2ff;
}

.tb-admin-bell .tb-bell-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff4a4a;
  border: 2px solid #0d121f;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
  z-index: 2;
}

.tb-bell-ringing {
  animation: tbBellRing 0.8s ease;
}

@keyframes tbBellRing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(15deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-8deg); }
  75% { transform: rotate(5deg); }
}

/* ═══ NOTIFICATIONS DROPDOWN ═══ */
.tb-notif-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 90vw;
  max-height: 70vh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(12, 18, 34, .99), rgba(8, 12, 24, .99));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  z-index: 9999;
  cursor: default;
  font-family: 'Rajdhani', sans-serif;
}

.tb-notif-head {
  padding: 12px 16px;
  font-weight: 700;
  color: #cfe0ff;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  font-size: 15px;
}

.tb-notif-list { padding: 6px; }

.tb-notif-empty {
  padding: 24px 16px;
  text-align: center;
  color: #7a8aa5;
  font-size: 14px;
}

.tb-notif-item {
  display: block;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  color: #dbe6ff;
  cursor: pointer;
  transition: background .15s;
  border-left: 3px solid transparent;
}

.tb-notif-item:hover { background: rgba(0, 180, 255, .08); }

.tb-notif-item.unread {
  background: rgba(0, 180, 255, .06);
  border-left-color: #00d2ff;
}

/* Type-based distinction: colored left border + tint per notification kind. */
.tb-notif-item.notif-kind-report_new {
  border-left-color: #00d2ff;
  background: rgba(0, 180, 255, .04);
}
.tb-notif-item.notif-kind-report_new:hover { background: rgba(0, 180, 255, .1); }

.tb-notif-item.notif-kind-report_accepted {
  border-left-color: #ffbe50;
  background: rgba(255, 190, 80, .04);
}
.tb-notif-item.notif-kind-report_accepted:hover { background: rgba(255, 190, 80, .1); }

.tb-notif-item.notif-kind-report_closed {
  border-left-color: #33d17a;
  background: rgba(51, 209, 122, .04);
}
.tb-notif-item.notif-kind-report_closed:hover { background: rgba(51, 209, 122, .1); }

.tb-notif-item.notif-kind-report_sent {
  border-left-color: rgba(150, 180, 225, .25);
  background: rgba(255, 255, 255, .01);
}

.tb-notif-t { font-weight: 600; font-size: 14px; }
.tb-notif-b { font-size: 13px; color: #9fb0cc; margin-top: 2px; }
.tb-notif-time { font-size: 11px; color: #6b7a96; margin-top: 4px; }

/* ═══ MOBILE: bell + notifications dropdown ═══ */
@media (max-width: 768px) {
  .tb-admin-bell {
    margin-left: 4px;
    margin-right: 4px;
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
  }
  .tb-admin-bell .material-symbols-outlined { font-size: 22px; }
  .tb-notif-panel {
    position: fixed;
    top: 58px;
    right: 8px;
    left: 8px;
    width: auto;
    max-width: none;
    max-height: calc(100dvh - 80px);
  }
  .tb-notif-head { padding: 14px 16px; font-size: 16px; }
  .tb-notif-item { padding: 13px 12px; }
  .tb-notif-t { font-size: 15px; }
  .tb-notif-b { font-size: 13px; }
}

/* ═══ MOBILE BELL MODAL (centered sheet on small screens) ═══ */
.fgn-bell-box {
  width: 440px;
  max-width: 96vw;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.fgn-bell-body {
  padding: 6px 12px 16px;
  overflow-y: auto;
}

/* Scroll-lock for modals / open mobile sidebar. js_main toggles .fg-scroll-lock
   on <html> AND <body>. The scroller differs by breakpoint:
   - desktop: the app-shell scroller is .main-inner / .main-content
   - mobile (css_mobile flattens the app-shell): the viewport (html/body) scrolls,
     and the document scroll lives on <html> — locking only <body> leaks.
   So lock all of them; whichever is the live scroller gets frozen. */
html.fg-scroll-lock,
body.fg-scroll-lock { overflow: hidden !important; touch-action: none; }
.fg-scroll-lock .main-content,
.fg-scroll-lock .main-inner { overflow: hidden !important; }
