/* Tournament editorial — shared with player/team pdash language */
.tournament-editorial,
.match-editorial {
  --te-lime: #acdd00;
  --te-lime-dark: #8bb100;
  --te-lime-soft: rgba(172, 221, 0, 0.14);
  --te-ink: #0a0a0a;
  --te-muted: #9ca3af;
  --te-line: rgba(0, 0, 0, 0.06);
  --te-card: #ffffff;
  --te-bg: #f7f7f8;
  --te-navy: #060b1b;
  --te-radius: 0;
  --te-font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --te-font-body: Montserrat, Inter, system-ui, sans-serif;
  font-family: var(--te-font-body);
}

.tournament-editorial {
  background:
    radial-gradient(ellipse 90% 55% at 12% -10%, rgba(172, 221, 0, 0.09), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 8%, rgba(10, 10, 10, 0.04), transparent 50%),
    var(--te-bg);
  padding-bottom: 1.35rem;
  margin: 0 -0.5rem;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0 0 var(--te-radius) var(--te-radius);
}

/* —— Board heads —— */
.te-board {
  margin: 0 0 0.9rem;
}
.te-board-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-lime);
}
.te-board-title {
  font-family: var(--te-font-display);
  font-weight: 400;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--te-ink);
  margin: 0;
  line-height: 0.95;
}
.te-board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.te-board-tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* —— Cards —— */
.te-card {
  background: var(--te-card);
  border-radius: var(--te-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 16px rgba(10, 10, 10, 0.05);
  border: 1px solid var(--te-line);
  overflow: hidden;
  position: relative;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.te-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 8px 22px rgba(10, 10, 10, 0.07);
  border-color: rgba(172, 221, 0, 0.28);
}
.te-card-head {
  background: var(--te-card) !important;
  border-bottom: 1px solid var(--te-line) !important;
  padding: 0.8rem 1rem 0.75rem !important;
  position: relative;
}
.te-card-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--te-lime) 0%, rgba(172, 221, 0, 0.35) 55%, transparent 100%);
}
.te-card-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--te-lime);
}
.te-card-title {
  font-family: var(--te-font-display);
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--te-ink);
  margin: 0;
  line-height: 1;
}
.te-card-title i {
  color: var(--te-lime);
  margin-right: 0.35rem;
  font-size: 0.85em;
  vertical-align: 0.05em;
}
.te-card-footer {
  background: transparent !important;
  border-top: 1px solid var(--te-line) !important;
  padding: 0.65rem 1rem !important;
}
.te-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--te-ink) !important;
  text-decoration: none !important;
}
.te-link:hover {
  color: var(--te-lime-dark) !important;
}
.te-link i {
  color: var(--te-lime);
}

/* —— Zone badges —— */
.te-zone {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.65rem;
  border-radius: 6px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.te-zone-direct {
  background: var(--te-lime-soft);
  color: #3d5200;
  border: 1px solid rgba(172, 221, 0, 0.35);
}
.te-zone-playoff {
  background: rgba(6, 11, 27, 0.06);
  color: var(--te-navy);
  border: 1px solid rgba(6, 11, 27, 0.12);
}

/* —— Round headers (fixtures) —— */
.round-header-compact {
  background: transparent !important;
  border-bottom: none !important;
  padding: 0.35rem 0.15rem 0.55rem !important;
  margin: 1.6rem 0 0.85rem !important;
}
.round-header-compact:first-child {
  margin-top: 0.35rem !important;
}
.round-label {
  display: inline-block;
  font-family: var(--te-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--te-ink);
  position: relative;
  padding-bottom: 0.35rem;
}
.round-label::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  background: var(--te-lime);
}

/* —— Match cards —— */
.matches-grid-container {
  padding: 0.5rem 0.75rem 1rem;
}
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.match-card-compact {
  position: relative;
  background: var(--te-card);
  border: 1px solid var(--te-line) !important;
  border-radius: var(--te-radius);
  padding: 1rem 1rem 0.9rem;
  text-decoration: none !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.05);
  overflow: hidden;
}
.match-card-compact::before {
  display: none !important;
}
.match-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(172, 221, 0, 0.14);
  border-color: rgba(172, 221, 0, 0.35) !important;
  text-decoration: none !important;
}
.match-header-info {
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--te-line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-muted);
}
.match-datetime {
  display: flex;
  align-items: center;
}
.match-datetime i {
  color: var(--te-lime);
  font-size: 0.7rem;
  opacity: 0.9;
}
.match-footer-info {
  display: flex;
  align-items: center;
  padding-top: 0.55rem;
  border-top: 1px solid var(--te-line);
  font-size: 0.72rem;
  color: var(--te-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.match-footer-info i {
  color: var(--te-lime);
  font-size: 0.68rem;
  flex-shrink: 0;
  opacity: 0.85;
}
.match-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.team-row-compact {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.team-name-compact {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--te-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spacer { flex: 0 0 auto; }
.score-compact {
  font-family: var(--te-font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--te-ink);
  min-width: 1.5rem;
  text-align: right;
  line-height: 1;
}
.match-status-tag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.match-status-tag.finished {
  background: var(--te-lime-soft);
  color: #3d5200;
  border: 1px solid rgba(172, 221, 0, 0.35);
}
.match-status-tag.live {
  background: #b91c1c;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: none;
}
.match-status-tag.upcoming {
  background: rgba(6, 11, 27, 0.05);
  color: var(--te-muted);
  border: 1px solid var(--te-line);
}
.team-row-compact.match-winner {
  background: linear-gradient(90deg, rgba(172, 221, 0, 0.12) 0%, transparent 100%);
  border-radius: 6px;
  margin: 0 -0.2rem;
  padding: 0.22rem 0.25rem;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: te-pulse-dot 1.5s infinite;
}
@keyframes te-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* —— Overview: map sl-* to editorial —— */
.tournament-editorial .sl-card,
.tournament-editorial .single-league-overview-card,
.tournament-editorial .te-card.sl-card {
  border: 1px solid var(--te-line);
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  background: var(--te-card);
}
.tournament-editorial .sl-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(10, 10, 10, 0.07);
  border-color: rgba(6, 11, 27, 0.12);
}
.tournament-editorial .sl-card::before {
  display: none;
}
.tournament-editorial .sl-header,
.tournament-editorial .te-card-head,
.tournament-editorial .playoff-header {
  background: #060b1b !important;
  color: #fff !important;
  padding: 1rem 1.2rem 0.95rem;
  border: none;
  position: relative;
}
.tournament-editorial .sl-header::after,
.tournament-editorial .te-card-head::after,
.tournament-editorial .playoff-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #acdd00;
}
.tournament-editorial .sl-header-main .sl-header-accent {
  display: none;
}
.tournament-editorial .sl-title,
.tournament-editorial .te-card-title,
.tournament-editorial .playoff-title {
  font-family: var(--te-font-display);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff !important;
  line-height: 1;
}
.tournament-editorial .te-card-kicker {
  color: #acdd00 !important;
}
.tournament-editorial .sl-title-icon,
.tournament-editorial .playoff-icon {
  color: #acdd00;
  opacity: 1;
}
.tournament-editorial .sl-zone {
  border-radius: 3px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.tournament-editorial .sl-zone-direct {
  background: rgba(172, 221, 0, 0.16);
  color: #acdd00;
  border: 1px solid rgba(172, 221, 0, 0.35);
}
.tournament-editorial .sl-zone-playoff {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.tournament-editorial .sl-footer {
  background: transparent;
  border-top: 1px solid var(--te-line);
}
.tournament-editorial .sl-link,
.tournament-editorial .te-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #acdd00 !important;
}
.tournament-editorial .sl-header .sl-link,
.tournament-editorial .te-card-head .te-link,
.tournament-editorial .playoff-header .sl-link {
  color: #acdd00 !important;
}
.tournament-editorial .sl-link:hover {
  color: #c5f033 !important;
}
.tournament-editorial .sl-date-header {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--te-muted);
  background: rgba(6, 11, 27, 0.03) !important;
}
.tournament-editorial .sl-date-bar {
  background: #060b1b !important;
}
.tournament-editorial .sl-score-pill {
  font-family: var(--te-font-display);
  letter-spacing: 0.04em;
}
.tournament-editorial .sl-match-item:hover {
  background: #f7f7f8 !important;
}
.tournament-editorial .sl-team-names,
.tournament-editorial .sl-record-name {
  color: var(--te-ink);
  font-weight: 600;
}
.tournament-editorial .sl-record-badge {
  background: #060b1b;
  color: #acdd00;
  border: 1px solid #060b1b;
  border-radius: 3px;
  font-family: var(--te-font-display);
  font-weight: 400;
}

/* Overview match cards — square / hard */
.tournament-editorial .match-card-compact {
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
}
.tournament-editorial .match-card-compact:hover {
  border-color: rgba(6, 11, 27, 0.18) !important;
  box-shadow: 0 4px 14px rgba(10, 10, 10, 0.08);
}
.tournament-editorial .match-status-tag {
  border-radius: 2px;
}
.tournament-editorial .match-status-tag.finished {
  background: #060b1b;
  color: #acdd00;
  border-color: #060b1b;
}
.tournament-editorial .round-label {
  color: var(--te-ink);
}
.tournament-editorial .round-label::after {
  background: #060b1b;
  width: 2rem;
  height: 3px;
}
.tournament-editorial .te-card {
  border-radius: 0;
}
.tournament-editorial .custom-header,
.tournament-editorial .card-header.custom-header {
  background: #060b1b !important;
  border-bottom: none !important;
}
.tournament-editorial .custom-header::after {
  background: #acdd00;
}
.tournament-editorial .custom-header h2,
.tournament-editorial .custom-header .text-white,
.tournament-editorial .custom-header .te-card-title {
  color: #fff !important;
}
.tournament-editorial .list-group-item.bg-primary {
  background: #060b1b !important;
  color: #acdd00 !important;
}

/* Group league / overview chrome — dark headers, square cards */
.tournament-editorial .custom-header,
.tournament-editorial .card-header.custom-header {
  background: #060b1b !important;
  border-bottom: none !important;
  position: relative;
  padding: 1rem 1.2rem !important;
}
.tournament-editorial .custom-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #acdd00;
}
.tournament-editorial .custom-header h2,
.tournament-editorial .custom-header .text-white,
.tournament-editorial .custom-header .te-card-title {
  color: #fff !important;
  font-family: var(--te-font-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.tournament-editorial .custom-header .te-card-kicker {
  color: #acdd00 !important;
}
.tournament-editorial .card.p-0.w-100,
.tournament-editorial .card.p-0.border-0 {
  border: 1px solid var(--te-line) !important;
  border-radius: 0 !important;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04) !important;
  overflow: hidden;
  margin-bottom: 1.15rem;
  background: var(--te-card);
}
.tournament-editorial .list-group-item.bg-primary {
  background: #060b1b !important;
  color: #acdd00 !important;
  font-family: var(--te-font-display);
  font-weight: 400 !important;
  letter-spacing: 0.06em;
  border: none !important;
}
.tournament-editorial .playoff-header {
  background: #060b1b !important;
  color: #fff !important;
  border-bottom: none;
  position: relative;
}
.tournament-editorial .playoff-header::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: #acdd00;
}
.tournament-editorial .playoff-title {
  color: #fff !important;
  font-family: var(--te-font-display);
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tournament-editorial .playoff-icon {
  color: #acdd00 !important;
}
.tournament-editorial .playoff-bracket-wrapper {
  background: #f7f7f8 !important;
  padding: 1.15rem 1rem;
}
.tournament-editorial .playoff-page-card > .card-header:not(.playoff-header) {
  background: #060b1b !important;
  border-bottom: none;
}
.tournament-editorial .playoff-page-card > .card-header h2 {
  font-family: var(--te-font-display);
  color: #fff !important;
}

/* Bracket waiting / pills */
.tournament-editorial .bracket-waiting-teams {
  background: var(--te-lime-soft);
  border: 1px dashed rgba(172, 221, 0, 0.45);
  border-radius: var(--te-radius);
}
.tournament-editorial .waiting-teams-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: #3d5200;
}
.tournament-editorial .waiting-team-pill {
  border-radius: 8px;
  border: 1px solid var(--te-line);
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
}
.tournament-editorial .waiting-team-pill:hover {
  border-color: rgba(172, 221, 0, 0.45);
  box-shadow: 0 6px 16px rgba(172, 221, 0, 0.14);
}
.tournament-editorial .bracket-round-badge {
  background: #fff;
  color: var(--te-ink);
  border: 1px solid var(--te-line);
  border-left: 3px solid var(--te-lime);
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
  font-family: var(--te-font-display);
  font-weight: 400;
  letter-spacing: 0.06em;
}

@media (max-width: 991px) {
  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.85rem;
  }
}
@media (max-width: 768px) {
  .matches-grid { grid-template-columns: 1fr; }
  .team-name-compact { font-size: 0.813rem; }
  .score-compact { font-size: 1.15rem; }
}

/* —— Tournament menu (editorial top nav) —— */
.tmenu {
  --te-lime: #acdd00;
  --te-lime-dark: #8bb100;
  --te-lime-soft: rgba(172, 221, 0, 0.14);
  --te-ink: #0a0a0a;
  --te-muted: #9ca3af;
  --te-line: rgba(0, 0, 0, 0.06);
  --te-card: #ffffff;
  --te-navy: #060b1b;
  --te-radius: 0;
  --te-font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --te-font-body: Montserrat, Inter, system-ui, sans-serif;
  font-family: var(--te-font-body);
  margin: 0 0 1.25rem;
}
.tmenu-card {
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(172, 221, 0, 0.07), transparent 55%),
    var(--te-card);
  border: 1px solid var(--te-line);
  border-radius: var(--te-radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 4px 16px rgba(10, 10, 10, 0.05);
  overflow: hidden;
}
.tmenu-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1.2rem 1.35rem 1.05rem;
  flex-wrap: wrap;
}
.tmenu-brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  min-width: 0;
  flex: 1 1 280px;
}
.tmenu-logo {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(6, 11, 27, 0.04);
  border: 1px solid var(--te-line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.tmenu-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tmenu-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: var(--te-lime-soft);
  color: #3d5200;
  font-size: 1.25rem;
}
.tmenu-brand-text {
  min-width: 0;
  flex: 1;
}
.tmenu-kicker {
  margin: 0 0 0.15rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--te-lime);
}
.tmenu-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-bottom: 0.65rem;
}
.tmenu-title {
  font-family: var(--te-font-display);
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--te-ink);
  margin: 0;
  line-height: 0.95;
}
.tmenu-title a {
  color: inherit;
  text-decoration: none;
}
.tmenu-title a:hover {
  color: var(--te-lime-dark);
}
.tmenu-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border-radius: 6px;
  background: var(--te-lime-soft);
  border: 1px solid rgba(172, 221, 0, 0.4);
  color: #3d5200;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}
.tmenu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}
.tmenu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: rgba(6, 11, 27, 0.035);
  border: 1px solid var(--te-line);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--te-ink);
  line-height: 1.2;
}
.tmenu-chip i {
  color: var(--te-lime);
  font-size: 0.68rem;
  opacity: 0.95;
}
.tmenu-chip em {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--te-muted);
}
.tmenu-chip a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.tmenu-chip a:hover {
  color: var(--te-lime-dark);
}
.tmenu-chip--accent {
  background: var(--te-lime-soft);
  border-color: rgba(172, 221, 0, 0.35);
}
.tmenu-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}
.tmenu-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--te-line);
  color: var(--te-ink);
  text-decoration: none !important;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.04);
}
.tmenu-icon-btn:hover {
  border-color: rgba(172, 221, 0, 0.55);
  background: var(--te-lime-soft);
  color: #3d5200;
  transform: translateY(-1px);
}
.tmenu-icon-btn i {
  font-size: 0.85rem;
}

/* Nav tabs */
.tmenu-nav {
  border-top: 1px solid var(--te-line);
  padding: 0 0.65rem;
  position: relative;
}
.tmenu-nav::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--te-line);
  pointer-events: none;
}
.tmenu-tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tmenu-tabs::-webkit-scrollbar {
  display: none;
}
.tmenu-tabs > li {
  flex: 0 0 auto;
}
.tmenu-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.85rem 0.95rem;
  color: var(--te-muted);
  text-decoration: none !important;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.tmenu-tab:hover {
  color: var(--te-ink);
}
.tmenu-tab-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 11, 27, 0.04);
  border: 1px solid transparent;
  color: inherit;
  font-size: 0.72rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.tmenu-tab-label {
  font-family: var(--te-font-display);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}
.tmenu-tab.is-active {
  color: var(--te-ink);
}
.tmenu-tab.is-active .tmenu-tab-icon {
  background: var(--te-lime);
  color: var(--te-ink);
  border-color: rgba(172, 221, 0, 0.5);
}
.tmenu-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0;
  height: 2px;
  background: var(--te-lime);
  border-radius: 2px 2px 0 0;
  z-index: 1;
}
.tmenu-tab.is-disabled,
.tmenu-tab.is-disabled:hover {
  opacity: 0.4;
  pointer-events: none;
  color: var(--te-muted);
}

@media (max-width: 767.98px) {
  .tmenu-top {
    padding: 1rem 1rem 0.9rem;
  }
  .tmenu-logo {
    width: 52px;
    height: 52px;
    border-radius: 0;
  }
  .tmenu-title {
    font-size: 1.45rem;
  }
  .tmenu-chip em {
    display: none;
  }
  .tmenu-tab {
    padding: 0.75rem 0.65rem 0.85rem;
    gap: 0.35rem;
  }
  .tmenu-tab-label {
    font-size: 0.95rem;
  }
  .tmenu-tab-icon {
    width: 26px;
    height: 26px;
  }
  .tmenu-tab.is-active::after {
    left: 0.65rem;
    right: 0.65rem;
  }
}
