/* ============ TABBAR (mock-panel) ============ */
.tabbar {
  position: fixed;
  left: 50%;
  bottom: calc(12px + var(--app-safe-area-bottom));
  transform: translateX(-50%) translateZ(0);
  z-index: 50;
  width: calc(100% - 28px);
  max-width: 392px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 12px 12px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(20, 25, 40, 0.85) 0%, rgba(8, 9, 12, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04) inset, 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

.tab,
.tab:link,
.tab:visited,
.tab:hover,
.tab:active,
.tab:focus,
.tab:focus-visible {
  text-decoration: none;
  text-decoration-line: none;
}

.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 4px;
  color: var(--text-dim);
  transition: color 0.25s ease;
}

.tab:hover {
  color: var(--text-muted);
}

.tab.active {
  color: var(--gold-bright);
}

.tab svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
  transition: transform 0.25s ease, stroke-width 0.25s ease, filter 0.25s ease;
}

.tab.active svg {
  transform: scale(1.08);
  stroke-width: 2.3;
  filter: drop-shadow(0 0 10px rgba(212, 175, 106, 0.9)) drop-shadow(0 4px 8px rgba(212, 175, 106, 0.35));
}

.tab-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
}

.tab-badge {
  position: absolute;
  top: 2px;
  right: calc(50% - 16px);
  min-width: 14px;
  height: 14px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--red-bright);
  border: 2px solid rgba(18, 22, 35, 0.9);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
}

.tab-region {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px 4px 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.tab-region-flag {
  width: 22px;
  height: 15px;
  overflow: hidden;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0;
  line-height: 0;
}

.tab-region-flag img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.tab-region-code {
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.tab-steam-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  transition: all 0.25s;
}

.tab.active .tab-steam-icon {
  filter: drop-shadow(0 0 6px rgba(212, 175, 106, 0.4));
}

.tab.disabled {
  opacity: 0.35;
  pointer-events: none;
  cursor: default;
}
