.go-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text);
  cursor: pointer;
  transition: background var(--ease);
}
.go-back:hover {
  background: var(--bg-3);
}
.go-back svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.timeline-searchbar {
  padding: 12px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.timeline-searchbar__form {
  width: 100%;
}
.keyword-input {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}
.keyword-input input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  background: var(--bg-3);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--ease), background var(--ease);
}
.keyword-input input:focus {
  border-color: var(--accent);
  background: var(--bg-2);
}
.keyword-input input::placeholder {
  color: var(--text-3);
}
.keyword-input__left-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-2);
  display: flex;
  align-items: center;
}
.keyword-input__left-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.keyword-input__right-spinner {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  display: flex;
  align-items: center;
}
.keyword-input__right-spinner svg {
  width: 18px;
  height: 18px;
}

.timeline-navbar {
  display: flex;
  width: 100%;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.timeline-navbar__item {
  flex: 1 1 0%; /* Forces exact equal width for all 3 tabs */
  display: flex;
}

/* ADD THIS NEW RULE */
.timeline-navbar__item a {
  display: flex;
  width: 100%;
  flex: 1;
  text-decoration: none;
}

.timeline-navbar__item-btn {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--ease), background var(--ease);
  display: flex;
  align-items: center;
  justify-content: center; /* Ensures text is perfectly centered */
}
.timeline-navbar__item-btn {
  width: 100%;
  padding: 16px 0;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color var(--ease), background var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-navbar__item-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}
.timeline-navbar__item-btn.active {
  color: var(--text);
}
.timeline-navbar__item-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px 4px 0 0;
}
.btn-flex-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.timeline-users-container,
.timeline-hashtags-container,
.timeline-posts-container {
  background: var(--bg);
  min-height: 50vh;
}
.timeline-user-ls,
.timeline-hashtags-ls {
  display: flex;
  flex-direction: column;
}

.user-list-item {
  display: flex;
  padding: 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  background: var(--bg);
  transition: background var(--ease);
}
.user-list-item:hover {
  background: var(--surface-hover);
}
.user-list-item__avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.user-avatar-online::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.user-list-item__data {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.user-data__body-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.flex-item-left {
  flex: 1;
  min-width: 0;
}
.user-data__name a {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  display: inline-flex;
}
.user-data__name a:hover {
  text-decoration: underline;
}
.user-data__stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.stats-item span:first-child {
  color: var(--text);
  font-weight: 700;
  margin-right: 4px;
}
.user-data__ctrls button {
  white-space: nowrap;
}
.user-data__about {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  word-wrap: break-word;
}
.user-data__about a {
  color: var(--accent);
  text-decoration: none;
}

.hashtag-list-item {
  display: block;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}
.hashtag-list-item:hover {
  background: var(--surface-hover);
}
.hashtag-list-item .block-link {
  display: block;
  padding: 16px;
  text-decoration: none;
  color: var(--text);
}
.hashtag-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hashtag-data__body span:first-child {
  font-weight: 700;
  font-size: 16px;
  display: block;
  margin-bottom: 2px;
}
.hashtag-data__body span:last-child {
  font-size: 13px;
  color: var(--text-2);
}
.hashtag-data__right-icon {
  color: var(--text-2);
  display: flex;
  align-items: center;
}
.hashtag-data__right-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.timeline-data-loader {
  padding: 24px;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--border);
}
.timeline-data-loader__btn {
  background: var(--bg-3);
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
  width: 100%;
  max-width: 300px;
}
.timeline-data-loader__btn:hover:not(:disabled) {
  background: var(--surface-hover);
}
.timeline-data-loader__btn:disabled {
  color: var(--text-2);
  background: var(--bg-2);
  cursor: default;
}

.timeline-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 56px 24px;
  text-align: center;
  min-height: 320px;
  background: var(--bg);
}
.timeline-placeholder .icon__bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 50%;
}
.timeline-placeholder .icon__bg svg {
  width: 36px;
  height: 36px;
  display: block;
}
.timeline-placeholder .pl-message h4 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.timeline-placeholder .pl-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  max-width: 340px;
}